18 #ifndef itkVectorContainerToListSampleAdaptor_h
19 #define itkVectorContainerToListSampleAdaptor_h
45 template<
typename TVectorContainer >
47 public ListSample< typename TVectorContainer::Element >
63 itkStaticConstMacro( MeasurementVectorSize,
unsigned int,
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() );
254 void PrintSelf( std::ostream & os,
Indent indent )
const ITK_OVERRIDE;
269 #ifndef ITK_MANUAL_INSTANTIATION
270 #include "itkVectorContainerToListSampleAdaptor.hxx"
TVectorContainer VectorContainerType
TVectorContainer::Iterator VectorContainerIterator
AbsoluteFrequencyType GetFrequency() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
ConstIterator(const VectorContainerToListSampleAdaptor *adaptor)
InstanceIdentifier m_InstanceIdentifier
MeasurementVectorType ValueType
This class provides ListSample interface to ITK VectorContainer.
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
Represent the size (bounds) of a n-dimensional image.
InstanceIdentifier GetInstanceIdentifier() const
VectorContainerConstPointer m_VectorContainer
ListSample< typename TVectorContainer::Element > Superclass
TVectorContainer::Pointer VectorContainerPointer
SmartPointer< Self > Pointer
ConstIterator & operator++()
VectorContainerToListSampleAdaptor Self
ConstIterator(const ConstIterator &iter)
ConstIterator & operator=(const ConstIterator &iter)
VectorContainerType::Element m_TempPoint
const unsigned int Dimension
const MeasurementVectorType & GetMeasurementVector() const
Iterator(VectorContainerIterator iter, InstanceIdentifier iid)
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
Iterator & operator=(const Iterator &iter)
bool operator==(const ConstIterator &it)
ConstIterator Begin() const
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
virtual ~VectorContainerToListSampleAdaptor() override
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
Base class for all data objects in ITK.