18 #ifndef itkVectorContainerToListSampleAdaptor_h
19 #define itkVectorContainerToListSampleAdaptor_h
45 template<
typename TVectorContainer >
47 public ListSample< typename TVectorContainer::Element >
63 itkStaticConstMacro( MeasurementVectorSize,
unsigned int,
64 TVectorContainer::Element::Dimension );
112 *
this = adaptor->
Begin();
117 this->m_Iter = iter.
m_Iter;
123 this->m_Iter = iter.
m_Iter;
140 return this->m_InstanceIdentifier;
146 ++m_InstanceIdentifier;
152 return ( this->m_Iter != it.
m_Iter );
157 return ( this->m_Iter == it.
m_Iter );
166 this->m_InstanceIdentifier = iid;
170 ConstIterator() ITK_DELETED_FUNCTION;
191 this->ConstIterator::operator=(iter);
197 :ConstIterator( iter, iid )
206 Iterator( const ConstIterator & it) ITK_DELETED_FUNCTION;
207 ConstIterator & operator=( const ConstIterator & it ) ITK_DELETED_FUNCTION;
215 Iterator iter( nonConstVectorDataContainer->Begin(), 0 );
227 Iterator iter( nonConstVectorDataContainer->End(),
228 this->m_VectorContainer->Size() );
236 ConstIterator iter( this->m_VectorContainer->Begin(), 0 );
244 ConstIterator iter( this->m_VectorContainer->End(),
245 this->m_VectorContainer->Size() );
269 #ifndef ITK_MANUAL_INSTANTIATION
270 #include "itkVectorContainerToListSampleAdaptor.hxx"
TVectorContainer VectorContainerType
TVectorContainer::Iterator VectorContainerIterator
AbsoluteFrequencyType GetFrequency() const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
ConstIterator(const VectorContainerToListSampleAdaptor *adaptor)
InstanceIdentifier m_InstanceIdentifier
MeasurementVectorType ValueType
Superclass::MeasurementType MeasurementType
This class provides ListSample interface to ITK VectorContainer.
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
Represent the size (bounds) of a n-dimensional image.
Superclass::MeasurementVectorType MeasurementVectorType
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
InstanceIdentifier GetInstanceIdentifier() const
VectorContainerConstPointer m_VectorContainer
ListSample< typename TVectorContainer::Element > Superclass
TVectorContainer::Pointer VectorContainerPointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
ConstIterator & operator++()
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
VectorContainerToListSampleAdaptor Self
Superclass::InstanceIdentifier InstanceIdentifier
ConstIterator(const ConstIterator &iter)
ConstIterator & operator=(const ConstIterator &iter)
SmartPointer< const Self > ConstPointer
VectorContainerType::Element m_TempPoint
const MeasurementVectorType & GetMeasurementVector() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
Iterator(VectorContainerIterator iter, InstanceIdentifier iid)
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
Iterator & operator=(const Iterator &iter)
bool operator==(const ConstIterator &it)
ConstIterator Begin() const
virtual ~VectorContainerToListSampleAdaptor()
SmartPointer< const Self > ConstPointer
Iterator(const Iterator &iter)
This class is the native implementation of the a Sample with an STL container.
Superclass::MeasurementType MeasurementType
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
TVectorContainer::ConstIterator VectorContainerConstIterator
bool operator!=(const ConstIterator &it)
TVectorContainer::ConstPointer VectorContainerConstPointer
ConstIterator(VectorContainerConstIterator iter, InstanceIdentifier iid)
Superclass::MeasurementVectorType MeasurementVectorType
VectorContainerConstIterator m_Iter
Superclass::InstanceIdentifier InstanceIdentifier
ConstIterator End() const