DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash > Class Template Reference

#include <itkFunctorHashTable.h>

+ Inheritance diagram for itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >:
+ Collaboration diagram for itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >:

Detailed Description

template<class TFunctor, class TParameters, class TFunctorValue = double, class THash = utl_hash<TParameters>>
class itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >

use FunctorHashTable to accelerate evaluation of functions.

Author
Jian Cheng (JC), jian..nosp@m.chen.nosp@m.g.198.nosp@m.3@gm.nosp@m.ail.c.nosp@m.om

Definition at line 35 of file itkFunctorHashTable.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::FunctorType FunctorType
 
typedef Superclass::FunctorValueType FunctorValueType
 
typedef HashTableType::iterator HashTableIterator
 
typedef utl_shared_ptr< HashTableTypeHashTablePointer
 
typedef utl_unordered_map< ParametersType, FunctorValueType, HashTypeHashTableType
 
typedef THash HashType
 
typedef Superclass::ParametersType ParametersType
 
typedef SmartPointer< SelfPointer
 
typedef FunctorHashTable Self
 
typedef Superclass::STDVectorPointer STDVectorPointer
 
typedef Superclass::STDVectorType STDVectorType
 
typedef FunctorTableBase< TFunctor, TParameters, TFunctorValue > Superclass
 
- Public Types inherited from itk::FunctorTableBase< TFunctor, TParameters, TFunctorValue >
typedef SmartPointer< const SelfConstPointer
 
typedef TFunctor FunctorType
 
typedef TFunctorValue FunctorValueType
 
typedef TParameters ParametersType
 
typedef SmartPointer< SelfPointer
 
typedef FunctorTableBase Self
 
typedef utl_shared_ptr< STDVectorTypeSTDVectorPointer
 
typedef std::vector< double > STDVectorType
 
typedef Object Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
FunctorValueType GetFunctionValue (const ParametersType &param)
 
virtual HashTablePointer GetHash ()
 
virtual const char * GetNameOfClass () const
 
unsigned long GetTableSize () const
 
bool IsTableBuilt () const
 
- Public Member Functions inherited from itk::FunctorTableBase< TFunctor, TParameters, TFunctorValue >
void BuildTable ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
FunctorValueType GetFunctionValue (const ParametersType &param)
 
FunctorTypeGetFunctor ()
 
const FunctorTypeGetFunctor () const
 
unsigned long GetTableSize () const
 
virtual void Initialize ()
 
bool IsTableBuilt () const
 
void SetFunctor (const FunctorType &functor)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::FunctorTableBase< TFunctor, TParameters, TFunctorValue >
static Pointer New ()
 

Protected Member Functions

 FunctorHashTable ()
 
LightObject::Pointer InternalClone () const ITK_OVERRIDE
 
void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
 
virtual ~FunctorHashTable ()
 
- Protected Member Functions inherited from itk::FunctorTableBase< TFunctor, TParameters, TFunctorValue >
 FunctorTableBase ()
 
LightObject::Pointer InternalClone () const ITK_OVERRIDE
 
virtual ~FunctorTableBase ()
 

Protected Attributes

FunctorType m_Functor
 
HashTablePointer m_Hash
 
- Protected Attributes inherited from itk::FunctorTableBase< TFunctor, TParameters, TFunctorValue >
FunctorType m_Functor
 

Private Member Functions

 FunctorHashTable (const Self &)
 
void operator= (const Self &)
 

Member Typedef Documentation

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef SmartPointer<const Self> itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::ConstPointer

Definition at line 43 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef Superclass::FunctorType itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::FunctorType

Definition at line 52 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef Superclass::FunctorValueType itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::FunctorValueType

Definition at line 53 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef HashTableType::iterator itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::HashTableIterator

Definition at line 61 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef utl_shared_ptr<HashTableType > itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::HashTablePointer

Definition at line 60 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef utl_unordered_map<ParametersType,FunctorValueType, HashType > itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::HashTableType

Definition at line 59 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef THash itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::HashType

Definition at line 58 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef Superclass::ParametersType itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::ParametersType

Definition at line 49 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef SmartPointer<Self> itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::Pointer

Definition at line 42 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef FunctorHashTable itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::Self

Standard class typedefs.

Definition at line 40 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef Superclass::STDVectorPointer itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::STDVectorPointer

Definition at line 56 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef Superclass::STDVectorType itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::STDVectorType

Definition at line 55 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
typedef FunctorTableBase<TFunctor, TParameters, TFunctorValue> itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::Superclass

Definition at line 41 of file itkFunctorHashTable.h.

Constructor & Destructor Documentation

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::FunctorHashTable ( )
inlineprotected

Definition at line 98 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
virtual itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::~FunctorHashTable ( )
inlineprotectedvirtual

Definition at line 102 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::FunctorHashTable ( const Self )
private

Member Function Documentation

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
virtual::itk::LightObject::Pointer itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::CreateAnother ( void  ) const
template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
FunctorValueType itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::GetFunctionValue ( const ParametersType param)
inline

Definition at line 77 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
virtual HashTablePointer itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::GetHash ( )
virtual
template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
virtual const char* itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods)

Reimplemented from itk::FunctorTableBase< TFunctor, TParameters, TFunctorValue >.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
unsigned long itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::GetTableSize ( ) const
inline

Definition at line 67 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
LightObject::Pointer itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::InternalClone ( ) const
inlineprotected

Definition at line 109 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
bool itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::IsTableBuilt ( ) const
inline

Definition at line 72 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
static Pointer itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::New ( )
static

Method for creation through the object factory.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
void itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::operator= ( const Self )
private
template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
void itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
inlineprotected

Definition at line 104 of file itkFunctorHashTable.h.

Member Data Documentation

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
FunctorType itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::m_Functor
protected

Definition at line 121 of file itkFunctorHashTable.h.

template<class TFunctor , class TParameters , class TFunctorValue = double, class THash = utl_hash<TParameters>>
HashTablePointer itk::FunctorHashTable< TFunctor, TParameters, TFunctorValue, THash >::m_Hash
protected

Definition at line 123 of file itkFunctorHashTable.h.


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