ElementRefResolution struct
#include <gtopt/element_column_resolver.hpp>
Memoised resolution of an element reference's constant parts — the element-id parse, the name→uid lookup, and the AMPL-variable find — keyed by the ElementRef's address. All three are constant per (class, id, attribute) within a single UserConstraintLP::add_to_lp (fixed scenario, stage), so the resolver computes them once and reuses them across the block loop — mirroring how each element's add_to_lp resolves its constant data before iterating blocks. Only the stable top-level term refs are cached (their address lives for the whole constraint build); transient compound-leg refs bypass the cache.
Public variables
- bool element_id_was_name
- std::optional<Uid> uid
- const AmplVariable* var
- direct registration, or nullptr