Category : OS/2 Files
Archive   : GPPDEV8F.ZIP
Filename : INTSLIST.HP

 
Output of file : INTSLIST.HP contained in archive : GPPDEV8F.ZIP

/* : Light weight List: This will simply reuse code from a int List, which
was genclassed from the SLList libg++ class. The classes generated from this file
will all be derived classes from class VoidSLList or intSLList. Note that class SLList does not
offer all the functionality of List classes, such as sharing of sub-Lists.
However, no additional code is needed at all and no .cc file is generated. So it costs nothing
to use these type-safe Lists. Only member functions needing type casting are re-defined */


#ifndef _SList_h
#define _SList_h 1

#include "int.SLList.h"
#include ".defs.h"

class SList : public intSLList
{
public:
SList() {}
SList(SList& a) : (a) {}
~SList() {}

SList& operator = (SList& a) {
return (SList&) intSLList::operator= (a); }

& operator () (Pix p) { return (&) (intSLList::operator() (p)); }
& front() { return (&) intSLList::front(); }
& rear() { return (&) intSLList::rear(); }
remove_front() { return () intSLList::remove_front(); }

};

#endif /* conditional include */