18 #ifndef itkLeafTreeIterator_h
19 #define itkLeafTreeIterator_h
25 template<
typename TTreeType >
68 template<
typename TTreeType >
86 template<
typename TTreeType >
104 template<
typename TTreeType >
109 template<
typename TTreeType >
117 template<
typename TTreeType >
120 if ( this->m_Position == ITK_NULLPTR )
124 if ( const_cast< TreeNodeType * >( FindNextNode() ) != ITK_NULLPTR )
133 template<
typename TTreeType >
137 this->m_Position =
const_cast< TreeNodeType *
>( FindNextNode() );
138 return this->m_Position->Get();
143 template<
typename TTreeType >
174 template<
typename TTreeType >
LeafTreeIterator(const TreeType *tree)
TTreeType::TreeNodeType TreeNodeType
Superclass::NodeType NodeType
virtual bool HasChild(int number=0) const
const TreeNodeType * FindNextNode() const
virtual TreeNodeType * GetNode()
TreeType::ValueType ValueType
TreeIteratorBase< TTreeType > * Clone()
This class provides the base implementation for tree iterators.
Superclass::TreeNodeType TreeNodeType
class ITK_TEMPLATE_EXPORT LeafTreeIterator
TreeIteratorBase< TTreeType > Superclass
const TreeNodeType * m_Root
virtual ~LeafTreeIterator()