go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue > Class Template Reference

#include <itkListSampleCArray.h>

Detailed Description

template<class TMeasurementVector, class TInternalValue = typename TMeasurementVector::ValueType>
class itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >

A ListSampleBase that internally uses a CArray, which can be accessed.

This class is useful if some function expects a c-array, but you would like to keep things as much as possible in the itk::Statistics-framework.

Todo:
: the second template argument should be removed, since the GetMeasurementVector method is incorrect when TMeasurementVector::ValueType != TInternalValue.

Definition at line 45 of file itkListSampleCArray.h.

Inheritance diagram for itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >:
Inheritance graph
[legend]

Public Types

typedef Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::InstanceIdentifier InstanceIdentifier
 
typedef InternalDataTypeInternalDataContainerType
 
typedef InternalValueTypeInternalDataType
 
typedef TInternalValue InternalValueType
 
typedef Superclass::MeasurementType MeasurementType
 
typedef Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
 
typedef Superclass::MeasurementVectorType MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef ListSampleCArray Self
 
typedef Sample< TMeasurementVector > Superclass
 
typedef Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
 

Public Member Functions

void Clear (void)
 
unsigned long GetActualSize (void)
 
virtual const char * GetClassName () const
 
virtual AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const
 
virtual InternalDataContainerType GetInternalContainer () const
 
virtual const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier id) const
 
void GetMeasurementVector (InstanceIdentifier id, MeasurementVectorType &mv) const
 
virtual TotalAbsoluteFrequencyType GetTotalFrequency (void) const
 
void Resize (unsigned long n)
 
void SetActualSize (unsigned long n)
 
void SetMeasurement (InstanceIdentifier id, unsigned int dim, const MeasurementType &value)
 
void SetMeasurementVector (InstanceIdentifier id, const MeasurementVectorType &mv)
 
virtual InstanceIdentifier Size (void) const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ListSampleCArray ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~ListSampleCArray ()
 

Private Member Functions

void AllocateInternalContainer (unsigned long size, unsigned int dim)
 
void DeallocateInternalContainer (void)
 
 ListSampleCArray (const Self &)
 
void operator= (const Self &)
 

Private Attributes

InstanceIdentifier m_ActualSize
 
InternalDataContainerType m_InternalContainer
 
InstanceIdentifier m_InternalContainerSize
 
MeasurementVectorType m_TemporaryMeasurementVector
 

Member Typedef Documentation

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef Superclass::AbsoluteFrequencyType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::AbsoluteFrequencyType

Definition at line 66 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef SmartPointer< const Self > itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::ConstPointer

Definition at line 54 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef Superclass::InstanceIdentifier itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::InstanceIdentifier

Definition at line 68 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef InternalDataType* itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::InternalDataContainerType

Definition at line 73 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef InternalValueType* itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::InternalDataType

Definition at line 72 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef TInternalValue itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::InternalValueType

Typedef's for the internal data container.

Definition at line 71 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef Superclass::MeasurementType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::MeasurementType

Definition at line 65 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef Superclass::MeasurementVectorSizeType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::MeasurementVectorSizeType

Definition at line 64 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef Superclass::MeasurementVectorType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::MeasurementVectorType

Typedef's from Superclass.

Definition at line 60 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef SmartPointer< Self > itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::Pointer

Definition at line 53 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef ListSampleCArray itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::Self

Standard itk.

Definition at line 51 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef Sample< TMeasurementVector > itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::Superclass

Definition at line 52 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
typedef Superclass::TotalAbsoluteFrequencyType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::TotalAbsoluteFrequencyType

Definition at line 67 of file itkListSampleCArray.h.

Constructor & Destructor Documentation

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::ListSampleCArray ( )
protected
template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
virtual itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::~ListSampleCArray ( )
protectedvirtual
template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::ListSampleCArray ( const Self )
private

Member Function Documentation

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::AllocateInternalContainer ( unsigned long  size,
unsigned int  dim 
)
private

Function to allocate the memory of the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::Clear ( void  )

Function to clear the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::DeallocateInternalContainer ( void  )
private

Function to deallocate the memory of the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
unsigned long itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::GetActualSize ( void  )

Function to get the actual (not the allocated) size of the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
virtual const char* itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::GetClassName ( ) const
virtual

ITK type info

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
virtual AbsoluteFrequencyType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::GetFrequency ( InstanceIdentifier  id) const
virtual

Function to get the frequency of point i. 1.0 if it exist, 0.0 otherwise.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
virtual InternalDataContainerType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::GetInternalContainer ( ) const
virtual

Macro to get the internal data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
virtual const MeasurementVectorType& itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::GetMeasurementVector ( InstanceIdentifier  id) const
virtual

Function to get a point from the data container. NB: the reference to the returned value remains only valid until the next call to this function. The method GetMeasurementVector( const InstanceIdentifier &id, MeasurementVectorType & mv) is actually a preferred way to get a measurement vector.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::GetMeasurementVector ( InstanceIdentifier  id,
MeasurementVectorType mv 
) const

Function to get a point from the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
virtual TotalAbsoluteFrequencyType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::GetTotalFrequency ( void  ) const
inlinevirtual

Function to get the total frequency.

Definition at line 122 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
static Pointer itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::New ( )
static

New method for creating an object using a factory.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::operator= ( const Self )
private
template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected
template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::Resize ( unsigned long  n)

Function to resize the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::SetActualSize ( unsigned long  n)

Function to set the actual (not the allocated) size of the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::SetMeasurement ( InstanceIdentifier  id,
unsigned int  dim,
const MeasurementType value 
)

Function to set part of a point (measurement) in the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
void itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::SetMeasurementVector ( InstanceIdentifier  id,
const MeasurementVectorType mv 
)

Function to set a point (measurement vector) in the data container.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
virtual InstanceIdentifier itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::Size ( void  ) const
inlinevirtual

Function to get the size of the data container.

Definition at line 91 of file itkListSampleCArray.h.

Field Documentation

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
InstanceIdentifier itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::m_ActualSize
private

Definition at line 142 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
InternalDataContainerType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::m_InternalContainer
private

The internal storage of the data in a C array.

Definition at line 140 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
InstanceIdentifier itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::m_InternalContainerSize
private

Definition at line 141 of file itkListSampleCArray.h.

template<class TMeasurementVector , class TInternalValue = typename TMeasurementVector::ValueType>
MeasurementVectorType itk::Statistics::ListSampleCArray< TMeasurementVector, TInternalValue >::m_TemporaryMeasurementVector
mutableprivate

Dummy needed for GetMeasurementVector().

Definition at line 145 of file itkListSampleCArray.h.



Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo