ampsci
High-precision calculations for one- and two-valence atomic systems
DiracOperator::Register< T >

ok

template<typename T>
struct DiracOperator::Register< T >

Constructing a Register<T> adds T::generate to the Registry.

Place one of these at file scope (inside an anonymous namespace) in a .cpp file to register an operator. T must have a static generate() with the FactoryFn signature; the template instantiation enforces this at compile time.

namespace {
const DiracOperator::Register<MyOp> r{"MyOp", "One-line description"};
}
Constructing a Register<T> adds T::generate to the Registry.
Definition GenerateOperator.hpp:95

#include <GenerateOperator.hpp>

Public Member Functions

 Register (const char *name, const char *description)
 

The documentation for this struct was generated from the following file: