SpECTRE  v2026.06.30
Loading...
Searching...
No Matches
RuntimeCache< Generator, T, Ranges > Class Template Reference

A cache that selects and lazily initializes entries at runtime. More...

#include <RuntimeCache.hpp>

Public Member Functions

 RuntimeCache (Generator generator)
template<typename... Args>
const T & operator() (const Args... parameters) const

Detailed Description

template<typename Generator, typename T, typename... Ranges>
class RuntimeCache< Generator, T, Ranges >

A cache that selects and lazily initializes entries at runtime.

Unlike StaticCache, this class does not instantiate the generator once for every combination of indices. This reduces compile time for large caches at the cost of runtime index calculation and synchronization.

Note
RuntimeCache is tested in Test_StaticCache.cpp.

The documentation for this class was generated from the following file:
  • src/Utilities/RuntimeCache.hpp