18 #ifndef __itkTreeContainer_h
19 #define __itkTreeContainer_h
37 template<
typename TValue >
67 virtual bool SetRoot(
const TValue element);
82 bool IsLeaf(
const TValue element);
85 bool IsRoot(
const TValue element);
100 bool Add(
const TValue child,
const TValue parent);
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkTreeContainer.hxx"
bool Contains(const TValue element)
Light weight base class for most itk classes.
Represents a node in a tree.
TreeIteratorBase< Self > IteratorType
virtual bool SetRoot(const TValue element)
TreeContainer< TValue > Self
bool Add(const TValue child, const TValue parent)
TreeNode< ValueType > TreeNodeType
PreOrderTreeIterator< Self > PreOrderIteratorType
ObjectType * GetPointer() const
bool Swap(IteratorType &v, IteratorType &w)
SmartPointer< const Self > ConstPointer
TreeContainerBase< TValue > Superclass
void PrintSelf(std::ostream &os, Indent indent) const
const TreeNodeType * GetNode(TValue val) const
This class provides the base implementation for tree iterators.
A base class for tree containers.
Control indentation during Print() invocation.
TreeNodeType::Pointer m_Root
SmartPointer< Self > Pointer
bool operator==(TreeContainer< TValue > &tree)
int m_DefaultChildrenCount
bool IsRoot(const TValue element)
const TreeNodeType * GetRoot() const
bool IsLeaf(const TValue element)