ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private 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 Types inherited from itk::DataObject
typedef SmartPointer< const SelfConstPointer
 
typedef std::string DataObjectIdentifierType
 
typedef std::vector< Pointer >
::size_type 
DataObjectPointerArraySizeType
 
typedef SmartPointer< SelfPointer
 
typedef DataObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual void Set (T *val)
 
virtual T * Get ()
 
virtual const T * Get () const
 
- Public Member Functions inherited from itk::DataObject
virtual void CopyInformation (const DataObject *)
 
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointerForwardReference
< ProcessObject
GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierTypeGetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void Graft (const DataObject *)
 
virtual void Initialize ()
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
virtual void SetRequestedRegion (const DataObject *)
 
virtual void SetRequestedRegionToLargestPossibleRegion ()
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
virtual void UpdateOutputData ()
 
virtual void UpdateOutputInformation ()
 
virtual bool VerifyRequestedRegion ()
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeTypeGetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStampGetRealTimeStamp () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const ITK_OVERRIDE
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) ITK_OVERRIDE
 
virtual void UnRegister () const ITK_OVERRIDE
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::DataObject
static bool GetGlobalReleaseDataFlag ()
 
static void GlobalReleaseDataFlagOff ()
 
static void GlobalReleaseDataFlagOn ()
 
static void SetGlobalReleaseDataFlag (bool val)
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 AutoPointerDataObjectDecorator ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
 
 ~AutoPointerDataObjectDecorator ()
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
virtual void PropagateResetPipeline ()
 
 ~DataObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

 AutoPointerDataObjectDecorator (const Self &)
 
void operator= (const Self &)
 

Private Attributes

ComponentPointer m_Component
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

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
template<typename T >
itk::AutoPointerDataObjectDecorator< T >::AutoPointerDataObjectDecorator ( const Self )
private

Member Function Documentation

template<typename T >
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.

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

Get the contained object

Definition at line 84 of file itkAutoPointerDataObjectDecorator.h.

References itk::AutoPointerDataObjectDecorator< T >::m_Component.

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

Get the contained object

Definition at line 85 of file itkAutoPointerDataObjectDecorator.h.

References itk::AutoPointerDataObjectDecorator< T >::m_Component.

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

Run-time type information (and related methods).

Reimplemented from itk::DataObject.

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

Method for creation through the object factory.

template<typename T >
void itk::AutoPointerDataObjectDecorator< T >::operator= ( const Self )
private
template<typename T >
virtual void itk::AutoPointerDataObjectDecorator< T >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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<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

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