Template Struct BatchedScratch

Struct Documentation

template<typename TreeNode, bool FHC>
struct BatchedScratch

The scratch cache for one batched replay pass, plus the alive persistent real-cache entries to pre-seed it with: the seeds are registered persistent in the scratch so they survive the per-batch reset(), and the caller copies their values in before the batch loop.

Public Members

CacheManager<TreeNode, FHC> cache
std::vector<TreeNode const*> seeds
A forest passed as a temporary is moved into a holder the cache

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

keeps, and the cache is built over that (see the min_repeats-only overload).