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

C:/temp/src/j2k/DataType/Link/DLink.hpp

Go to the documentation of this file.
00001 // DLink.hpp - Class interface for a Link used 
00002 // in a Doubly-Linked list node with freelist 
00003 
00004 // Next version will be a Macro where Elem*
00005 // will be the argument for that Macro.
00006 
00007 #ifndef __J2K__DLink_HPP__
00008 #define __J2K__DLink_HPP__
00009 
00010 #ifndef ZERO
00011 #define ZERO  ( (Elem)0 )
00012 #endif
00013 
00014 class DLink {
00015 
00016 public:
00017   inline DLink();
00018 
00019   inline DLink( DLink* nextp );
00020   inline DLink( DLink* nextp, DLink* prevp );
00021   
00022   inline DLink( Elem  Elemval );
00023   inline DLink( Elem  Elemval, DLink* nextp );
00024   inline DLink( Elem  Elemval, DLink* nextp, DLink* prevp );
00025 
00026 #if 0
00027   void* operator new(size_t);       // Overloaded new operator
00028   void  operator delete(void*);     // Overloaded delete operator
00029 #endif
00030 
00031   // N.B. Pointers are manipulated anyway by outside classes,
00032   //      so there is no point of putting them Private !
00033 
00034   Elem   element;                   // Elem value for this node
00035   DLink* next;                      // Pointer to next node in list
00036   DLink* prev;                      // Pointer to previous node
00037   
00038   static DLink* freelist;           // DLink class SHARED FreeList
00039 };
00040 
00041 #endif

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