18#ifndef itkVectorContainerToListSampleAdaptor_h
19#define itkVectorContainerToListSampleAdaptor_h
45template <
typename TVectorContainer>
75 using typename Superclass::MeasurementType;
76 using typename Superclass::MeasurementVectorType;
77 using typename Superclass::AbsoluteFrequencyType;
78 using typename Superclass::TotalAbsoluteFrequencyType;
79 using typename Superclass::MeasurementVectorSizeType;
80 using typename Superclass::InstanceIdentifier;
117 this->m_Iter = iter.
m_Iter;
126 this->m_Iter = iter.
m_Iter;
146 return this->m_InstanceIdentifier;
153 ++m_InstanceIdentifier;
160 return (this->m_Iter == it.
m_Iter);
170 this->m_InstanceIdentifier = iid;
204 this->ConstIterator::operator=(iter);
220 Iterator iter(nonConstVectorDataContainer->Begin(), 0);
233 Iterator iter(nonConstVectorDataContainer->End(), this->m_VectorContainer->Size());
251 ConstIterator iter(this->m_VectorContainer->End(), this->m_VectorContainer->Size());
269#ifndef ITK_MANUAL_INSTANTIATION
270# include "itkVectorContainerToListSampleAdaptor.hxx"
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Base class for most ITK classes.
This class is the native implementation of the a Sample with an STL container.
TVectorContainer::Element MeasurementVectorType
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
InstanceIdentifier GetInstanceIdentifier() const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstIterator)
VectorContainerConstIterator m_Iter
ConstIterator(const ConstIterator &iter)
ConstIterator & operator++()
ConstIterator(VectorContainerConstIterator iter, InstanceIdentifier iid)
ConstIterator & operator=(const ConstIterator &iter)
ConstIterator(const VectorContainerToListSampleAdaptor *adaptor)
InstanceIdentifier m_InstanceIdentifier
AbsoluteFrequencyType GetFrequency() const
bool operator==(const ConstIterator &it) const
const MeasurementVectorType & GetMeasurementVector() const
Iterator(const Self *adaptor)=delete
Iterator(const Iterator &iter)
Iterator(VectorContainerConstIterator iter, InstanceIdentifier iid)=delete
Iterator & operator=(const Iterator &iter)
ConstIterator & operator=(const ConstIterator &it)=delete
Iterator(const ConstIterator &it)=delete
Iterator(VectorContainerIterator iter, InstanceIdentifier iid)
This class provides ListSample interface to ITK VectorContainer.
void PrintSelf(std::ostream &os, Indent indent) const override
typename TVectorContainer::ConstPointer VectorContainerConstPointer
TotalAbsoluteFrequencyType GetTotalFrequency() const override
MeasurementVectorType ValueType
typename TVectorContainer::Iterator VectorContainerIterator
ConstIterator End() const
typename TVectorContainer::Pointer VectorContainerPointer
~VectorContainerToListSampleAdaptor() override=default
ConstIterator Begin() const
InstanceIdentifier Size() const override
VectorContainerToListSampleAdaptor()
AbsoluteFrequencyType GetFrequency(InstanceIdentifier) const override
TVectorContainer VectorContainerType
typename TVectorContainer::ConstIterator VectorContainerConstIterator
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier) const override
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
constexpr unsigned int Dimension
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....