summaryrefslogtreecommitdiff
path: root/include/CList.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/CList.h')
-rw-r--r--include/CList.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/CList.h b/include/CList.h
new file mode 100644
index 0000000..147fe71
--- /dev/null
+++ b/include/CList.h
@@ -0,0 +1,35 @@
+#ifndef __CLIST_H__
+#define __CLIST_H__
+
+#include <PTypes.h>
+
+#ifdef __cplusplus
+
+class CList {
+ protected:
+ CList * Left, *Right;
+ Key_t Key;
+ Datas_t Datas;
+ CList(CList * IPoint, Datas_t IDatas, Key_t IKey);
+
+ friend class PLList;
+ friend class SList;
+ friend class BHeap;
+
+ public:
+ CList(void);
+ ~CList(void);
+
+ virtual Datas_t ReadDatas(Cell C);
+ virtual Key_t ReadKey(Cell C);
+
+ virtual Cell Insert(Key_t IKey, Datas_t const &IDatas);
+ virtual Key_t Delete(Datas_t & Datas, Cell C);
+ virtual Cell GetFirst(void);
+ virtual Key_t Pop(Datas_t & Datas);
+};
+
+#else
+#error This librairy will only compile with a C++ compiler.
+#endif
+#endif