ITK  4.12.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::AutoPointerDataObjectDecorator< T > Class Template Reference

#include <itkAutoPointerDataObjectDecorator.h>

+ Inheritance diagram for itk::AutoPointerDataObjectDecorator< T >:
+ Collaboration diagram for itk::AutoPointerDataObjectDecorator< T >:

Detailed Description

template<typename 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 61 of file itkAutoPointerDataObjectDecorator.h.

Public Types

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

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
virtual void Set (T *val)
 
virtual T * Get ()
 
virtual const T * Get () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

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

Private Attributes

ComponentPointer m_Component
 

Member Typedef Documentation

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

Definition at line 72 of file itkAutoPointerDataObjectDecorator.h.

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

Typedef for the component type (object being decorated)

Definition at line 71 of file itkAutoPointerDataObjectDecorator.h.

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

Definition at line 68 of file itkAutoPointerDataObjectDecorator.h.

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

Definition at line 67 of file itkAutoPointerDataObjectDecorator.h.

Standard typedefs.

Definition at line 65 of file itkAutoPointerDataObjectDecorator.h.

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

Definition at line 66 of file itkAutoPointerDataObjectDecorator.h.

Constructor & Destructor Documentation

template<typename T >
itk::AutoPointerDataObjectDecorator< T >::AutoPointerDataObjectDecorator ( )
protected
template<typename T >
itk::AutoPointerDataObjectDecorator< T >::~AutoPointerDataObjectDecorator ( )
protected

Member Function Documentation

template<typename T >
virtual::itk::LightObject::Pointer itk::AutoPointerDataObjectDecorator< T >::CreateAnother ( ) const
template<typename T >
virtual T* itk::AutoPointerDataObjectDecorator< T >::Get ( )
inlinevirtual

Get the contained object

Definition at line 84 of file itkAutoPointerDataObjectDecorator.h.

template<typename T >
virtual const T* itk::AutoPointerDataObjectDecorator< T >::Get ( ) const
inlinevirtual

Get the contained object

Definition at line 85 of file itkAutoPointerDataObjectDecorator.h.

template<typename T >
virtual const char* itk::AutoPointerDataObjectDecorator< T >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

template<typename T >
static Pointer itk::AutoPointerDataObjectDecorator< T >::New ( )
static

Method for creation through the object factory.

template<typename T >
virtual void itk::AutoPointerDataObjectDecorator< T >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual
template<typename T >
virtual void itk::AutoPointerDataObjectDecorator< T >::Set ( T *  val)
virtual

Set the contained object

Member Data Documentation

template<typename T >
ComponentPointer itk::AutoPointerDataObjectDecorator< T >::m_Component
private

Definition at line 96 of file itkAutoPointerDataObjectDecorator.h.


The documentation for this class was generated from the following file: