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

itk::STLConstContainerAdaptor< TContainer > Class Template Reference

#include <itkSTLConstContainerAdaptor.h>

List of all members.

Public Types

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

Public Member Functions

 STLConstContainerAdaptor (AdapteeType &adaptee)
 STLConstContainerAdaptor (AdapteeType *adaptee)
TargetTypeGetSTLConstContainerRef ()


Detailed Description

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

An adapter object that casts a [const itk::XxxContainer] into [const std::xxx] and enables access to the underlying data structure. The class is provided for interface consistency with STLContainerAdaptor plus the [const] modifier. Since everything is const, there is no need to call AdapteeType::Modified() in the destructor. Here's a usage example of STLContainerAdaptor itk::STLConstContainerAdaptor<itk::VectorContainer<unsigned long, ElementType>> vecAdaptor(aContainer); const std::vector<ElementType> & vec = vecAdaptor.GetSTLContainerRef(); // do things with vec ...

Definition at line 38 of file itkSTLConstContainerAdaptor.h.


Member Typedef Documentation

template<typename TContainer>
typedef const TContainer itk::STLConstContainerAdaptor< TContainer >::AdapteeType
 

Definition at line 42 of file itkSTLConstContainerAdaptor.h.

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

template<typename TContainer>
typedef const AdapteeType::Element itk::STLConstContainerAdaptor< TContainer >::ElementType
 

Definition at line 44 of file itkSTLConstContainerAdaptor.h.

template<typename TContainer>
typedef const AdapteeType::STLContainerType itk::STLConstContainerAdaptor< TContainer >::TargetType
 

Definition at line 45 of file itkSTLConstContainerAdaptor.h.

Referenced by itk::STLConstContainerAdaptor< TContainer >::GetSTLConstContainerRef().


Constructor & Destructor Documentation

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

Definition at line 61 of file itkSTLConstContainerAdaptor.h.

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

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

Definition at line 65 of file itkSTLConstContainerAdaptor.h.

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


Member Function Documentation

template<typename TContainer>
TargetType& itk::STLConstContainerAdaptor< TContainer >::GetSTLConstContainerRef  )  [inline]
 

Definition at line 69 of file itkSTLConstContainerAdaptor.h.

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


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 03:13:36 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000