/* : Light weight list: This will simply reuse code from a VoidP 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 "VoidP.SLList.h" #include ".defs.h" class SList : public VoidPSLList { public: SList() {} SList(SList& a) : (a) {} ~SList() {} SList& operator = (SList& a) { return (SList&) VoidPSLList::operator= (a); } & operator () (Pix p) { return (&) (VoidPSLList::operator() (p)); } & front() { return (&) VoidPSLList::front(); } & rear() { return (&) VoidPSLList::rear(); } remove_front() { return () VoidPSLList::remove_front(); } }; #endif /* conditional include */