#include <container.hh>
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::Object * | getFirst () |
| object::Object * | getLast () |
Protected Member Functions | |
| AbstractIterator * | createIterator () |
Private Member Functions | |
| bool | remove0 (object::Object *element, bool compare, bool doNotDeleteAtAll) |
Private Attributes | |
| Node * | first |
| Node * | last |
| bool | ownerOfObjects |
| int | numElements |
Friends | |
| class | ListIterator |
| lout::container::untyped::List::List | ( | bool | ownerOfObjects | ) |
References first, last, and numElements.
| lout::container::untyped::List::~List | ( | ) |
References clear().
| void lout::container::untyped::List::append | ( | object::Object * | element | ) |
| void lout::container::untyped::List::clear | ( | ) |
References first, last, lout::container::untyped::List::Node::next, numElements, lout::container::untyped::List::Node::object, and ownerOfObjects.
Referenced by ~List().
| 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] |
References first, and lout::container::untyped::List::Node::object.
| object::Object* lout::container::untyped::List::getLast | ( | ) | [inline] |
References last, and lout::container::untyped::List::Node::object.
| 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] |
References lout::object::Object::equals(), first, last, lout::container::untyped::List::Node::next, numElements, lout::container::untyped::List::Node::object, and ownerOfObjects.
Referenced by detachRef(), remove(), and removeRef().
| bool lout::container::untyped::List::removeRef | ( | object::Object * | element | ) | [inline] |
References remove0().
| int lout::container::untyped::List::size | ( | ) | [inline] |
References numElements.
friend class ListIterator [friend] |
Referenced by createIterator().
Node* lout::container::untyped::List::first [private] |
Referenced by append(), clear(), createIterator(), getFirst(), List(), and remove0().
Node * lout::container::untyped::List::last [private] |
int lout::container::untyped::List::numElements [private] |
bool lout::container::untyped::List::ownerOfObjects [private] |
1.5.9