18 #ifndef itkVectorContainerToListSampleAdaptor_h 19 #define itkVectorContainerToListSampleAdaptor_h 45 template<
typename TVectorContainer >
47 public ListSample< typename TVectorContainer::Element >
64 TVectorContainer::Element::Dimension );
90 InstanceIdentifier
Size() const ITK_OVERRIDE;
97 AbsoluteFrequencyType
GetFrequency( InstanceIdentifier ) const ITK_OVERRIDE;
112 *
this = adaptor->
Begin();
117 this->m_Iter = iter.
m_Iter;
123 this->m_Iter = iter.
m_Iter;
135 return (
const MeasurementVectorType & )m_Iter.Value();
140 return this->m_InstanceIdentifier;
146 ++m_InstanceIdentifier;
152 return ( this->m_Iter != it.
m_Iter );
157 return ( this->m_Iter == it.
m_Iter );
163 InstanceIdentifier iid )
166 this->m_InstanceIdentifier = iid;
169 ConstIterator() ITK_DELETE_FUNCTION;
199 Iterator(
const Self *adaptor ) ITK_DELETE_FUNCTION;
200 Iterator( VectorContainerConstIterator iter, InstanceIdentifier iid ) ITK_DELETE_FUNCTION;
204 Iterator( VectorContainerIterator iter, InstanceIdentifier iid )
214 VectorContainerPointer nonConstVectorDataContainer =
216 Iterator iter( nonConstVectorDataContainer->Begin(), 0 );
225 VectorContainerPointer nonConstVectorDataContainer =
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 GetInstanceIdentifier() const
VectorContainerConstPointer m_VectorContainer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
ListSample< typename TVectorContainer::Element > Superclass
TVectorContainer::Pointer VectorContainerPointer
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< Self > Pointer
InstanceIdentifier Size() const override
static const unsigned int MeasurementVectorSize
ConstIterator & operator++()
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
VectorContainerToListSampleAdaptor Self
Superclass::InstanceIdentifier InstanceIdentifier
friend class VectorContainerToListSampleAdaptor
ConstIterator(const ConstIterator &iter)
TotalAbsoluteFrequencyType GetTotalFrequency() const override
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier) const override
ConstIterator & operator=(const ConstIterator &iter)
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() ITK_DELETE_FUNCTION
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
AbsoluteFrequencyType GetFrequency(InstanceIdentifier) const 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