42 #ifndef PB_DS_LEFT_CHILD_NEXT_SIBLING_HEAP_CONST_ITERATOR_HPP
43 #define PB_DS_LEFT_CHILD_NEXT_SIBLING_HEAP_CONST_ITERATOR_HPP
52 #define PB_DS_CLASS_C_DEC \
53 left_child_next_sibling_heap_const_iterator_<Node, _Alloc>
55 #define PB_DS_BASIC_HEAP_CIT_BASE \
56 left_child_next_sibling_heap_node_point_const_iterator_<Node, _Alloc>
59 template<
typename Node,
typename _Alloc>
78 typedef typename base_type::pointer
pointer;
107 {
return (base_type::m_p_nd == other.m_p_nd); }
112 {
return (base_type::m_p_nd != other.m_p_nd); }
134 if (base_type::m_p_nd->m_p_next_sibling != 0)
136 base_type::m_p_nd = base_type::m_p_nd->m_p_next_sibling;
137 while (base_type::m_p_nd->m_p_l_child != 0)
138 base_type::m_p_nd = base_type::m_p_nd->m_p_l_child;
145 base_type::m_p_nd = base_type::m_p_nd->m_p_prev_or_parent;
146 if (base_type::m_p_nd == 0
147 || base_type::m_p_nd->m_p_l_child == p_next)
153 #undef PB_DS_CLASS_C_DEC
154 #undef PB_DS_BASIC_HEAP_CIT_BASE
base_type::const_reference const_reference
Iterator's const reference type.
Definition: const_iterator.hpp:87
base_type::reference reference
Iterator's reference type.
Definition: const_iterator.hpp:84
PB_DS_CLASS_C_DEC operator++(int)
Definition: const_iterator.hpp:123
base_type::pointer pointer
Iterator's pointer type.
Definition: const_iterator.hpp:78
#define PB_DS_CLASS_C_DEC
Definition: const_iterator.hpp:52
#define _GLIBCXX_DEBUG_ASSERT(_Condition)
Definition: debug.h:61
left_child_next_sibling_heap_const_iterator_(const PB_DS_CLASS_C_DEC &other)
Copy constructor.
Definition: const_iterator.hpp:101
std::forward_iterator_tag iterator_category
Category.
Definition: const_iterator.hpp:69
_Alloc::difference_type difference_type
Difference type.
Definition: const_iterator.hpp:72
bool operator!=(const PB_DS_CLASS_C_DEC &other) const
Compares content (negatively) to a different iterator object.
Definition: const_iterator.hpp:111
left_child_next_sibling_heap_const_iterator_(node_pointer p_nd)
Definition: const_iterator.hpp:90
void inc()
Definition: const_iterator.hpp:132
base_type::value_type value_type
Iterator's value type.
Definition: const_iterator.hpp:75
Const point-type iterator.
Definition: const_iterator.hpp:60
#define PB_DS_BASIC_HEAP_CIT_BASE
Definition: const_iterator.hpp:55
base_type::const_pointer const_pointer
Iterator's const pointer type.
Definition: const_iterator.hpp:81
PB_DS_BASIC_HEAP_CIT_BASE base_type
Definition: const_iterator.hpp:64
base_type::node_pointer node_pointer
Definition: const_iterator.hpp:65
left_child_next_sibling_heap_const_iterator_()
Default constructor.
Definition: const_iterator.hpp:96
bool operator==(const PB_DS_CLASS_C_DEC &other) const
Compares content to a different iterator object.
Definition: const_iterator.hpp:106
PB_DS_CLASS_C_DEC & operator++()
Definition: const_iterator.hpp:115