18 #ifndef itkListSample_h
19 #define itkListSample_h
50 template<
typename TMeasurementVector >
135 *
this = sample->
Begin();
163 return m_InstanceIdentifier;
169 ++m_InstanceIdentifier;
175 return ( m_Iter != it.
m_Iter );
180 return ( m_Iter == it.
m_Iter );
186 typename InternalDataContainerType::const_iterator iter,
190 m_InstanceIdentifier = iid;
193 ConstIterator() ITK_DELETE_FUNCTION;
197 InternalIterator m_Iter;
229 Iterator(const ConstIterator & it) ITK_DELETE_FUNCTION;
230 ConstIterator & operator=(const ConstIterator & it) ITK_DELETE_FUNCTION;
280 void operator=(const
Self &) ITK_DELETE_FUNCTION;
287 #ifndef ITK_MANUAL_INSTANTIATION
288 #include "itkListSample.hxx"
InternalDataContainerType::const_iterator InternalIterator
SmartPointer< const Self > ConstPointer
ConstIterator(const ConstIterator &iter)
SmartPointer< Self > Pointer
MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
Superclass::MeasurementType MeasurementType
Sample< TMeasurementVector > Superclass
ConstIterator & operator++()
Superclass::MeasurementVectorType MeasurementVectorType
MeasurementVectorType ValueType
std::vector< MeasurementVectorType > InternalDataContainerType
const MeasurementVectorType & GetMeasurementVector() const
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
AbsoluteFrequencyType GetFrequency() const
void SetMeasurementVector(InstanceIdentifier id, const MeasurementVectorType &mv)
TotalAbsoluteFrequencyType GetTotalFrequency() const override
InstanceIdentifier GetInstanceIdentifier() const
ConstIterator & operator=(const ConstIterator &iter)
bool operator==(const ConstIterator &it)
ConstIterator(const ListSample *sample)
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const override
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
Superclass::InstanceIdentifier InstanceIdentifier
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
MeasurementVectorTraitsTypes< MeasurementVectorType >::ValueType MeasurementType
Iterator & operator=(const Iterator &iter)
ConstIterator End() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const override
TMeasurementVector MeasurementVectorType
unsigned int MeasurementVectorSizeType
ConstIterator(typename InternalDataContainerType::const_iterator iter, InstanceIdentifier iid)
void PushBack(const MeasurementVectorType &mv)
This class is the native implementation of the a Sample with an STL container.
void SetMeasurement(InstanceIdentifier id, unsigned int dim, const MeasurementType &value)
A collection of measurements for statistical analysis.
Control indentation during Print() invocation.
virtual void Graft(const DataObject *thatObject) override
InstanceIdentifier Size() const override
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
bool operator!=(const ConstIterator &it)
Iterator(const Iterator &iter)
void PrintSelf(std::ostream &os, Indent indent) const override
ConstIterator Begin() const
Base class for all data objects in ITK.
InternalDataContainerType m_InternalContainer
InstanceIdentifier m_InstanceIdentifier
void Resize(InstanceIdentifier newsize)