From 833d20a69fe17ab846c153e35230c66a41d8fca9 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Wed, 28 Feb 2001 11:40:25 +0000 Subject: Premier jet --- include/CList.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/CList.h (limited to 'include/CList.h') 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 + +#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 -- cgit v1.2.3