18 #ifndef itkVectorContainerToListSampleAdaptor_h
19 #define itkVectorContainerToListSampleAdaptor_h
45 template<
typename TVectorContainer >
47 public ListSample< typename TVectorContainer::Element >
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;
169 ConstIterator() ITK_DELETE_FUNCTION;
201 Iterator( const ConstIterator & it) ITK_DELETE_FUNCTION;
202 ConstIterator & operator=( const ConstIterator & it ) ITK_DELETE_FUNCTION;
205 :ConstIterator( iter, iid )
216 Iterator iter( nonConstVectorDataContainer->Begin(), 0 );
228 Iterator iter( nonConstVectorDataContainer->End(),
259 void operator=( const
Self & ) ITK_DELETE_FUNCTION;
271 #ifndef ITK_MANUAL_INSTANTIATION
272 #include "itkVectorContainerToListSampleAdaptor.hxx"
TVectorContainer VectorContainerType
TVectorContainer::Iterator VectorContainerIterator
AbsoluteFrequencyType GetFrequency() const
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
Superclass::MeasurementVectorType MeasurementVectorType
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
InstanceIdentifier Size() const override
InstanceIdentifier GetInstanceIdentifier() const
VectorContainerConstPointer m_VectorContainer
ListSample< typename TVectorContainer::Element > Superclass
TVectorContainer::Pointer VectorContainerPointer
TotalAbsoluteFrequencyType GetTotalFrequency() const override
SmartPointer< Self > Pointer
static const unsigned int MeasurementVectorSize
ConstIterator & operator++()
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
VectorContainerToListSampleAdaptor Self
Superclass::InstanceIdentifier InstanceIdentifier
ConstIterator(const ConstIterator &iter)
ConstIterator & operator=(const ConstIterator &iter)
VectorContainerType::Element m_TempPoint
const MeasurementVectorType & GetMeasurementVector() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
Iterator & operator=(const Iterator &iter)
bool operator==(const ConstIterator &it)
ConstIterator Begin() const
virtual ~VectorContainerToListSampleAdaptor()
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
Iterator(const Iterator &iter)
AbsoluteFrequencyType GetFrequency(InstanceIdentifier) const override
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
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier) const override
bool operator!=(const ConstIterator &it)
TVectorContainer::ConstPointer VectorContainerConstPointer
ConstIterator(VectorContainerConstIterator iter, InstanceIdentifier iid)
VectorContainerToListSampleAdaptor()
Superclass::MeasurementVectorType MeasurementVectorType
VectorContainerConstIterator m_Iter
Superclass::InstanceIdentifier InstanceIdentifier
ConstIterator End() const
Base class for all data objects in ITK.