diff options
author | Pixel <> | 2001-02-28 11:40:25 +0000 |
---|---|---|
committer | Pixel <> | 2001-02-28 11:40:25 +0000 |
commit | 833d20a69fe17ab846c153e35230c66a41d8fca9 (patch) | |
tree | 180ba073e59fee8df22cb733be2eec4c452e1b85 /include/CList.h |
Premier jetstart
Diffstat (limited to 'include/CList.h')
-rw-r--r-- | include/CList.h | 35 |
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 |