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.
| osg::NodeGraph::NodeList::NodeList | ( | void | ) | [inline] |
| int osg::NodeGraph::NodeList::size | ( | void | ) | [inline] |
| bool osg::NodeGraph::NodeList::empty | ( | void | ) | [inline] |
| NodeList* osg::NodeGraph::NodeList::down | ( | void | ) | [inline] |
| void osg::NodeGraph::NodeList::setDown | ( | NodeList * | down | ) | [inline] |
| int osg::NodeGraph::NodeList::degree | ( | void | ) | [inline] |
| void osg::NodeGraph::NodeList::setDegree | ( | int | degree | ) | [inline] |
| Node* osg::NodeGraph::NodeList::first | ( | void | ) | [inline] |
| Node* osg::NodeGraph::NodeList::last | ( | void | ) | [inline] |
| void osg::NodeGraph::NodeList::push_back | ( | Node & | node | ) | [inline] |
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 }
| void osg::NodeGraph::NodeList::push_front | ( | Node & | node | ) | [inline] |
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 }
| void osg::NodeGraph::NodeList::add | ( | Node & | node, | |
| bool | back | |||
| ) | [inline] |
friend class Node [friend] |
Definition at line 108 of file OSGNodeGraph.h.
int osg::NodeGraph::NodeList::_degree [private] |
Definition at line 110 of file OSGNodeGraph.h.
Node* osg::NodeGraph::NodeList::_first [private] |
Definition at line 111 of file OSGNodeGraph.h.
Node* osg::NodeGraph::NodeList::_last [private] |
Definition at line 112 of file OSGNodeGraph.h.
int osg::NodeGraph::NodeList::_size [private] |
Definition at line 113 of file OSGNodeGraph.h.
NodeList* osg::NodeGraph::NodeList::_down [private] |
Definition at line 114 of file OSGNodeGraph.h.
1.5.5