#include <List.h>
Public Member Functions | |
List () | |
~List () | |
void | append (Type *i) |
void | append (List< Type > &src) |
Type * | remove (Type *i) |
unsigned | length () const |
bool | empty () const |
Type * | firstItem () |
Type * | nextItem () |
Type * | actualItem () |
Type * | iThItem (unsigned i, bool setAct) |
void | dropAll (void) |
void | deleteAll (void) |
void | __debug () |
Protected Attributes | |
Node * | _phandler |
Node * | _pact |
unsigned | _length |
Classes | |
struct | Node |
Definition at line 16 of file List.h.
|
Contructor |
|
Destructor |
|
For debugging purposes only |
|
Returns object at actual position in list.
|
|
Merges two lists. New list is is appened to the end of this list. New list is cleared out.
|
|
Appends object to the beginning of the list
Definition at line 46 of file List.h. Referenced by BVH::_collision(), BVH::_create_bv(), NodesByNameExpl::_explore(), BVExplorer::_iterate(), ObjsInAreaExplorer::_process_leaf(), BVList::_split_by_variation(), OctTree::append(), Heap::append(), BVList::append(), BVH::append(), SceneGraphObject::appendPrivateAttribute(), SceneGraphObject::appendPrivateMaterial(), SceneGraphObject::appendSharedAttribute(), SceneGraphObject::appendSharedMaterial(), and OSGAdapter::getVertices(). |
|
Clears the list. Stored objects are destroied (removed from memory) |
|
Clears the list. Stored objects are just forgotten Definition at line 165 of file List.h. Referenced by OctTree::_destroy_tree(), and OctTree::Node::~Node(). |
|
Definition at line 113 of file List.h. Referenced by OctTree::Node::isEmpty(). |
|
Start of the list inspection. Sets the actual position in list to the first item and returns it.
Definition at line 121 of file List.h. Referenced by BVList::_index_with_max_extent(), BVList::_index_with_max_variation(), BVList::_split_by_extent(), BVList::_split_by_handles(), BVH::collision(), Heap::detach(), Heap::dump(), FDH::FDH(), IteratorSDS::firstChild(), Parser::getLight(), OSGAdapter::getVertices(), SceneGraphObject::inspectAttributes(), SceneGraphObject::inspectMaterials(), BVList::remove(), ObjsInAreaExplorer::result(), NodesByNameExpl::result(), Sphere::Sphere(), BVList::~BVList(), ObjsInAreaExplorer::~ObjsInAreaExplorer(), Parser::~Parser(), and SceneGraphObject::~SceneGraphObject(). |
|
Returns object at the i-th position in list. Actual position in list can be either set to the new one or kept untached.
Definition at line 154 of file List.h. Referenced by BVList::_split_by_handles(). |
|
Definition at line 108 of file List.h. Referenced by BVList::_split_by_handles(), BVList::_split_by_variation(), BVH::collision(), Heap::dump(), and OSGAdapter::getVertices(). |
|
Moves the actual position in list to the next item and returns it.
Definition at line 131 of file List.h. Referenced by BVList::_index_with_max_extent(), BVList::_index_with_max_variation(), BVList::_split_by_extent(), BVList::_split_by_handles(), BVH::collision(), Heap::detach(), Heap::dump(), FDH::FDH(), OSGAdapter::getVertices(), SceneGraphObject::inspectAttributes(), SceneGraphObject::inspectMaterials(), IteratorSDS::nextChild(), BVList::remove(), Sphere::Sphere(), and SceneGraphObject::~SceneGraphObject(). |
|
Removes object from the list, sets pointer to its predecesor. Objects are compared by their address in memory. Only the first matching object from the list is removed.
Definition at line 80 of file List.h. Referenced by BVList::_split_by_handles(), Parser::getLight(), BVList::remove(), ObjsInAreaExplorer::result(), NodesByNameExpl::result(), BVList::~BVList(), and Parser::~Parser(). |
|
Definition at line 25 of file List.h. Referenced by List< AutoPtr< SGAttribute > >::append(). |
|
Definition at line 24 of file List.h. Referenced by List< AutoPtr< SGAttribute > >::append(). |
|
Definition at line 23 of file List.h. Referenced by List< AutoPtr< SGAttribute > >::append(). |