18 #ifndef itkListSample_h
19 #define itkListSample_h
50 template<
typename TMeasurementVector >
121 virtual
void Graft(const
DataObject *thatObject) ITK_OVERRIDE;
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;
194 ConstIterator() ITK_DELETED_FUNCTION;
196 InternalIterator m_Iter;
218 this->ConstIterator::operator=(iter);
225 typename InternalDataContainerType::iterator iter,
235 Iterator(const ConstIterator & it) ITK_DELETED_FUNCTION;
236 ConstIterator & operator=(const ConstIterator & it) ITK_DELETED_FUNCTION;
242 Iterator iter(m_InternalContainer.begin(), 0);
250 Iterator iter( m_InternalContainer.end(),
static_cast<InstanceIdentifier>( m_InternalContainer.size() ) );
258 ConstIterator iter(m_InternalContainer.begin(), 0);
266 ConstIterator iter( m_InternalContainer.end(),
static_cast<InstanceIdentifier>( m_InternalContainer.size() ) );
275 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
285 #ifndef ITK_MANUAL_INSTANTIATION
286 #include "itkListSample.hxx"
InternalDataContainerType::const_iterator InternalIterator
SmartPointer< const Self > ConstPointer
ConstIterator(const ConstIterator &iter)
SmartPointer< Self > Pointer
Superclass::MeasurementType MeasurementType
Sample< TMeasurementVector > Superclass
ConstIterator & operator++()
Represent the size (bounds) of a n-dimensional image.
Superclass::MeasurementVectorType MeasurementVectorType
MeasurementVectorType ValueType
std::vector< MeasurementVectorType > InternalDataContainerType
const MeasurementVectorType & GetMeasurementVector() const
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
AbsoluteFrequencyType GetFrequency() const
Iterator(typename InternalDataContainerType::iterator iter, InstanceIdentifier iid)
InstanceIdentifier GetInstanceIdentifier() const
ConstIterator & operator=(const ConstIterator &iter)
bool operator==(const ConstIterator &it)
ConstIterator(const ListSample *sample)
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
virtual ~ListSample() override
Superclass::InstanceIdentifier InstanceIdentifier
Iterator & operator=(const Iterator &iter)
ConstIterator End() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
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)
Iterator(const Iterator &iter)
ConstIterator Begin() const
Base class for all data objects in ITK.
InternalDataContainerType m_InternalContainer
InstanceIdentifier m_InstanceIdentifier