A tree structure with any number of children. More...
#include <tree.hpp>
Public Types | |
| typedef T | value_type |
| The type of the value stored in the nodes. | |
| typedef tree< T > | self_type |
| The type of the current class. | |
| typedef child_list::iterator | iterator |
| typedef child_list::const_iterator | const_iterator |
Public Member Functions | |
| tree (const T &that) | |
| bool | operator== (const self_type &that) const |
| bool | is_leaf () const |
| self_type & | add_child (const T &v) |
| self_type & | add_child (const self_type &v) |
| iterator | find (const T &v) |
| const_iterator | find (const T &v) const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
Public Attributes | |
| T | value |
| The value in this node. | |
A tree structure with any number of children.
| typedef child_list::const_iterator claw::tree< T >::const_iterator |
| typedef child_list::iterator claw::tree< T >::iterator |
| typedef tree<T> claw::tree< T >::self_type |
| typedef T claw::tree< T >::value_type |
| T claw::tree< T >::value |