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;
234 typename InternalDataContainerType::iterator iter,
288 #ifndef ITK_MANUAL_INSTANTIATION
289 #include "itkListSample.hxx"
InternalDataContainerType::const_iterator InternalIterator
SmartPointer< const Self > ConstPointer
ConstIterator(const ConstIterator &iter)
SmartPointer< Self > Pointer
void operator=(const Self &)
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
Iterator(typename InternalDataContainerType::iterator iter, InstanceIdentifier iid)
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)