Logo Search packages:      
Sourcecode: cadabra version File versions

tree< T, tree_node_allocator >::breadth_first_queued_iterator Class Reference

#include <tree.hh>

Inheritance diagram for tree< T, tree_node_allocator >::breadth_first_queued_iterator:

tree< T, tree_node_allocator >::iterator_base

List of all members.


Detailed Description

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
class tree< T, tree_node_allocator >::breadth_first_queued_iterator

Breadth-first iterator, using a queue.

Definition at line 205 of file tree.hh.


Public Types

typedef ptrdiff_t difference_type
typedef ptrdiff_t difference_type
typedef
std::bidirectional_iterator_tag 
iterator_category
typedef
std::bidirectional_iterator_tag 
iterator_category
typedef T * pointer
typedef T * pointer
typedef T & reference
typedef T & reference
typedef size_t size_type
typedef size_t size_type
typedef T value_type
typedef T value_type

Public Member Functions

sibling_iterator begin () const
sibling_iterator begin () const
 breadth_first_queued_iterator (const iterator_base &)
 breadth_first_queued_iterator (tree_node *)
sibling_iterator end () const
sibling_iterator end () const
unsigned int number_of_children () const
unsigned int number_of_children () const
 Number of children of the node pointed to by the iterator.
bool operator!= (const breadth_first_queued_iterator &) const
T & operator* () const
T & operator* () const
breadth_first_queued_iterator operator++ (int)
breadth_first_queued_iteratoroperator++ ()
breadth_first_queued_iteratoroperator+= (unsigned int)
virtual iterator_baseoperator-- ()=0
virtual iterator_baseoperator-= (unsigned int)=0
T * operator-> () const
T * operator-> () const
bool operator== (const breadth_first_queued_iterator &) const
void skip_children ()
void skip_children (bool skip)
void skip_children ()
 When called, the next increment/decrement skips children of this node.

Public Attributes

tree_nodenode

Protected Attributes

bool skip_current_children_

Private Attributes

std::queue< tree_node * > traversal_queue

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index