NCBI C++ ToolKit
|
Search Toolkit Book for tree::sibling_iterator
#include <algo/structure/cd_utils/tree_msvc7.hpp>
Public Member Functions | |
sibling_iterator () | |
sibling_iterator (tree_node *) | |
sibling_iterator (const sibling_iterator &) | |
sibling_iterator (const iterator_base &) | |
sibling_iterator & | operator++ () |
sibling_iterator & | operator-- () |
sibling_iterator | operator++ (int) |
sibling_iterator | operator-- (int) |
sibling_iterator & | operator+= (unsigned int) |
sibling_iterator & | operator-= (unsigned int) |
tree_node * | range_first () const |
tree_node * | range_last () const |
Public Member Functions inherited from tree< T, tree_node_allocator >::iterator_base | |
iterator_base () | |
iterator_base (tree_node *) | |
T & | operator* () const |
T * | operator-> () 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_node * | parent_ |
Public Attributes inherited from tree< T, tree_node_allocator >::iterator_base | |
tree_node * | node |
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 T * | pointer |
typedef T & | reference |
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_ |
Definition at line 196 of file tree_msvc7.hpp.
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator |
Definition at line 1841 of file tree_msvc7.hpp.
References tree< T, tree_node_allocator >::sibling_iterator::set_parent_().
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator | ( | tree_node * | tn | ) |
Definition at line 1848 of file tree_msvc7.hpp.
References tree< T, tree_node_allocator >::sibling_iterator::set_parent_().
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator | ( | const sibling_iterator & | other | ) |
Definition at line 1862 of file tree_msvc7.hpp.
tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator | ( | const iterator_base & | other | ) |
Definition at line 1855 of file tree_msvc7.hpp.
References tree< T, tree_node_allocator >::sibling_iterator::set_parent_().
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.
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().
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.
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.
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().
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.
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.
tree< T, tree_node_allocator >::tree_node * tree< T, tree_node_allocator >::sibling_iterator::range_last |
Definition at line 1939 of file tree_msvc7.hpp.
References tree_node_< T >::last_child.
Referenced by tree< T, tree_node_allocator >::insert(), tree< T, tree_node_allocator >::post_order_iterator::post_order_iterator(), and tree< T, tree_node_allocator >::pre_order_iterator::pre_order_iterator().
|
private |
Definition at line 1868 of file tree_msvc7.hpp.
Referenced by tree< T, tree_node_allocator >::sibling_iterator::sibling_iterator().
tree_node* tree< T, tree_node_allocator >::sibling_iterator::parent_ |
Definition at line 212 of file tree_msvc7.hpp.
Referenced by tree< T, tree_node_allocator >::iterator_base::begin(), tree< T, tree_node_allocator >::iterator_base::end(), tree< T, tree_node_allocator >::end(), tree< T, tree_node_allocator >::insert(), tree< T, tree_node_allocator >::post_order_iterator::post_order_iterator(), and tree< T, tree_node_allocator >::pre_order_iterator::pre_order_iterator().