The Registry is used as a global singleton to collect information on all available NEML2Object that can be manufactured from the input file.
To register a concrete class to the registry, use the macro register_NEML2_object or register_NEML2_object_alias. Each object/class should only be registered once.
|
| static Registry & | get () |
| | Get the global Registry singleton.
|
| |
| template<typename T > |
| static char | add (const std::string &name) |
| | Add information on a NEML2Object to the registry.
|
| |
| static void | load (const std::filesystem::path &) |
| | Load registry from a dynamic library.
|
| |
| static const std::map< std::string, NEML2ObjectInfo > & | info () |
| | Get information of all registered objects.
|
| |
| static const NEML2ObjectInfo & | info (const std::string &) |
| | Get the information of an object given its syntax type.
|
| |