Template Function icrar::ProcessCache¶
Defined in File eigen_cache.h
Function Documentation¶
-
template<typename
In
, typenameOut
, typenameLambda
>
voidicrar
::
ProcessCache
(size_t hash, const In &in, Out &out, const std::string &hashFile, const std::string &cacheFile, Lambda transform)¶ Reads the hash file and writes to cache if the hash file is different, else reads the cache file if hash file is the same.
- Template Parameters
In
: Matrix typeOut
: Matrix typeLambda
: lambda type of signature Out(const In&)
- Parameters
in
: The input matrix to hash and transformout
: The transformed outputtransform
: the transform lambdacacheFile
: the transformed out cache filehashFile
: the in hash file