Public Member Functions | |
Constructors | |
| * | NodeList (void) |
Class Specific | |
| *int | size (void) |
| bool | empty (void) |
| NodeList * | down (void) |
| void | setDown (NodeList *down) |
| int | degree (void) |
| void | setDegree (int degree) |
| Node * | first (void) |
| Node * | last (void) |
| void | push_back (Node &node) |
| void | push_front (Node &node) |
| void | add (Node &node, bool back) |
Private Attributes | |
| int | _degree |
| Node * | _first |
| Node * | _last |
| int | _size |
| NodeList * | _down |
Friends | |
| class | Node |
Definition at line 106 of file OSGNodeGraph.h.
|
|
Definition at line 122 of file OSGNodeGraph.h.
|
|
|
Definition at line 130 of file OSGNodeGraph.h. 00130 { return _size; }
|
|
|
Definition at line 131 of file OSGNodeGraph.h. 00131 { return _size ? 00132 false : true; }
|
|
|
Definition at line 133 of file OSGNodeGraph.h. 00133 { return _down; }
|
|
|
Definition at line 134 of file OSGNodeGraph.h.
|
|
|
Definition at line 135 of file OSGNodeGraph.h. 00135 { return _degree; }
|
|
|
Definition at line 136 of file OSGNodeGraph.h.
|
|
|
Definition at line 137 of file OSGNodeGraph.h. 00137 { return _first; }
|
|
|
Definition at line 138 of file OSGNodeGraph.h. 00138 { return _last; }
|
|
|
Definition at line 140 of file OSGNodeGraph.h. References osg::NodeGraph::Node::list, osg::NodeGraph::Node::prev, and osg::NodeGraph::Node::release(). 00141 { 00142 node.release(); 00143 if (_last) 00144 { 00145 _last->next = &node; 00146 node.prev = _last; 00147 _last = &node; 00148 } 00149 else 00150 { 00151 _last = &node; 00152 _first = &node; 00153 } 00154 _size++; 00155 node.list = this; 00156 }
|
|
|
Definition at line 157 of file OSGNodeGraph.h. References osg::NodeGraph::Node::list, osg::NodeGraph::Node::next, and osg::NodeGraph::Node::release(). 00158 { 00159 node.release(); 00160 if (_first) 00161 { 00162 _first->prev = &node; 00163 node.next = _first; 00164 _first = &node; 00165 } 00166 else 00167 { 00168 _last = &node; 00169 _first = &node; 00170 } 00171 _size++; 00172 node.list = this; 00173 }
|
|
||||||||||||
|
Definition at line 174 of file OSGNodeGraph.h. 00175 { back ? push_back(node) : push_front(node); }
|
|
|
Definition at line 108 of file OSGNodeGraph.h. |
|
|
Definition at line 110 of file OSGNodeGraph.h. |
|
|
Definition at line 111 of file OSGNodeGraph.h. |
|
|
Definition at line 112 of file OSGNodeGraph.h. |
|
|
Definition at line 113 of file OSGNodeGraph.h. |
|
|
Definition at line 114 of file OSGNodeGraph.h. |
1.4.3