42 template<
typename TValue >
46 ITK_DISALLOW_COPY_AND_ASSIGN(
TreeNode);
63 const TValue & Get()
const;
66 TValue Set(
const TValue data);
72 Self * GetParent()
const;
75 bool HasChildren()
const;
78 bool HasParent()
const;
81 void SetParent(
Self *n);
90 ChildIdentifier GetNumberOfChildren(
unsigned int depth = 0,
char *name =
nullptr)
const;
93 bool ReplaceChild(
Self *oldChild,
Self *newChild);
102 void AddChild(
Self *node);
108 #if !defined( ITK_WRAPPING_PARSER )
109 virtual ChildrenListType * GetChildren(
unsigned int depth = 0,
char *name =
nullptr)
const;
114 #if !defined( ITK_WRAPPING_PARSER )
133 #ifndef ITK_MANUAL_INSTANTIATION
134 #include "itkTreeNode.hxx"
Light weight base class for most itk classes.
Represents a node in a tree.
::itk::OffsetValueType ChildIdentifier
std::vector< Pointer > ChildrenListType
virtual ChildrenListType & GetChildrenList()
ChildrenListType m_Children
Base class for most ITK classes.
signed long OffsetValueType