18 #ifndef itkVectorContainerToListSampleAdaptor_h
19 #define itkVectorContainerToListSampleAdaptor_h
45 template<
typename TVectorContainer >
47 public ListSample< typename TVectorContainer::Element >
113 *
this = adaptor->
Begin();
118 this->m_Iter = iter.
m_Iter;
124 this->m_Iter = iter.
m_Iter;
141 return this->m_InstanceIdentifier;
147 ++m_InstanceIdentifier;
153 return ( this->m_Iter != it.
m_Iter );
158 return ( this->m_Iter == it.
m_Iter );
167 this->m_InstanceIdentifier = iid;
192 this->ConstIterator::operator=(iter);
216 Iterator iter( nonConstVectorDataContainer->Begin(), 0 );
228 Iterator iter( nonConstVectorDataContainer->End(),
229 this->m_VectorContainer->Size() );
246 this->m_VectorContainer->Size() );
255 void PrintSelf( std::ostream & os,
Indent indent )
const override;
268 #ifndef ITK_MANUAL_INSTANTIATION
269 #include "itkVectorContainerToListSampleAdaptor.hxx"
AbsoluteFrequencyType GetFrequency() const
ConstIterator(const VectorContainerToListSampleAdaptor *adaptor)
InstanceIdentifier m_InstanceIdentifier
This class provides ListSample interface to ITK VectorContainer.
typename Superclass::MeasurementType MeasurementType
typename Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
InstanceIdentifier GetInstanceIdentifier() const
VectorContainerConstPointer m_VectorContainer
constexpr unsigned int Dimension
ConstIterator & operator++()
TVectorContainer VectorContainerType
typename TVectorContainer::ConstPointer VectorContainerConstPointer
typename TVectorContainer::ConstIterator VectorContainerConstIterator
ConstIterator(const ConstIterator &iter)
typename Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
typename Superclass::MeasurementVectorType MeasurementVectorType
Represent a n-dimensional size (bounds) of a n-dimensional image.
ConstIterator & operator=(const ConstIterator &iter)
typename Superclass::InstanceIdentifier InstanceIdentifier
VectorContainerType::Element m_TempPoint
typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
const MeasurementVectorType & GetMeasurementVector() const
Iterator(VectorContainerIterator iter, InstanceIdentifier iid)
Iterator & operator=(const Iterator &iter)
bool operator==(const ConstIterator &it)
ConstIterator Begin() const
MeasurementVectorType ValueType
Iterator(const Iterator &iter)
This class is the native implementation of the a Sample with an STL container.
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
typename TVectorContainer::Pointer VectorContainerPointer
typename TVectorContainer::Iterator VectorContainerIterator
bool operator!=(const ConstIterator &it)
ConstIterator(VectorContainerConstIterator iter, InstanceIdentifier iid)
Base class for most ITK classes.
VectorContainerConstIterator m_Iter
ConstIterator End() const
Base class for all data objects in ITK.