Doubly linked list.
Doubly linked list. Template class GList<TYPE> implements a doubly linked list of elements of type TYPE. Member functions are provided to search the list for an element, to insert or delete elements at specified positions.This template class must be able to access
- a copy constructor TYPE::TYPE(const TYPE &),
- and a comparison operator TYPE::operator==(const TYPE &).
is equal to
position of this list element and returns a non zero value. If however
the search reaches the end of the list, function search returns
zero without altering pos.
GList(const GContainer<TYPE> &gc)
GList(const GList<TYPE> &gc)
~GList()
int isempty() const
TYPE& operator[](GPosition pos)
const TYPE& operator[](GPosition pos) const
int operator==(const GList<TYPE> &l2) const
int nth(unsigned int n, GPosition &pos) const
int contains(const TYPE &elt) const
int search(const TYPE &elt, GPosition &pos) const
void empty()
Inserts an element after the last element of the list.
Alphabetic index HTML hierarchy of classes or Java