NCBI C++ ToolKit
Public Member Functions | Public Attributes | Private Member Functions | List of all members
tree< T, tree_node_allocator >::sibling_iterator Class Reference

Search Toolkit Book for tree::sibling_iterator

#include <algo/structure/cd_utils/tree_msvc7.hpp>

+ Inheritance diagram for tree< T, tree_node_allocator >::sibling_iterator:
+ Collaboration diagram for tree< T, tree_node_allocator >::sibling_iterator:

Public Member Functions

 sibling_iterator ()
 
 sibling_iterator (tree_node *)
 
 sibling_iterator (const sibling_iterator &)
 
 sibling_iterator (const iterator_base &)
 
sibling_iteratoroperator++ ()
 
sibling_iteratoroperator-- ()
 
sibling_iterator operator++ (int)
 
sibling_iterator operator-- (int)
 
sibling_iteratoroperator+= (unsigned int)
 
sibling_iteratoroperator-= (unsigned int)
 
tree_noderange_first () const
 
tree_noderange_last () const
 
- Public Member Functions inherited from tree< T, tree_node_allocator >::iterator_base
 iterator_base ()
 
 iterator_base (tree_node *)
 
Toperator* () const
 
Toperator-> () const
 
bool operator== (const iterator_base &) const
 
bool operator!= (const iterator_base &) const
 
void skip_children ()
 
unsigned int number_of_children () const
 
sibling_iterator begin () const
 
sibling_iterator end () const
 
bool is_valid () const
 

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 T value_type
 
typedef Tpointer
 
typedef Treference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef std::bidirectional_iterator_tag iterator_category
 
- 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 >::sibling_iterator

Definition at line 196 of file tree_msvc7.hpp.

Constructor & Destructor Documentation

◆ sibling_iterator() [1/4]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator

◆ sibling_iterator() [2/4]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator ( tree_node tn)

◆ sibling_iterator() [3/4]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator ( const sibling_iterator other)

Definition at line 1862 of file tree_msvc7.hpp.

◆ sibling_iterator() [4/4]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator ( const iterator_base other)

Member Function Documentation

◆ operator++() [1/2]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator & tree< T, tree_node_allocator >::sibling_iterator::operator++ ( void  )

Definition at line 1877 of file tree_msvc7.hpp.

◆ operator++() [2/2]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator tree< T, tree_node_allocator >::sibling_iterator::operator++ ( int  )

Definition at line 1896 of file tree_msvc7.hpp.

References copy().

◆ operator+=()

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator & tree< T, tree_node_allocator >::sibling_iterator::operator+= ( unsigned int  num)

Definition at line 1912 of file tree_msvc7.hpp.

◆ operator--() [1/2]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator & tree< T, tree_node_allocator >::sibling_iterator::operator-- ( void  )

Definition at line 1885 of file tree_msvc7.hpp.

References assert.

◆ operator--() [2/2]

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator tree< T, tree_node_allocator >::sibling_iterator::operator-- ( int  )

Definition at line 1904 of file tree_msvc7.hpp.

References copy().

◆ operator-=()

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::sibling_iterator & tree< T, tree_node_allocator >::sibling_iterator::operator-= ( unsigned int  num)

Definition at line 1922 of file tree_msvc7.hpp.

◆ range_first()

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::tree_node * tree< T, tree_node_allocator >::sibling_iterator::range_first

Definition at line 1932 of file tree_msvc7.hpp.

References tmp.

◆ range_last()

template<class T , class tree_node_allocator >
tree< T, tree_node_allocator >::tree_node * tree< T, tree_node_allocator >::sibling_iterator::range_last

◆ set_parent_()

template<class T , class tree_node_allocator >
void tree< T, tree_node_allocator >::sibling_iterator::set_parent_
private

Member Data Documentation

◆ parent_

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

The documentation for this class was generated from the following file:
Modified on Sat May 25 14:22:37 2024 by modify_doxy.py rev. 669887