18#ifndef itkListSample_h
19#define itkListSample_h
50template <
typename TMeasurementVector>
69 using typename Superclass::MeasurementVectorType;
70 using typename Superclass::MeasurementVectorSizeType;
71 using typename Superclass::MeasurementType;
72 using typename Superclass::AbsoluteFrequencyType;
73 using typename Superclass::TotalAbsoluteFrequencyType;
74 using typename Superclass::InstanceIdentifier;
174 return m_InstanceIdentifier;
181 ++m_InstanceIdentifier;
188 return (m_Iter == it.
m_Iter);
198 m_InstanceIdentifier = iid;
234 this->ConstIterator::operator=(iter);
248 Iterator iter(m_InternalContainer.begin(), 0);
292#ifndef ITK_MANUAL_INSTANTIATION
293# include "itkListSample.hxx"
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Base class for most ITK classes.
typename InternalDataContainerType::const_iterator InternalIterator
InstanceIdentifier GetInstanceIdentifier() const
AbsoluteFrequencyType GetFrequency() const
ConstIterator & operator++()
ConstIterator(typename InternalDataContainerType::const_iterator iter, InstanceIdentifier iid)
InstanceIdentifier m_InstanceIdentifier
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstIterator)
ConstIterator(const ConstIterator &iter)
bool operator==(const ConstIterator &it) const
ConstIterator(const ListSample *sample)
ConstIterator & operator=(const ConstIterator &iter)
const MeasurementVectorType & GetMeasurementVector() const
ConstIterator & operator=(const ConstIterator &it)=delete
Iterator & operator=(const Iterator &iter)
Iterator(typename InternalDataContainerType::const_iterator iter, InstanceIdentifier iid)=delete
Iterator(const Self *sample)=delete
Iterator(typename InternalDataContainerType::iterator iter, InstanceIdentifier iid)
Iterator(const ConstIterator &it)=delete
Iterator(const Iterator &iter)
This class is the native implementation of the a Sample with an STL container.
void PushBack(const MeasurementVectorType &mv)
ConstIterator End() const
~ListSample() override=default
void SetMeasurement(InstanceIdentifier instanceId, unsigned int dim, const MeasurementType &value)
ConstIterator Begin() const
MeasurementVectorType ValueType
std::vector< MeasurementVectorType > InternalDataContainerType
void PrintSelf(std::ostream &os, Indent indent) const override
TotalAbsoluteFrequencyType GetTotalFrequency() const override
InstanceIdentifier Size() const override
void SetMeasurementVector(InstanceIdentifier instanceId, const MeasurementVectorType &mv)
void Graft(const DataObject *thatObject) override
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier instanceId) const override
AbsoluteFrequencyType GetFrequency(InstanceIdentifier instanceId) const override
void Resize(InstanceIdentifier newsize)
A collection of measurements for statistical analysis.
TMeasurementVector MeasurementVectorType
typename MeasurementVectorTraitsTypes< MeasurementVectorType >::ValueType MeasurementType
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....