18 #ifndef itkTreeContainer_h
19 #define itkTreeContainer_h
37 template<
typename TValue >
67 bool SetRoot(
const TValue element)
override;
76 bool Contains(
const TValue element)
override;
79 int Count()
const override;
82 bool IsLeaf(
const TValue element)
override;
85 bool IsRoot(
const TValue element)
override;
88 bool Clear()
override;
100 bool Add(
const TValue child,
const TValue parent);
103 const TreeNodeType * GetNode(TValue val)
const;
114 void PrintSelf(std::ostream & os,
Indent indent)
const override;
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkTreeContainer.hxx"
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)
Light weight base class for most itk classes.
Represents a node in a tree.
This class provides the base implementation for tree iterators.
A base class for tree containers.
Control indentation during Print() invocation.
const TreeNodeType * GetRoot() const override
TreeNodeType::Pointer m_Root
int m_DefaultChildrenCount