List class.
Description
The list class is used to manage double-linked lists of any type.
private:
<-- this public: SHOULD be private:
Class members
CL_Link *first
CL_Link *last
int num_items
CL_List()
CL_List(const CL_List<TYPE> &clone)
~CL_List()
void clear()
void copy(const CL_List<TYPE> &other)
void add(const CL_List<TYPE> &other)
CL_Link *add(TYPE *item)
TYPE *get_item(int number)
TYPE* operator[](int number)
int get_num_items()
TYPE *get_first()
TYPE *get_last()
bool del(TYPE *item)
bool del(CL_Link *item)
CL_Link *find_link(TYPE *item)
See Also
CL_Array | - | Array class |
CL_Stack | - | Stack class |
CL_Queue | - | Queue class |
Back to index
|