Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/DataType/Parenth.Frd/Link.hpp

Go to the documentation of this file.
00001 // Link.hpp - Class interface for a single link node with a freelist
00002 
00003 
00004 #ifndef __LINK_HPP__
00005 #define __LINK_HPP__            // To avoid multiple declaration of a class
00006 
00007 #include "../Const.hpp"       // All the constants
00008 #include "../DBase.hpp"       // Data holding class
00009 
00010 class Link {                       
00011 
00012 public:
00013     Link();                    // Default Constructor
00014     Link(Link& link );         // Copy Constructor
00015 
00016     Link(Link* nextp );       
00017     Link(DBase* Elemval);
00018     Link(DBase* Elemval, Link* nextp);
00019 
00020 
00021   void* operator new(size_t);    // Overloaded new operator
00022   void  operator delete(void*);     // Overloaded delete operator
00023 
00024 
00025   // N.B. Pointer is manipulated anyway by outside classes,
00026   // so there is no point of putting them Private !
00027 
00028   DBase* element;             // Elem value for this node
00029   Link* next;                       // Pointer to next node in list
00030   
00031   static Link* freelist;            // Link class SHARED FreeList
00032 };
00033 
00034 #endif // __Link_HPP__

Generated on Sun Oct 14 18:46:18 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001