DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Types | Public Member Functions | Private Attributes | List of all members
itk::SparseVector< TValueType, TKeyType > Class Template Reference

#include <itkSparseVector.h>

Detailed Description

template<typename TValueType, typename TKeyType = SizeValueType>
class itk::SparseVector< TValueType, TKeyType >

Represents a sparse array.

Author
Pew-Thian Yap (ptyap.nosp@m.@med.nosp@m..unc..nosp@m.edu)

Definition at line 33 of file itkSparseVector.h.

Public Types

typedef TValueType ComponentType
 
typedef TKeyType ElementIdentifier
 
typedef utl_unordered_map< TKeyType, TValueType > InternalDataType
 
typedef TKeyType KeyType
 
typedef SparseVector Self
 
typedef TValueType ValueType
 

Public Member Functions

void Clear ()
 
void Fill (TValueType const &v)
 
InternalDataTypeGetDataPointer ()
 
const InternalDataTypeGetDataPointer () const
 
unsigned int GetSize (void) const
 
TValueType & operator[] (unsigned int i)
 
TValueType operator[] (unsigned int i) const
 
unsigned int Size (void) const
 
 SparseVector ()
 
 ~SparseVector ()
 

Private Attributes

InternalDataType m_Data
 
ValueType m_FillBufferValue
 

Member Typedef Documentation

template<typename TValueType , typename TKeyType = SizeValueType>
typedef TValueType itk::SparseVector< TValueType, TKeyType >::ComponentType

Definition at line 41 of file itkSparseVector.h.

template<typename TValueType , typename TKeyType = SizeValueType>
typedef TKeyType itk::SparseVector< TValueType, TKeyType >::ElementIdentifier

Definition at line 40 of file itkSparseVector.h.

template<typename TValueType , typename TKeyType = SizeValueType>
typedef utl_unordered_map<TKeyType, TValueType> itk::SparseVector< TValueType, TKeyType >::InternalDataType

Definition at line 42 of file itkSparseVector.h.

template<typename TValueType , typename TKeyType = SizeValueType>
typedef TKeyType itk::SparseVector< TValueType, TKeyType >::KeyType

Definition at line 39 of file itkSparseVector.h.

template<typename TValueType , typename TKeyType = SizeValueType>
typedef SparseVector itk::SparseVector< TValueType, TKeyType >::Self

Definition at line 43 of file itkSparseVector.h.

template<typename TValueType , typename TKeyType = SizeValueType>
typedef TValueType itk::SparseVector< TValueType, TKeyType >::ValueType

The element type stored at each location in the Array.

Definition at line 38 of file itkSparseVector.h.

Constructor & Destructor Documentation

template<typename TValueType , typename TKeyType = SizeValueType>
itk::SparseVector< TValueType, TKeyType >::SparseVector ( )
inline
template<typename TValueType , typename TKeyType = SizeValueType>
itk::SparseVector< TValueType, TKeyType >::~SparseVector ( )
inline

Destructor

Definition at line 53 of file itkSparseVector.h.

Member Function Documentation

template<typename TValueType , typename TKeyType = SizeValueType>
void itk::SparseVector< TValueType, TKeyType >::Clear ( )
inline

Clear data

Definition at line 65 of file itkSparseVector.h.

References itk::SparseVector< TValueType, TKeyType >::m_Data.

Referenced by itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::Set().

+ Here is the caller graph for this function:

template<typename TValueType , typename TKeyType = SizeValueType>
void itk::SparseVector< TValueType, TKeyType >::Fill ( TValueType const &  v)
inline

Set the all the elements of the array to the specified value

Definition at line 58 of file itkSparseVector.h.

References itk::SparseVector< TValueType, TKeyType >::m_Data, and itk::SparseVector< TValueType, TKeyType >::m_FillBufferValue.

template<typename TValueType , typename TKeyType = SizeValueType>
InternalDataType* itk::SparseVector< TValueType, TKeyType >::GetDataPointer ( )
inline

Pointer to internal data

Definition at line 105 of file itkSparseVector.h.

References itk::SparseVector< TValueType, TKeyType >::m_Data.

template<typename TValueType , typename TKeyType = SizeValueType>
const InternalDataType* itk::SparseVector< TValueType, TKeyType >::GetDataPointer ( ) const
inline
template<typename TValueType , typename TKeyType = SizeValueType>
unsigned int itk::SparseVector< TValueType, TKeyType >::GetSize ( void  ) const
inline
template<typename TValueType , typename TKeyType = SizeValueType>
TValueType& itk::SparseVector< TValueType, TKeyType >::operator[] ( unsigned int  i)
inline

Return modifiable lvalue reference to the element at specified index. No range checking.

Definition at line 71 of file itkSparseVector.h.

References itk::SparseVector< TValueType, TKeyType >::m_Data.

template<typename TValueType , typename TKeyType = SizeValueType>
TValueType itk::SparseVector< TValueType, TKeyType >::operator[] ( unsigned int  i) const
inline

Return constant rvalue reference to the element at specified index. No range checking.

Definition at line 77 of file itkSparseVector.h.

References itk::SparseVector< TValueType, TKeyType >::m_Data, and itk::SparseVector< TValueType, TKeyType >::m_FillBufferValue.

template<typename TValueType , typename TKeyType = SizeValueType>
unsigned int itk::SparseVector< TValueType, TKeyType >::Size ( void  ) const
inline

Member Data Documentation

template<typename TValueType , typename TKeyType = SizeValueType>
InternalDataType itk::SparseVector< TValueType, TKeyType >::m_Data
private
template<typename TValueType , typename TKeyType = SizeValueType>
ValueType itk::SparseVector< TValueType, TKeyType >::m_FillBufferValue
private

The documentation for this class was generated from the following file: