![]() |
ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkSTLConstContainerAdaptor.h>
Public Types | |
| typedef const TContainer | AdapteeType |
| typedef const AdapteeType::Element | ElementType |
| typedef const AdapteeType::STLContainerType | TargetType |
Public Member Functions | |
| TargetType & | GetSTLConstContainerRef () |
| STLConstContainerAdaptor (AdapteeType &adaptee) | |
| STLConstContainerAdaptor (AdapteeType *adaptee) | |
Private Member Functions | |
| const STLConstContainerAdaptor & | operator= (const STLConstContainerAdaptor &r) |
| STLConstContainerAdaptor (const STLConstContainerAdaptor &r) | |
Private Attributes | |
| AdapteeType & | m_AdapteeRef |
An adapter object that casts a [const itk::XxxContainer] into [const std::xxx] and enables access to the underlying data structure.
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<SizeValueType, ElementType>> vecAdaptor(aContainer); const std::vector<ElementType> & vec = vecAdaptor.GetSTLContainerRef(); // do things with vec ...
Definition at line 46 of file itkSTLConstContainerAdaptor.h.
| typedef const TContainer itk::STLConstContainerAdaptor< TContainer >::AdapteeType |
Definition at line 50 of file itkSTLConstContainerAdaptor.h.
| typedef const AdapteeType::Element itk::STLConstContainerAdaptor< TContainer >::ElementType |
Definition at line 52 of file itkSTLConstContainerAdaptor.h.
| typedef const AdapteeType::STLContainerType itk::STLConstContainerAdaptor< TContainer >::TargetType |
Definition at line 53 of file itkSTLConstContainerAdaptor.h.
| itk::STLConstContainerAdaptor< TContainer >::STLConstContainerAdaptor | ( | const STLConstContainerAdaptor< TContainer > & | r | ) | [private] |
hide the copy constructor to allow only direct construction of the adapter
| itk::STLConstContainerAdaptor< TContainer >::STLConstContainerAdaptor | ( | AdapteeType & | adaptee | ) | [inline] |
Definition at line 67 of file itkSTLConstContainerAdaptor.h.
| itk::STLConstContainerAdaptor< TContainer >::STLConstContainerAdaptor | ( | AdapteeType * | adaptee | ) | [inline] |
Definition at line 69 of file itkSTLConstContainerAdaptor.h.
| TargetType& itk::STLConstContainerAdaptor< TContainer >::GetSTLConstContainerRef | ( | ) | [inline] |
Definition at line 71 of file itkSTLConstContainerAdaptor.h.
References itk::STLConstContainerAdaptor< TContainer >::m_AdapteeRef.
| const STLConstContainerAdaptor& itk::STLConstContainerAdaptor< TContainer >::operator= | ( | const STLConstContainerAdaptor< TContainer > & | r | ) | [private] |
AdapteeType& itk::STLConstContainerAdaptor< TContainer >::m_AdapteeRef [private] |
Definition at line 56 of file itkSTLConstContainerAdaptor.h.
Referenced by itk::STLConstContainerAdaptor< TContainer >::GetSTLConstContainerRef().
1.7.6.1