Template Class HeldResults¶
Defined in File ordered_executor.hpp
Class Documentation¶
-
template<typename N, bool FHC>
class HeldResults¶ Makes results the caller holds outside
cache– the rootssequant::evaluate_eachhas finished and not yet returned – count toward the peak metering for as long as this object lives: it is the hierarchy’s external store (ExternalStore), ahead of the one it found installed, which it restores on destruction.A result is counted once, and only if nothing else counts it already: not a scope cache (
CacheManager::chain_holds), not the store found installed, not an earlier entry ofheld.- Param cache:
the chain-root cache of the evaluation
- Param held:
the results, in the order they were obtained; may grow while this object lives
- Param hashes:
the hash of the root each result belongs to, aligned with
held
Public Functions
-
inline HeldResults(CacheManager<N, FHC> &cache, container::svector<ResultPtr> const &held, container::svector<std::size_t> const &hashes)¶
-
inline ~HeldResults()¶
-
HeldResults(HeldResults const&) = delete¶
-
HeldResults &operator=(HeldResults const&) = delete¶