00001
00002
00003
00004 #ifndef __LINK_HPP__
00005 #define __LINK_HPP__ // To avoid multiple declaration of a class
00006
00007 #include "../Const.hpp"
00008 #include "../DBase.hpp"
00009
00010 class Link {
00011
00012 public:
00013 Link();
00014 Link(Link& link );
00015
00016 Link(Link* nextp );
00017 Link(DBase* Elemval);
00018 Link(DBase* Elemval, Link* nextp);
00019
00020
00021 void* operator new(size_t);
00022 void operator delete(void*);
00023
00024
00025
00026
00027
00028 DBase* element;
00029 Link* next;
00030
00031 static Link* freelist;
00032 };
00033
00034 #endif // __Link_HPP__