ampl_dispatch_registry.hpp file
One-shot population of the AMPL param + iterator tables.
Each *LP class exposes its param_* accessors and its Collection<LP> enumeration to user constraints through a pair of function-pointer registries on SimulationLP (AmplParamMap, AmplIterMap). The two helpers declared here are called once from system_lp.cpp::register_all_ampl_element_names inside its std::call_once block — populating the tables out of the SystemLP constructor's parallel scene-build loop. After registration both maps are read-only.
The bodies live in source/ampl_dispatch_registry.cpp so that system_lp.cpp stays focused on system orchestration and the boilerplate sc.get_element(...).param_X(s, b) shims live with their peers.
Namespaces
- namespace gtopt