Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::SimpleDataObjectDecorator< T > Class Template Reference
[ITK System Objects]

Decorates any "simple" data type (data types without smart pointers) with a DataObject API. More...

#include <itkSimpleDataObjectDecorator.h>

Inheritance diagram for itk::SimpleDataObjectDecorator< T >:

Inheritance graph
[legend]
Collaboration diagram for itk::SimpleDataObjectDecorator< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef SimpleDataObjectDecorator Self
typedef DataObject Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef T ComponentType

Public Member Functions

virtual const char * GetNameOfClass () const
virtual void Set (const T &val)
virtual T & Get ()
virtual T Get () const

Static Public Member Functions

Pointer New ()

Protected Member Functions

 SimpleDataObjectDecorator ()
 ~SimpleDataObjectDecorator ()
virtual void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

template<class T>
class itk::SimpleDataObjectDecorator< T >

Decorates any "simple" data type (data types without smart pointers) with a DataObject API.

SimpleDataObjectDecorator decorates an object with a DataObject API. This allows simple objects to be encapsulated into objects that can be passed as down the pipeline. This decorator is intended to be used on native types (float, int, etc.) or any objects not derived from itkObject. To decorate a subclass of itkObject, see DataObjectDecorator.

The decorator provides two methods Set() and Get() to access the decorated object (referred internally as the component).

Note that when an instance of SimpleDataObjectDecorator is created, the component is initialized with its default constructor.

SimpleDataObjectDecorator can decorate any simple data type. Two other decorators are provided for decorating pointers. DataObjectDecorator will decorate pointers to subclasses of itkObject (internally storing the pointer in a SmartPointer). AutoPointerDataObjectDecorator will decorate any other pointer and manage the memory deallocationg of the component.

See also:
DataObjectDecorator

AutoPointerDataObjectDecorator

Definition at line 59 of file itkSimpleDataObjectDecorator.h.


Member Typedef Documentation

template<class T>
typedef T itk::SimpleDataObjectDecorator< T >::ComponentType
 

Typedef for the component type (object being decorated)

Definition at line 69 of file itkSimpleDataObjectDecorator.h.

template<class T>
typedef SmartPointer<const Self> itk::SimpleDataObjectDecorator< T >::ConstPointer
 

Reimplemented from itk::DataObject.

Definition at line 66 of file itkSimpleDataObjectDecorator.h.

template<class T>
typedef SmartPointer<Self> itk::SimpleDataObjectDecorator< T >::Pointer
 

Reimplemented from itk::DataObject.

Definition at line 65 of file itkSimpleDataObjectDecorator.h.

template<class T>
typedef SimpleDataObjectDecorator itk::SimpleDataObjectDecorator< T >::Self
 

Standard typedefs.

Reimplemented from itk::DataObject.

Definition at line 63 of file itkSimpleDataObjectDecorator.h.

template<class T>
typedef DataObject itk::SimpleDataObjectDecorator< T >::Superclass
 

Reimplemented from itk::DataObject.

Definition at line 64 of file itkSimpleDataObjectDecorator.h.


Constructor & Destructor Documentation

template<class T>
itk::SimpleDataObjectDecorator< T >::SimpleDataObjectDecorator  )  [protected]
 

template<class T>
itk::SimpleDataObjectDecorator< T >::~SimpleDataObjectDecorator  )  [protected]
 


Member Function Documentation

template<class T>
virtual T itk::SimpleDataObjectDecorator< T >::Get void   )  const [inline, virtual]
 

Get the contained object

Definition at line 82 of file itkSimpleDataObjectDecorator.h.

template<class T>
virtual T& itk::SimpleDataObjectDecorator< T >::Get void   )  [inline, virtual]
 

Get the contained object

Definition at line 81 of file itkSimpleDataObjectDecorator.h.

template<class T>
virtual const char* itk::SimpleDataObjectDecorator< T >::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::DataObject.

template<class T>
Pointer itk::SimpleDataObjectDecorator< T >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class T>
virtual void itk::SimpleDataObjectDecorator< T >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

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::DataObject.

template<class T>
virtual void itk::SimpleDataObjectDecorator< T >::Set const T &  val  )  [virtual]
 

Set the contained object


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:21:16 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000