NuTo
Numerics Tool
Public Member Functions | List of all members
NaturalCoordinateMemoizerUnorderedMap< TResult, TNaturalCoords, THash, TEqual > Class Template Reference

Public Member Functions

 NaturalCoordinateMemoizerUnorderedMap (std::function< TResult(TNaturalCoords)> function)
 ctor More...
 
const TResult & Get (const TNaturalCoords &v) const
 returns the value of the function for the given arguments. More...
 
void ClearCache () const
 

Constructor & Destructor Documentation

template<typename TResult , typename TNaturalCoords , typename THash = VectorHash<TNaturalCoords>, typename TEqual = VectorEqual<TNaturalCoords>>
NaturalCoordinateMemoizerUnorderedMap< TResult, TNaturalCoords, THash, TEqual >::NaturalCoordinateMemoizerUnorderedMap ( std::function< TResult(TNaturalCoords)>  function)
inline

ctor

Parameters
function... function for memoization

Member Function Documentation

template<typename TResult , typename TNaturalCoords , typename THash = VectorHash<TNaturalCoords>, typename TEqual = VectorEqual<TNaturalCoords>>
void NaturalCoordinateMemoizerUnorderedMap< TResult, TNaturalCoords, THash, TEqual >::ClearCache ( ) const
inline
template<typename TResult , typename TNaturalCoords , typename THash = VectorHash<TNaturalCoords>, typename TEqual = VectorEqual<TNaturalCoords>>
const TResult& NaturalCoordinateMemoizerUnorderedMap< TResult, TNaturalCoords, THash, TEqual >::Get ( const TNaturalCoords &  v) const
inline

returns the value of the function for the given arguments.

Repeated calls of Get() with the same arguments will return the memoized Eigen::MatrixXd.

Parameters
v... argument
Returns
reference to the 'memoized' Eigen::MatrixXd

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