Template Function icrar::ProcessCache

Function Documentation

template<typename In, typename Out, typename Lambda>
void icrar::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 type

  • Out: Matrix type

  • Lambda: lambda type of signature Out(const In&)

Parameters
  • in: The input matrix to hash and transform

  • out: The transformed output

  • transform: the transform lambda

  • cacheFile: the transformed out cache file

  • hashFile: the in hash file