home *** CD-ROM | disk | FTP | other *** search
- /* : 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 _<T>SList_h
- #define _<T>SList_h 1
-
- #include "int.SLList.h"
- #include "<T>.defs.h"
-
- class <T>SList : public intSLList
- {
- public:
- <T>SList() {}
- <T>SList(<T>SList& a) : (a) {}
- ~<T>SList() {}
-
- <T>SList& operator = (<T>SList& a) {
- return (<T>SList&) intSLList::operator= (a); }
-
- <T>& operator () (Pix p) { return (<T>&) (intSLList::operator() (p)); }
- <T>& front() { return (<T>&) intSLList::front(); }
- <T>& rear() { return (<T>&) intSLList::rear(); }
- <T> remove_front() { return (<T>) intSLList::remove_front(); }
-
- };
-
- #endif /* conditional include */
-
-