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