#include <itkTreeContainer.h>
Inheritance diagram for itk::TreeContainer< TValueType >:
Public Types | |
typedef TreeContainerBase< TValueType > | Superclass |
typedef TreeContainer< TValueType > | Self |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TValueType | ValueType |
typedef TreeNode< ValueType > | TreeNodeType |
typedef TreeIteratorBase< Self > | IteratorType |
typedef PreOrderTreeIterator< Self > | PreOrderIteratorType |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
TreeContainer (int defaultChildrenCount) | |
TreeContainer (TreeContainer< TValueType > &tree) | |
virtual bool | SetRoot (TValueType element) |
bool | SetRoot (IteratorType &pos) |
virtual bool | SetRoot (TreeNode< TValueType > *node) |
bool | Contains (const TValueType element) |
int | Count () const |
bool | IsLeaf (const TValueType element) |
bool | IsRoot (const TValueType element) |
bool | Clear () |
bool | operator== (TreeContainer< TValueType > &tree) |
bool | Swap (IteratorType &v, IteratorType &w) |
const TreeNodeType * | GetRoot () const |
bool | Add (const TValueType child, const TValueType parent) |
const TreeNodeType * | GetNode (TValueType val) const |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
TreeContainer () | |
virtual | ~TreeContainer () |
void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
TreeNodeType::Pointer | m_Root |
int | m_DefaultChildrenCount |
This class derives from the TreeContainerBase class.
The class is templated over the type of the elements.
Template parameters for class TreeContainer:
Definition at line 41 of file itkTreeContainer.h.
|
Reimplemented from itk::TreeContainerBase< TValueType >. Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. Definition at line 50 of file itkTreeContainer.h. |
|
Iterators typedef Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. Definition at line 55 of file itkTreeContainer.h. |
|
Reimplemented from itk::TreeContainerBase< TValueType >. Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. Definition at line 49 of file itkTreeContainer.h. |
|
Definition at line 56 of file itkTreeContainer.h. |
|
Smart pointer typedef support. Reimplemented from itk::TreeContainerBase< TValueType >. Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. Definition at line 48 of file itkTreeContainer.h. |
|
Standard typedefs Reimplemented from itk::TreeContainerBase< TValueType >. Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. Definition at line 47 of file itkTreeContainer.h. |
|
Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. Definition at line 52 of file itkTreeContainer.h. |
|
Reimplemented from itk::TreeContainerBase< TValueType >. Definition at line 51 of file itkTreeContainer.h. |
|
Constructor |
|
Constructor |
|
|
|
|
|
Add a child to a given parent using values |
|
Clear the tree Implements itk::TreeContainerBase< TValueType >. |
|
Return true if the element is in the tree Implements itk::TreeContainerBase< TValueType >. |
|
Return the number of elements in the tree Implements itk::TreeContainerBase< TValueType >. |
|
Run-time type information (and related methods). Reimplemented from itk::TreeContainerBase< TValueType >. Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. |
|
Get node given a value |
|
Get the root Implements itk::TreeContainerBase< TValueType >. Definition at line 101 of file itkTreeContainer.h. |
|
Return true if the element is a leaf Implements itk::TreeContainerBase< TValueType >. |
|
Return true if the element is a root Implements itk::TreeContainerBase< TValueType >. |
|
Method for creation through the object factory. Reimplemented from itk::Object. Reimplemented in itk::SpatialObjectTreeContainer< TDimension >. |
|
operator equal |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::Object. |
|
Set the root as a tree node Implements itk::TreeContainerBase< TValueType >. |
|
The the root as an iterator position |
|
Set the root as an element Implements itk::TreeContainerBase< TValueType >. |
|
Swap the iterators |
|
Definition at line 115 of file itkTreeContainer.h. |
|
Definition at line 114 of file itkTreeContainer.h. |