|
ampsci
High-precision calculations for one- and two-valence atomic systems
|
Singleton registry of all compiled-in operators.
Populated at program startup via static initialisers (one per operator) and never modified once main() begins. Uses construct-on-first-use to avoid the static-initialisation order fiasco.
#include <GenerateOperator.hpp>
Public Member Functions | |
| void | add (std::string name, std::string description, FactoryFn fn) |
| Append a new entry. Normally called only by Register<T>. | |
| const std::vector< OperatorEntry > & | entries () const |
| All registered operators, in registration order. | |
Static Public Member Functions | |
| static Registry & | get () |
| Access the singleton instance. | |
|
inlinestatic |
Access the singleton instance.
|
inline |
Append a new entry. Normally called only by Register<T>.
|
inline |
All registered operators, in registration order.