|
Om
|
A doubly-linked list in which nodes are unowned. More...
#include "list.hpp"
Classes | |
| class | Node |
| A List node. More... | |
Public Types | |
| enum | NodeIndex { theFrontNodeIndex , theBackNodeIndex } |
Public Member Functions | |
| List () | |
| void | Clear () |
| Node * | GetNode (NodeIndex const) |
| Gets the first or last Node. More... | |
| Node const * | GetNode (NodeIndex const) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
| bool | IsEmpty () const |
| void | LinkNode (NodeIndex const, Node &) |
| Links the Node to the specified end. More... | |
| void | RelinkNode (NodeIndex const, Node &) |
| Relinks the Node to the specified end. More... | |
| void | Swap (List &) |
| Node * | UnlinkNode (NodeIndex const) |
| Unlinks the Node at the specified end and returns it. More... | |
Private Types | |
| typedef boost::array< Node *, 2 > | NodeArray |
Private Attributes | |
| NodeArray | thisNodeArray |
| The first and last Node; both are null if the list is empty. More... | |
| enum Om::List::NodeIndex |
| void Om::List< ThisValue >::Clear | ( | ) |
| bool Om::List< ThisValue >::IsEmpty | ( | ) | const |