KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Here we add the functions needed for the registration of class. More...
#include <factory.h>
Public Member Functions | |
Life Cycle | |
Factory () | |
virtual | ~Factory ()=default |
Operations | |
bool | Has (const std::string &rClassName) const override |
This method checks if the linear class is registered. More... | |
template<typename... TArgumentsType> | |
ClassType::Pointer | Create (TArgumentsType &&... Arguments) const |
This method creates a new class. More... | |
Input and output | |
std::string | Info () const override |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
Public Member Functions inherited from Kratos::FactoryBase | |
KRATOS_CLASS_POINTER_DEFINITION (FactoryBase) | |
Pointer definition of FactoryBase. More... | |
FactoryBase () | |
virtual | ~FactoryBase () |
Type Definitions | |
typedef TClass | ClassType |
The definition of the class. More... | |
KRATOS_CLASS_POINTER_DEFINITION (Factory) | |
Pointer definition of Factory. More... | |
Here we add the functions needed for the registration of class.
Defines the base class factory
TClass | The class to create the factory |
typedef TClass Kratos::Factory< TClass >::ClassType |
The definition of the class.
|
inlineexplicit |
Constructor.
|
virtualdefault |
Destructor.
|
inline |
This method creates a new class.
Arguments | The arguments of the method |
TArgumentsType | Variadic template arguments |
|
inlineoverridevirtual |
This method checks if the linear class is registered.
rClassName | The nanme of the class |
Reimplemented from Kratos::FactoryBase.
|
inlineoverridevirtual |
Turn back information as a string.
Reimplemented from Kratos::FactoryBase.
Kratos::Factory< TClass >::KRATOS_CLASS_POINTER_DEFINITION | ( | Factory< TClass > | ) |
Pointer definition of Factory.
|
inlineoverridevirtual |
Print object's data.
Reimplemented from Kratos::FactoryBase.
|
inlineoverridevirtual |
Print information about this object.
Reimplemented from Kratos::FactoryBase.