18 #ifndef __itkListSampleCArray_h 19 #define __itkListSampleCArray_h 21 #include "itkObjectFactory.h" 23 #include "itkSample.h" 44 template<
class TMeasurementVector,
class TInternalValue =
typename TMeasurementVector::ValueType >
46 public Sample< TMeasurementVector >
76 itkGetConstMacro( InternalContainer, InternalDataContainerType );
79 void Resize(
unsigned long n );
91 virtual InstanceIdentifier
Size(
void )
const 104 InstanceIdentifier
id )
const;
108 MeasurementVectorType & mv )
const;
112 unsigned int dim,
const MeasurementType & value );
116 const MeasurementVectorType & mv );
119 virtual AbsoluteFrequencyType
GetFrequency( InstanceIdentifier
id )
const;
132 void PrintSelf( std::ostream & os, Indent indent )
const;
158 #ifndef ITK_MANUAL_INSTANTIATION 159 #include "itkListSampleCArray.hxx" 162 #endif // end #ifndef __itkListSampleCArray_h void operator=(const Self &)
void Resize(unsigned long n)
MeasurementVectorType m_TemporaryMeasurementVector
SmartPointer< const Self > ConstPointer
Sample< TMeasurementVector > Superclass
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
void DeallocateInternalContainer(void)
unsigned long GetActualSize(void)
TInternalValue InternalValueType
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
void SetMeasurement(InstanceIdentifier id, unsigned int dim, const MeasurementType &value)
void SetMeasurementVector(InstanceIdentifier id, const MeasurementVectorType &mv)
void SetActualSize(unsigned long n)
InternalDataType * InternalDataContainerType
virtual InstanceIdentifier Size(void) const
InstanceIdentifier m_ActualSize
Superclass::MeasurementVectorType MeasurementVectorType
InternalDataContainerType m_InternalContainer
A ListSampleBase that internally uses a CArray, which can be accessed.
virtual TotalAbsoluteFrequencyType GetTotalFrequency(void) const
virtual AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const
InternalValueType * InternalDataType
Superclass::InstanceIdentifier InstanceIdentifier
virtual ~ListSampleCArray()
void AllocateInternalContainer(unsigned long size, unsigned int dim)
SmartPointer< Self > Pointer
virtual const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const
InstanceIdentifier m_InternalContainerSize
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
Superclass::MeasurementType MeasurementType