lout::container::untyped::List Class Reference

A single-linked list. More...

#include <container.hh>

List of all members.

Classes

class  ListIterator
struct  Node

Public Member Functions

 List (bool ownerOfObjects)
 ~List ()
void clear ()
void append (object::Object *element)
bool removeRef (object::Object *element)
bool remove (object::Object *element)
bool detachRef (object::Object *element)
int size ()
bool isEmpty ()
object::ObjectgetFirst ()
object::ObjectgetLast ()

Protected Member Functions

AbstractIteratorcreateIterator ()

Private Member Functions

bool remove0 (object::Object *element, bool compare, bool doNotDeleteAtAll)

Private Attributes

Nodefirst
Nodelast
bool ownerOfObjects
int numElements

Friends

class ListIterator


Detailed Description

A single-linked list.

Constructor & Destructor Documentation

lout::container::untyped::List::List ( bool  ownerOfObjects  ) 

References first, last, and numElements.

lout::container::untyped::List::~List (  ) 

References clear().


Member Function Documentation

void lout::container::untyped::List::append ( object::Object element  ) 

void lout::container::untyped::List::clear (  ) 

Collection0::AbstractIterator * lout::container::untyped::List::createIterator (  )  [protected, virtual]

bool lout::container::untyped::List::detachRef ( object::Object element  )  [inline]

References remove0().

object::Object* lout::container::untyped::List::getFirst (  )  [inline]

object::Object* lout::container::untyped::List::getLast (  )  [inline]

bool lout::container::untyped::List::isEmpty (  )  [inline]

References numElements.

bool lout::container::untyped::List::remove ( object::Object element  )  [inline]

References remove0().

bool lout::container::untyped::List::remove0 ( object::Object element,
bool  compare,
bool  doNotDeleteAtAll 
) [private]

bool lout::container::untyped::List::removeRef ( object::Object element  )  [inline]

References remove0().

int lout::container::untyped::List::size (  )  [inline]

References numElements.


Friends And Related Function Documentation

friend class ListIterator [friend]

Referenced by createIterator().


Member Data Documentation

Referenced by append(), clear(), getLast(), List(), and remove0().

Referenced by append(), clear(), isEmpty(), List(), remove0(), and size().

Referenced by clear(), and remove0().


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

Generated on Wed Sep 7 02:00:38 2011 for Dillo by  doxygen 1.5.9