Template Struct CachedValue

Struct Documentation

template<meta::eval_node Node>
struct CachedValue

The runtime-cache key: a forest node.

On the forest-descent path a cached value’s identity is its node’s canonical hash (hash::value) &#8212; exactly what CachedValueHasher / CachedValueEqual key CacheManager's map by. The batched (table-driven) executor never consults this map for values at all: it keys by cell id instead (see cell_table.hpp), so no per-scope slice coloring is threaded through here. Node-facing operations forward to node via operator-> so CacheManager's internals retarget mechanically.

Public Functions

inline CachedValue(Node n)

Implicit from a bare node: every cache call site that passes a node keys the map by that node’s identity.

inline auto operator->() const
inline Node const &operator*() const

Public Members

Node node

the (possibly shared) forest node