18 #ifndef itkListSample_h
19 #define itkListSample_h
50 template<
typename TMeasurementVector >
123 void Graft(
const DataObject *thatObject)
override;
137 *
this = sample->
Begin();
165 return m_InstanceIdentifier;
171 ++m_InstanceIdentifier;
177 return ( m_Iter != it.
m_Iter );
182 return ( m_Iter == it.
m_Iter );
188 typename InternalDataContainerType::const_iterator iter,
192 m_InstanceIdentifier = iid;
220 this->ConstIterator::operator=(iter);
227 typename InternalDataContainerType::iterator iter,
244 Iterator iter(m_InternalContainer.begin(), 0);
252 Iterator iter( m_InternalContainer.end(),
static_cast<InstanceIdentifier>( m_InternalContainer.size() ) );
260 ConstIterator iter(m_InternalContainer.begin(), 0);
268 ConstIterator iter( m_InternalContainer.end(),
static_cast<InstanceIdentifier>( m_InternalContainer.size() ) );
277 void PrintSelf(std::ostream & os,
Indent indent)
const override;
285 #ifndef ITK_MANUAL_INSTANTIATION
286 #include "itkListSample.hxx"
std::vector< MeasurementVectorType > InternalDataContainerType
typename Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
ConstIterator(const ConstIterator &iter)
ConstIterator & operator++()
typename Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
const MeasurementVectorType & GetMeasurementVector() const
typename Superclass::InstanceIdentifier InstanceIdentifier
AbsoluteFrequencyType GetFrequency() const
Iterator(typename InternalDataContainerType::iterator iter, InstanceIdentifier iid)
InstanceIdentifier GetInstanceIdentifier() const
ConstIterator & operator=(const ConstIterator &iter)
MeasurementVectorType ValueType
bool operator==(const ConstIterator &it)
ConstIterator(const ListSample *sample)
typename Superclass::MeasurementVectorType MeasurementVectorType
Represent a n-dimensional size (bounds) of a n-dimensional image.
Iterator & operator=(const Iterator &iter)
typename Superclass::MeasurementType MeasurementType
ConstIterator End() const
ConstIterator(typename InternalDataContainerType::const_iterator iter, InstanceIdentifier iid)
This class is the native implementation of the a Sample with an STL container.
A collection of measurements for statistical analysis.
Control indentation during Print() invocation.
bool operator!=(const ConstIterator &it)
Base class for most ITK classes.
Iterator(const Iterator &iter)
typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
ConstIterator Begin() const
Base class for all data objects in ITK.
InternalDataContainerType m_InternalContainer
InstanceIdentifier m_InstanceIdentifier
typename InternalDataContainerType::const_iterator InternalIterator