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

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

Go to the documentation of this file.
00001 // SLink.hpp - Class interface for a Link used 
00002 // in a Single-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__SLink_HPP__
00008 #define __J2K__SLink_HPP__
00009 
00010 class SLink {
00011 
00012 public:
00013   inline SLink();
00014 
00015   inline SLink( SLink* nextp );
00016   inline SLink( Elem Elemval );
00017   inline SLink( Elem Elemval, SLink* nextp );
00018 
00019   void* operator new(size_t);       // Overloaded new operator
00020   void  operator delete(void*);     // Overloaded delete operator
00021 
00022 
00023   // N.B. Pointers are manipulated anyway by outside classes,
00024   //      so there is no point of putting them Private !
00025 
00026   Elem   element;                   // Elem value for this node
00027   SLink* next;                      // Pointer to next node in list
00028   
00029   static SLink* freelist;           // SLink class SHARED FreeList
00030 };
00031 
00032 #endif

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