OOPS
|
A subclass of ModelFactory able to create instances of T (a concrete subclass of ModelBase<MODEL>). Passes Geometry<MODEL> to the constructor of T. More...
#include <ModelBase.h>
Public Types | |
typedef Geometry< MODEL > | Geometry_ |
Public Member Functions | |
ModelMaker (const std::string &name) | |
ModelBase< MODEL > * | make (const Geometry_ &geom, const ModelParametersBase ¶meters) override |
std::unique_ptr< ModelParametersBase > | makeParameters () const override |
![]() | |
virtual | ~ModelFactory ()=default |
Private Types | |
typedef TParameters_IfAvailableElseFallbackType_t< T, GenericModelParameters > | Parameters_ |
Additional Inherited Members | |
![]() | |
static ModelBase< MODEL > * | create (const Geometry_ &, const ModelParametersBase ¶meters) |
Create and return a new model. More... | |
static std::unique_ptr< ModelParametersBase > | createParameters (const std::string &name) |
Create and return an instance of the subclass of ModelParametersBase storing parameters of models of the specified type. More... | |
static std::vector< std::string > | getMakerNames () |
Return the names of all models that can be created by one of the registered makers. More... | |
![]() | |
ModelFactory (const std::string &name) | |
Register a maker able to create models of type name . More... | |
A subclass of ModelFactory able to create instances of T (a concrete subclass of ModelBase<MODEL>). Passes Geometry<MODEL> to the constructor of T.
Definition at line 189 of file generic/ModelBase.h.
typedef Geometry<MODEL> oops::ModelMaker< MODEL, T >::Geometry_ |
Definition at line 196 of file generic/ModelBase.h.
|
private |
Defined as T::Parameters_ if T defines a Parameters_ type; otherwise as GenericModelParameters.
Definition at line 193 of file generic/ModelBase.h.
|
inlineexplicit |
Definition at line 198 of file generic/ModelBase.h.
|
inlineoverridevirtual |
Implements oops::ModelFactory< MODEL >.
Definition at line 200 of file generic/ModelBase.h.
|
inlineoverridevirtual |
Implements oops::ModelFactory< MODEL >.
Definition at line 208 of file generic/ModelBase.h.