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

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

Decorates any pointer to a simple object with a DataObject API using AutoPointer semantics. More...

#include <itkAutoPointerDataObjectDecorator.h>

Inheritance diagram for itk::AutoPointerDataObjectDecorator< T >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef AutoPointerDataObjectDecorator Self
typedef DataObject Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef T ComponentType
typedef std::auto_ptr< T > ComponentPointer

Public Member Functions

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

Static Public Member Functions

Pointer New ()

Protected Member Functions

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

Detailed Description

template<class T>
class itk::AutoPointerDataObjectDecorator< T >

Decorates any pointer to a simple object with a DataObject API using AutoPointer semantics.

AutoPointerDataObjectDecorator decorates a pointer to an object with a DataObject API. This allows a pointer to an object to be encapsulated in a DataObject and passed through the pipeline. This object differs from SimpleDataObjectDecorator in that the decorator takes control of deleting the pointer upon destruction.

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 (i.e. a null pointer).

See also:
SimpleDataObjectDecorator

DataObjectDecorator

Definition at line 52 of file itkAutoPointerDataObjectDecorator.h.


Member Typedef Documentation

template<class T>
typedef std::auto_ptr<T> itk::AutoPointerDataObjectDecorator< T >::ComponentPointer
 

Definition at line 63 of file itkAutoPointerDataObjectDecorator.h.

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

Typedef for the component type (object being decorated)

Definition at line 62 of file itkAutoPointerDataObjectDecorator.h.

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

Reimplemented from itk::DataObject.

Definition at line 59 of file itkAutoPointerDataObjectDecorator.h.

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

Reimplemented from itk::DataObject.

Definition at line 58 of file itkAutoPointerDataObjectDecorator.h.

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

Standard typedefs.

Reimplemented from itk::DataObject.

Definition at line 56 of file itkAutoPointerDataObjectDecorator.h.

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

Reimplemented from itk::DataObject.

Definition at line 57 of file itkAutoPointerDataObjectDecorator.h.


Constructor & Destructor Documentation

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

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


Member Function Documentation

template<class T>
virtual const T* itk::AutoPointerDataObjectDecorator< T >::Get  )  const [inline, virtual]
 

Get the contained object

Definition at line 76 of file itkAutoPointerDataObjectDecorator.h.

template<class T>
virtual T* itk::AutoPointerDataObjectDecorator< T >::Get  )  [inline, virtual]
 

Get the contained object

Definition at line 75 of file itkAutoPointerDataObjectDecorator.h.

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

Run-time type information (and related methods).

Reimplemented from itk::DataObject.

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

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class T>
virtual void itk::AutoPointerDataObjectDecorator< 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::AutoPointerDataObjectDecorator< T >::Set T *  val  )  [virtual]
 

Set the contained object


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