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

itk::STLContainerAdaptor< TContainer > Class Template Reference

#include <itkSTLContainerAdaptor.h>

List of all members.

Public Types

typedef TContainer AdapteeType
typedef AdapteeType::Element ElementType
typedef AdapteeType::STLContainerType TargetType

Public Member Functions

 STLContainerAdaptor (AdapteeType &adaptee)
 STLContainerAdaptor (AdapteeType *adaptee)
 ~STLContainerAdaptor ()
TargetTypeGetSTLContainerRef ()


Detailed Description

template<typename TContainer>
class itk::STLContainerAdaptor< TContainer >

An adapter object that casts a itk::XxxContainer into std::xxx and enables access to the underlying data structure. When the STLContainerAdaptor is destroyed, it automatically calls XxxContainer::Modified(). Here's a usage example of STLContainerAdaptor itk::STLContainerAdaptor<itk::VectorContainer<unsigned long, ElementType>> vecAdaptor(aContainer); std::vector<ElementType> & vec = vecAdaptor.GetSTLContainerRef(); // do things with vec ... // upon return from function, vecAdaptor is destroyed and aContainer is Modified()

Definition at line 36 of file itkSTLContainerAdaptor.h.


Member Typedef Documentation

template<typename TContainer>
typedef TContainer itk::STLContainerAdaptor< TContainer >::AdapteeType
 

Definition at line 40 of file itkSTLContainerAdaptor.h.

Referenced by itk::STLContainerAdaptor< TContainer >::STLContainerAdaptor().

template<typename TContainer>
typedef AdapteeType::Element itk::STLContainerAdaptor< TContainer >::ElementType
 

Definition at line 42 of file itkSTLContainerAdaptor.h.

template<typename TContainer>
typedef AdapteeType::STLContainerType itk::STLContainerAdaptor< TContainer >::TargetType
 

Definition at line 43 of file itkSTLContainerAdaptor.h.

Referenced by itk::STLContainerAdaptor< TContainer >::GetSTLContainerRef().


Constructor & Destructor Documentation

template<typename TContainer>
itk::STLContainerAdaptor< TContainer >::STLContainerAdaptor AdapteeType adaptee  )  [inline]
 

Definition at line 57 of file itkSTLContainerAdaptor.h.

References itk::STLContainerAdaptor< TContainer >::AdapteeType.

template<typename TContainer>
itk::STLContainerAdaptor< TContainer >::STLContainerAdaptor AdapteeType adaptee  )  [inline]
 

Definition at line 61 of file itkSTLContainerAdaptor.h.

References itk::STLContainerAdaptor< TContainer >::AdapteeType.

template<typename TContainer>
itk::STLContainerAdaptor< TContainer >::~STLContainerAdaptor  )  [inline]
 

Definition at line 65 of file itkSTLContainerAdaptor.h.


Member Function Documentation

template<typename TContainer>
TargetType& itk::STLContainerAdaptor< TContainer >::GetSTLContainerRef  )  [inline]
 

Definition at line 70 of file itkSTLContainerAdaptor.h.

References itk::STLContainerAdaptor< TContainer >::TargetType.


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