Public Member Functions | Public Attributes | Private Member Functions | List of all members
tree< T, tree_node_allocator >::children_iterator Class Reference

Iterator which traverses only the nodes which are siblings of each other. More...

#include <tree_new.h>

Inheritance diagram for tree< T, tree_node_allocator >::children_iterator:
Inheritance graph
[legend]

Public Member Functions

 children_iterator ()
 
 children_iterator (tree_node *)
 
bool operator!= (const children_iterator &) const
 
children_iteratoroperator++ ()
 
children_iterator operator++ (int)
 
children_iteratoroperator+= (unsigned int)
 
children_iteratoroperator-- ()
 
children_iterator operator-- (int)
 
children_iteratoroperator-= (unsigned int)
 
bool operator== (const children_iterator &) const
 
tree_noderange_first () const
 
tree_noderange_last () const
 
- Public Member Functions inherited from tree< T, tree_node_allocator >::iterator_base
sibling_iterator begin () const
 
children_iterator begin_children_iterator () const
 
sibling_iterator end () const
 
children_iterator end_children_iterator () const
 
 iterator_base ()
 
 iterator_base (tree_node *)
 
 iterator_base ()
 
 iterator_base (tree_node *)
 
unsigned int number_of_children () const
 Number of children of the node pointed to by the iterator. More...
 
unsigned int number_of_children () const
 Number of children of the node pointed to by the iterator. More...
 
T & operator* () const
 
T & operator* () const
 
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)
 

Public Attributes

tree_nodeparent_
 
- Public Attributes inherited from tree< T, tree_node_allocator >::iterator_base
tree_nodenode
 

Private Member Functions

void set_parent_ ()
 

Additional Inherited Members

- Public Types inherited from tree< T, tree_node_allocator >::iterator_base
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
 
- Protected Attributes inherited from tree< T, tree_node_allocator >::iterator_base
bool skip_current_children_
 

Detailed Description

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

Iterator which traverses only the nodes which are siblings of each other.

Definition at line 188 of file tree_new.h.

Constructor & Destructor Documentation

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator::children_iterator ( )

Definition at line 1406 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator::children_iterator ( tree_node )

Member Function Documentation

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
bool tree< T, tree_node_allocator >::children_iterator::operator!= ( const children_iterator other) const

Definition at line 1097 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator & tree< T, tree_node_allocator >::children_iterator::operator++ ( )

Definition at line 1429 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator tree< T, tree_node_allocator >::children_iterator::operator++ ( int  )

Definition at line 1448 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator & tree< T, tree_node_allocator >::children_iterator::operator+= ( unsigned int  num)

Definition at line 1464 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator & tree< T, tree_node_allocator >::children_iterator::operator-- ( )

Definition at line 1437 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator tree< T, tree_node_allocator >::children_iterator::operator-- ( int  )

Definition at line 1456 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::children_iterator & tree< T, tree_node_allocator >::children_iterator::operator-= ( unsigned int  num)

Definition at line 1474 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
bool tree< T, tree_node_allocator >::children_iterator::operator== ( const children_iterator other) const

Definition at line 1104 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::tree_node * tree< T, tree_node_allocator >::children_iterator::range_first ( ) const

Definition at line 1484 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree< T, tree_node_allocator >::tree_node * tree< T, tree_node_allocator >::children_iterator::range_last ( ) const

Definition at line 1491 of file tree_new.h.

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
void tree< T, tree_node_allocator >::children_iterator::set_parent_ ( )
private

Definition at line 1420 of file tree_new.h.

Member Data Documentation

template<class T, class tree_node_allocator = std::allocator<tree_node_<T> >>
tree_node* tree< T, tree_node_allocator >::children_iterator::parent_

Definition at line 204 of file tree_new.h.


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


mtt
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:19