|
ITK
5.1.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkLeafTreeIterator_h
19 #define itkLeafTreeIterator_h
25 template <
typename TTreeType>
48 GetType()
const override;
61 HasNext()
const override;
70 template <
typename TTreeType>
88 template <
typename TTreeType>
106 template <
typename TTreeType>
110 template <
typename TTreeType>
118 template <
typename TTreeType>
122 if (this->m_Position ==
nullptr)
126 if (const_cast<TreeNodeType *>(FindNextNode()) !=
nullptr)
135 template <
typename TTreeType>
139 this->m_Position = const_cast<TreeNodeType *>(FindNextNode());
140 if (this->m_Position ==
nullptr)
142 return this->m_Root->Get();
144 return this->m_Position->Get();
149 template <
typename TTreeType>
180 template <
typename TTreeType>
bool HasNext() const override
virtual TreeNodeType * GetNode()
LeafTreeIterator(const TreeType *tree)
class ITK_TEMPLATE_EXPORT LeafTreeIterator
virtual bool HasChild(int number=0) const
This class provides the base implementation for tree iterators.
typename TreeType::ValueType ValueType
TreeIteratorBase< TTreeType > * Clone() override
const ValueType & Next() override
NodeType GetType() const override
const TreeNodeType * FindNextNode() const
~LeafTreeIterator() override
typename Superclass::TreeNodeType TreeNodeType
typename TTreeType::TreeNodeType TreeNodeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
typename Superclass::NodeType NodeType
const TreeNodeType * m_Root