18#ifndef itkListSampleCArray_h
19#define itkListSampleCArray_h
21#include "itkObjectFactory.h"
44template <
class TMeasurementVector,
class TInternalValue =
typename TMeasurementVector::ValueType>
63 using typename Superclass::MeasurementVectorType;
64 using typename Superclass::MeasurementVectorSizeType;
65 using typename Superclass::MeasurementType;
66 using typename Superclass::AbsoluteFrequencyType;
67 using typename Superclass::TotalAbsoluteFrequencyType;
68 using typename Superclass::InstanceIdentifier;
108 const MeasurementVectorType &
117 SetMeasurement(InstanceIdentifier
id,
unsigned int dim,
const MeasurementType & value);
124 AbsoluteFrequencyType
128 TotalAbsoluteFrequencyType
139 PrintSelf(std::ostream & os, Indent indent)
const override;
162#ifndef ITK_MANUAL_INSTANTIATION
163# include "itkListSampleCArray.hxx"
InstanceIdentifier m_ActualSize
void AllocateInternalContainer(unsigned long size, unsigned int dim)
void SetMeasurementVector(InstanceIdentifier id, const MeasurementVectorType &mv)
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const override
void Resize(unsigned long n)
Sample< TMeasurementVector > Superclass
InternalValueType * InternalDataType
void PrintSelf(std::ostream &os, Indent indent) const override
TInternalValue InternalValueType
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const override
InstanceIdentifier m_InternalContainerSize
void SetMeasurement(InstanceIdentifier id, unsigned int dim, const MeasurementType &value)
InternalDataType * InternalDataContainerType
MeasurementVectorType m_TemporaryMeasurementVector
void DeallocateInternalContainer()
TotalAbsoluteFrequencyType GetTotalFrequency() const override
SmartPointer< const Self > ConstPointer
void SetActualSize(unsigned long n)
ITK_DISALLOW_COPY_AND_MOVE(ListSampleCArray)
~ListSampleCArray() override
SmartPointer< Self > Pointer
unsigned long GetActualSize()
InstanceIdentifier Size() const override
InternalDataContainerType m_InternalContainer
void GetMeasurementVector(InstanceIdentifier id, MeasurementVectorType &mv) const