From 833d20a69fe17ab846c153e35230c66a41d8fca9 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Wed, 28 Feb 2001 11:40:25 +0000 Subject: Premier jet --- include/PLList.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/PLList.h (limited to 'include/PLList.h') diff --git a/include/PLList.h b/include/PLList.h new file mode 100644 index 0000000..6e9af25 --- /dev/null +++ b/include/PLList.h @@ -0,0 +1,33 @@ +#ifndef __PLLIST_H__ +#define __PLLIST_H__ + +#include +#include + +#ifdef __cplusplus +class PLList:public PriorityList { private: + SList Head; + + public: + PLList(void); + ~PLList(void); + + virtual Key_t ReadKey(Cell C); + virtual Datas_t ReadDatas(Cell C); + virtual int rn(void); + + virtual void Dump(ostream & os); + virtual bool IsEmpty(void); + + virtual Cell Min(void); + virtual Cell Insert(Key_t IKey, Datas_t const &IDatas); + virtual Key_t Extract_Min(Datas_t & Datas); + virtual PriorityList *Union(PriorityList * P); + virtual bool Lower_Key(Cell x, Key_t NKey); + virtual Key_t Delete(Datas_t & Datas, Cell x); +}; + +#else +#error This librairy is will only compile with a C++ compiler. +#endif +#endif -- cgit v1.2.3