Interface for a variable factory. More...
#include <arcane/core/IVariableFactory.h>
Public Types | |
| using | VariableFactoryFunc = VariableFactoryVariableRefCreateFunc |
| Type of the function that creates the variable. | |
Public Member Functions | |
| virtual VariableRef * | createVariable (const VariableBuildInfo &build_info)=0 |
| Creates a variable with the build_info and returns its reference. | |
| virtual eItemKind | itemKind () const =0 |
| Kind of the data variables created by this factory. | |
| virtual eDataType | dataType () const =0 |
| Data type of the variable created by this factory. | |
| virtual Integer | dimension () const =0 |
| Dimension of the variable created by this factory. | |
| virtual Integer | multiTag () const =0 |
| Multi tag. | |
| virtual const String & | fullTypeName () const =0 |
| Full name of the variable type. | |
| virtual VariableTypeInfo | variableTypeInfo () const =0 |
| Information about the variable type. | |
Interface for a variable factory.
The instance allows creating a variable based on its data type (dataType()), its entity kind (itemKind()), its dimension (dimension()), and its tag if it is a multi-array (multiTag()).
The fullTypeName() operation contains the complete type name, obtained in the following way: dataType().itemKind().dimension().multiTag. For example, for a real scalar variable on the cells, the complete type is: "Real.Cell.0.0".
Definition at line 40 of file IVariableFactory.h.
| using Arcane::IVariableFactory::VariableFactoryFunc = VariableFactoryVariableRefCreateFunc |
Type of the function that creates the variable.
Definition at line 45 of file IVariableFactory.h.
|
pure virtual |
Creates a variable with the build_info and returns its reference.
Implemented in Arcane::VariableFactory.
|
pure virtual |
Data type of the variable created by this factory.
Implemented in Arcane::VariableFactory.
|
pure virtual |
Dimension of the variable created by this factory.
Implemented in Arcane::VariableFactory.
|
pure virtual |
Full name of the variable type.
Implemented in Arcane::VariableFactory.
Referenced by Arcane::VariableMng::initialize().
|
pure virtual |
Kind of the data variables created by this factory.
Implemented in Arcane::VariableFactory.
|
pure virtual |
Multi tag.
Implemented in Arcane::VariableFactory.
|
pure virtual |
Information about the variable type.
Implemented in Arcane::VariableFactory.