Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes

GList< TYPE > Class Template Reference

#include <GContainer.h>

Inheritance diagram for GList< TYPE >:
Inheritance graph
Collaboration diagram for GList< TYPE >:
Collaboration graph

List of all members.

Public Member Functions

void append (const TYPE &elt)
GPosition contains (const TYPE &elt) const
void del (GPosition &pos)
void empty ()
void first (GPosition &pos) const
GPosition firstpos () const
 GList ()
void insert_after (GPosition pos, const TYPE &elt)
void insert_before (GPosition pos, const TYPE &elt)
void insert_before (GPosition pos, GListTemplate< TYPE, TYPE > &fromlist, GPosition &frompos)
bool isempty () const
void last (GPosition &pos) const
GPosition lastpos () const
const TYPE * next (GPosition &pos) const
TYPE * next (GPosition &pos)
GPosition nth (unsigned int n) const
int nth (unsigned int n, GPosition &pos) const
 operator GPosition () const
GListoperator= (const GList &r)
int operator== (const GListTemplate< TYPE, TYPE > &l2) const
TYPE & operator[] (GPosition pos)
const TYPE & operator[] (GPosition pos) const
void prepend (const TYPE &elt)
const TYPE * prev (GPosition &pos) const
TYPE * prev (GPosition &pos)
int search (const TYPE &elt, GPosition &pos) const
int size () const

Protected Types

typedef GCONT ListNode< TYPE > LNode

Protected Member Functions

void append (Node *n)
void insert_after (GPosition pos, Node *n)
void insert_before (GPosition pos, Node *n)
void insert_before (GPosition pos, GListBase &fromlist, GPosition &frompos)
int operator== (const GListImpl< TYPE > &l2) const
void prepend (Node *n)

Static Protected Member Functions

static Nodenewnode (const TYPE &elt)

Protected Attributes

Node head
int nelem
const Traitstraits

Detailed Description

template<class TYPE>
class GList< TYPE >

Doubly linked lists. Template class GList<TYPE># implements a doubly linked list of elements of type TYPE#. This class only implement constructors. See class {GListTemplate} and {GPosition} for a description of all access methods.

Definition at line 1009 of file GContainer.h.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index