18 #ifndef itkLevelOrderTreeIterator_h
19 #define itkLevelOrderTreeIterator_h
33 template<
typename TTreeType >
55 NodeType GetType()
const;
58 int GetStartLevel()
const;
61 int GetEndLevel()
const;
74 this->Superclass::operator=(iterator);
86 const ValueType & Next();
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.
TTreeType::TreeNodeType TreeNodeType
virtual ~LevelOrderTreeIterator()
LevelOrderTreeIterator Self
std::queue< const TreeNodeType * > m_Queue
TTreeType::ValueType ValueType
Superclass::TreeNodeType TreeNodeType
const Self & operator=(const Self &iterator)
Superclass::NodeType NodeType
This class provides the base implementation for tree iterators.
TreeIteratorBase< TTreeType > Superclass