18 #ifndef itkLevelOrderTreeIterator_h
19 #define itkLevelOrderTreeIterator_h
33 template<
typename TTreeType >
58 int GetStartLevel()
const;
61 int GetEndLevel()
const;
74 this->Superclass::operator=(iterator);
86 const ValueType & Next()
override;
89 bool HasNext()
const override;
93 const TreeNodeType * FindNextNode()
const;
95 const TreeNodeType * FindNextNodeHelp()
const;
97 int GetLevel(
const TreeNodeType *node)
const;
101 mutable std::queue< const TreeNodeType * >
m_Queue;
106 #ifndef ITK_MANUAL_INSTANTIATION
107 #include "itkLevelOrderTreeIterator.hxx"
Iterate over a tree in level order.
std::queue< const TreeNodeType * > m_Queue
const Self & operator=(const Self &iterator)
typename Superclass::TreeNodeType TreeNodeType
This class provides the base implementation for tree iterators.
typename TTreeType::ValueType ValueType
typename TTreeType::TreeNodeType TreeNodeType