Logo Search packages:      
Sourcecode: cadabra version File versions

tree< T, tree_node_allocator >::leaf_iterator Class Reference

#include <tree.hh>

Inheritance diagram for tree< T, tree_node_allocator >::leaf_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 >::leaf_iterator

Iterator which traverses only the leaves.

Definition at line 271 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
sibling_iterator end () const
sibling_iterator end () const
 leaf_iterator (const iterator_base &)
 leaf_iterator (const sibling_iterator &)
 leaf_iterator (tree_node *, tree_node *top=0)
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 leaf_iterator &) const
T & operator* () const
T & operator* () const
leaf_iterator operator++ (int)
leaf_iteratoroperator++ ()
leaf_iteratoroperator+= (unsigned int)
leaf_iterator operator-- (int)
leaf_iteratoroperator-- ()
leaf_iteratoroperator-= (unsigned int)
T * operator-> () const
T * operator-> () const
bool operator== (const leaf_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

tree_nodetop_node

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

Generated by  Doxygen 1.6.0   Back to index