18 #ifndef itkTreeContainerBase_h
19 #define itkTreeContainerBase_h
33 template<
typename TValue >
50 virtual bool SetRoot(
const TValue element) = 0;
56 virtual bool Contains(
const TValue element) = 0;
59 virtual int Count()
const = 0;
62 virtual bool IsLeaf(
const TValue element) = 0;
65 virtual bool IsRoot(
const TValue element) = 0;
68 virtual bool Clear() = 0;
virtual bool Contains(const TValue element)=0
Represents a node in a tree.
virtual const TreeNode< TValue > * GetRoot() const =0
virtual int Count() const =0
virtual bool SetRoot(const TValue element)=0
virtual bool IsLeaf(const TValue element)=0
virtual bool IsRoot(const TValue element)=0
virtual ~TreeContainerBase() override
void SetSubtree(bool val)
A base class for tree containers.
SmartPointer< Self > Pointer
Base class for most ITK classes.
SmartPointer< const Self > ConstPointer