📄 intslist.hp
字号:
/* : 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 filewill 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 nothingto 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 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -