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
Light weight base class for most itk classes.
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
void SetSubtree(bool val)
~TreeContainerBase() override=default
A base class for tree containers.
Base class for most ITK classes.