|
liborigin2
29/08/2011
|
Breadth-first iterator, using a queue. More...
#include <tree.hh>
Public Member Functions | |
| breadth_first_queued_iterator () | |
| breadth_first_queued_iterator (tree_node *) | |
| breadth_first_queued_iterator (const iterator_base &) | |
| bool | operator!= (const breadth_first_queued_iterator &) const |
| breadth_first_queued_iterator & | operator++ () |
| breadth_first_queued_iterator | operator++ (int) |
| breadth_first_queued_iterator & | operator+= (unsigned int) |
| bool | operator== (const breadth_first_queued_iterator &) const |
Public Member Functions inherited from tree< T, tree_node_allocator >::iterator_base | |
| sibling_iterator | begin () const |
| sibling_iterator | end () const |
| iterator_base () | |
| iterator_base (tree_node *) | |
| unsigned int | number_of_children () const |
| Number of children of the node pointed to by the iterator. More... | |
| T & | operator* () const |
| T * | operator-> () const |
| void | skip_children () |
| When called, the next increment/decrement skips children of this node. More... | |
| void | skip_children (bool skip) |
Private Attributes | |
| std::queue< tree_node * > | traversal_queue |
Additional Inherited Members | |
Public Types inherited from tree< T, tree_node_allocator >::iterator_base | |
| typedef ptrdiff_t | difference_type |
| typedef std::bidirectional_iterator_tag | iterator_category |
| typedef T * | pointer |
| typedef T & | reference |
| typedef size_t | size_type |
| typedef T | value_type |
Public Attributes inherited from tree< T, tree_node_allocator >::iterator_base | |
| tree_node * | node |
Protected Attributes inherited from tree< T, tree_node_allocator >::iterator_base | |
| bool | skip_current_children_ |
Breadth-first iterator, using a queue.
| tree< T, tree_node_allocator >::breadth_first_queued_iterator::breadth_first_queued_iterator | ( | ) |
| tree< T, tree_node_allocator >::breadth_first_queued_iterator::breadth_first_queued_iterator | ( | const iterator_base & | other | ) |
| bool tree< T, tree_node_allocator >::breadth_first_queued_iterator::operator!= | ( | const breadth_first_queued_iterator & | other | ) | const |
| tree< T, tree_node_allocator >::breadth_first_queued_iterator & tree< T, tree_node_allocator >::breadth_first_queued_iterator::operator++ | ( | ) |
| tree< T, tree_node_allocator >::breadth_first_queued_iterator tree< T, tree_node_allocator >::breadth_first_queued_iterator::operator++ | ( | int | ) |
| tree< T, tree_node_allocator >::breadth_first_queued_iterator & tree< T, tree_node_allocator >::breadth_first_queued_iterator::operator+= | ( | unsigned int | num | ) |
| bool tree< T, tree_node_allocator >::breadth_first_queued_iterator::operator== | ( | const breadth_first_queued_iterator & | other | ) | const |
1.8.10