ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkAutoPointerDataObjectDecorator.h>
Public Types | |
typedef std::auto_ptr< T > | ComponentPointer |
typedef T | ComponentType |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef AutoPointerDataObjectDecorator | Self |
typedef DataObject | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual void | Set (T *val) |
Static Public Member Functions | |
static Pointer | New () |
Private Member Functions | |
AutoPointerDataObjectDecorator (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
ComponentPointer | m_Component |
virtual T * | Get () |
virtual const T * | Get () const |
AutoPointerDataObjectDecorator () | |
~AutoPointerDataObjectDecorator () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
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).
Definition at line 61 of file itkAutoPointerDataObjectDecorator.h.
typedef std::auto_ptr< T > itk::AutoPointerDataObjectDecorator< T >::ComponentPointer |
Definition at line 72 of file itkAutoPointerDataObjectDecorator.h.
typedef T itk::AutoPointerDataObjectDecorator< T >::ComponentType |
Typedef for the component type (object being decorated)
Definition at line 71 of file itkAutoPointerDataObjectDecorator.h.
typedef SmartPointer< const Self > itk::AutoPointerDataObjectDecorator< T >::ConstPointer |
Reimplemented from itk::DataObject.
Definition at line 68 of file itkAutoPointerDataObjectDecorator.h.
typedef SmartPointer< Self > itk::AutoPointerDataObjectDecorator< T >::Pointer |
Reimplemented from itk::DataObject.
Definition at line 67 of file itkAutoPointerDataObjectDecorator.h.
typedef AutoPointerDataObjectDecorator itk::AutoPointerDataObjectDecorator< T >::Self |
Standard typedefs.
Reimplemented from itk::DataObject.
Definition at line 65 of file itkAutoPointerDataObjectDecorator.h.
typedef DataObject itk::AutoPointerDataObjectDecorator< T >::Superclass |
Reimplemented from itk::DataObject.
Definition at line 66 of file itkAutoPointerDataObjectDecorator.h.
itk::AutoPointerDataObjectDecorator< T >::AutoPointerDataObjectDecorator | ( | ) | [protected] |
Get the contained object
itk::AutoPointerDataObjectDecorator< T >::~AutoPointerDataObjectDecorator | ( | ) | [protected] |
Get the contained object
itk::AutoPointerDataObjectDecorator< T >::AutoPointerDataObjectDecorator | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::AutoPointerDataObjectDecorator< T >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
virtual T* itk::AutoPointerDataObjectDecorator< T >::Get | ( | ) | [inline, virtual] |
Get the contained object
Definition at line 84 of file itkAutoPointerDataObjectDecorator.h.
virtual const T* itk::AutoPointerDataObjectDecorator< T >::Get | ( | ) | const [inline, virtual] |
Get the contained object
Definition at line 85 of file itkAutoPointerDataObjectDecorator.h.
virtual const char* itk::AutoPointerDataObjectDecorator< T >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::DataObject.
static Pointer itk::AutoPointerDataObjectDecorator< T >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::AutoPointerDataObjectDecorator< T >::operator= | ( | const Self & | ) | [private] |
virtual void itk::AutoPointerDataObjectDecorator< T >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Get the contained object
Reimplemented from itk::DataObject.
virtual void itk::AutoPointerDataObjectDecorator< T >::Set | ( | T * | val | ) | [virtual] |
Set the contained object
ComponentPointer itk::AutoPointerDataObjectDecorator< T >::m_Component [private] |
Definition at line 97 of file itkAutoPointerDataObjectDecorator.h.