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

Search Toolkit Book for tree::iterator_base

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

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

Public Types

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
 

Public Member Functions

 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_nodenode
 

Protected Attributes

bool skip_current_children_
 

Detailed Description

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

Definition at line 110 of file tree_msvc7.hpp.

Member Typedef Documentation

◆ difference_type

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

Definition at line 117 of file tree_msvc7.hpp.

◆ iterator_category

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

Definition at line 118 of file tree_msvc7.hpp.

◆ pointer

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

Definition at line 114 of file tree_msvc7.hpp.

◆ reference

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

Definition at line 115 of file tree_msvc7.hpp.

◆ size_type

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

Definition at line 116 of file tree_msvc7.hpp.

◆ value_type

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

Definition at line 113 of file tree_msvc7.hpp.

Constructor & Destructor Documentation

◆ iterator_base() [1/2]

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

Definition at line 1392 of file tree_msvc7.hpp.

◆ iterator_base() [2/2]

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

Definition at line 1398 of file tree_msvc7.hpp.

Member Function Documentation

◆ begin()

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

◆ end()

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

◆ is_valid()

template<class T , class tree_node_allocator = std::allocator<tree_node_<T> >>
bool tree< T, tree_node_allocator >::iterator_base::is_valid ( ) const
inline

◆ number_of_children()

template<class T , class tree_node_allocator >
unsigned int tree< T, tree_node_allocator >::iterator_base::number_of_children

◆ operator!=()

template<class T , class tree_node_allocator >
bool tree< T, tree_node_allocator >::iterator_base::operator!= ( const iterator_base other) const

◆ operator*()

template<class T , class tree_node_allocator >
T & tree< T, tree_node_allocator >::iterator_base::operator* ( void  ) const

Definition at line 1404 of file tree_msvc7.hpp.

◆ operator->()

template<class T , class tree_node_allocator >
T * tree< T, tree_node_allocator >::iterator_base::operator->

Definition at line 1410 of file tree_msvc7.hpp.

◆ operator==()

template<class T , class tree_node_allocator >
bool tree< T, tree_node_allocator >::iterator_base::operator== ( const iterator_base other) const

◆ skip_children()

template<class T , class tree_node_allocator >
void tree< T, tree_node_allocator >::iterator_base::skip_children

Member Data Documentation

◆ node

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

◆ skip_current_children_

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

Definition at line 138 of file tree_msvc7.hpp.


The documentation for this class was generated from the following file:
Modified on Tue Feb 27 05:50:33 2024 by modify_doxy.py rev. 669887