27#include "neml2/base/NEML2Object.h"
28#include "neml2/models/BufferStore.h"
29#include "neml2/base/Factory.h"
52 template <
typename T,
typename =
typename std::enable_if_t<std::is_base_of_v<Data, T>>>
BufferStore(NEML2Object *object)
Definition BufferStore.cxx:34
T & register_data(const std::string &name)
Definition Data.h:53
const std::vector< Data * > & registered_data() const
All the registered data objects.
Definition Data.h:46
std::vector< Data * > _registered_data
Registered Data objects.
Definition Data.h:68
Data(const OptionSet &options)
Construct a new Data object.
Definition Data.cxx:38
static OptionSet expected_options()
Definition Data.cxx:31
static std::shared_ptr< T > get_object_ptr(const std::string §ion, const std::string &name, const OptionSet &additional_options=OptionSet(), bool force_create=true)
Retrive an object pointer under the given section with the given object name.
Definition Factory.h:165
const std::string & name() const
A readonly reference to the object's name.
Definition NEML2Object.h:74
const T * host() const
Get a readonly pointer to the host.
Definition NEML2Object.h:99
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:52
T & set(const std::string &)
Definition OptionSet.h:273
Definition DiagnosticsInterface.cxx:30