Logo Search packages:      
Sourcecode: cadabra version File versions

tree< T, tree_node_allocator >::iterator_base Class Reference

#include <tree.hh>

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

exptree::index_iterator tree< T, tree_node_allocator >::breadth_first_queued_iterator tree< T, tree_node_allocator >::fixed_depth_iterator tree< T, tree_node_allocator >::leaf_iterator tree< T, tree_node_allocator >::post_order_iterator tree< T, tree_node_allocator >::post_order_iterator tree< T, tree_node_allocator >::pre_order_iterator tree< T, tree_node_allocator >::pre_order_iterator tree< T, tree_node_allocator >::sibling_iterator tree< T, tree_node_allocator >::sibling_iterator

List of all members.


Detailed Description

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

Base class for iterators, only pointers stored, no traversal logic.

Definition at line 135 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
 iterator_base (tree_node *tn)
 iterator_base (tree_node *)
unsigned int number_of_children () const
unsigned int number_of_children () const
 Number of children of the node pointed to by the iterator.
T & operator* () const
T & operator* () const
virtual iterator_baseoperator++ ()=0
virtual iterator_baseoperator+= (unsigned int)=0
virtual iterator_baseoperator-- ()=0
virtual iterator_baseoperator-= (unsigned int)=0
T * operator-> () const
T * operator-> () 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_

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

Generated by  Doxygen 1.6.0   Back to index