Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::VariableFactory Class Reference

Public Member Functions

 VariableFactory (VariableFactoryFunc func, eDataType data_type, eItemKind item_kind, Integer dimension, Integer multi_tag, bool is_partial)
 Creates a variable factory.
 VariableFactory (VariableFactoryFunc func, const VariableTypeInfo &var_type_info)
VariableRefcreateVariable (const VariableBuildInfo &name) override
 Creates a variable with the build_info and returns its reference.
eItemKind itemKind () const override
 Kind of the data variables created by this factory.
eDataType dataType () const override
 Data type of the variable created by this factory.
Integer dimension () const override
 Dimension of the variable created by this factory.
Integer multiTag () const override
 Multi tag.
bool isPartial () const
const StringfullTypeName () const override
 Full name of the variable type.
VariableTypeInfo variableTypeInfo () const override
 Information about the variable type.

Additional Inherited Members

Public Types inherited from Arcane::IVariableFactory
using VariableFactoryFunc = VariableFactoryVariableRefCreateFunc
 Type of the function that creates the variable.

Detailed Description

Definition at line 35 of file VariableFactory.h.

Constructor & Destructor Documentation

◆ VariableFactory() [1/2]

Arcane::VariableFactory::VariableFactory ( VariableFactoryFunc func,
eDataType data_type,
eItemKind item_kind,
Integer dimension,
Integer multi_tag,
bool is_partial )

Creates a variable factory.

Parameters
funcfunction creating the variable
item_kindkind of the variable entity
data_typedata type of the variable
dimensiondimension of the variable
multi_tagtag indicating if it is a multi-sized array.
is_partialindicates if it is a partial variable.

Definition at line 33 of file VariableFactory.cc.

References dimension(), and VariableFactory().

Referenced by VariableFactory().

◆ VariableFactory() [2/2]

Arcane::VariableFactory::VariableFactory ( VariableFactoryFunc func,
const VariableTypeInfo & var_type_info )

Definition at line 44 of file VariableFactory.cc.

Member Function Documentation

◆ createVariable()

VariableRef * Arcane::VariableFactory::createVariable ( const VariableBuildInfo & build_info)
overridevirtual

Creates a variable with the build_info and returns its reference.

Implements Arcane::IVariableFactory.

Definition at line 55 of file VariableFactory.cc.

◆ dataType()

eDataType Arcane::VariableFactory::dataType ( ) const
inlineoverridevirtual

Data type of the variable created by this factory.

Implements Arcane::IVariableFactory.

Definition at line 59 of file VariableFactory.h.

◆ dimension()

Integer Arcane::VariableFactory::dimension ( ) const
inlineoverridevirtual

Dimension of the variable created by this factory.

Implements Arcane::IVariableFactory.

Definition at line 60 of file VariableFactory.h.

Referenced by VariableFactory().

◆ fullTypeName()

const String & Arcane::VariableFactory::fullTypeName ( ) const
inlineoverridevirtual

Full name of the variable type.

Implements Arcane::IVariableFactory.

Definition at line 63 of file VariableFactory.h.

◆ isPartial()

bool Arcane::VariableFactory::isPartial ( ) const
inline

Definition at line 62 of file VariableFactory.h.

◆ itemKind()

eItemKind Arcane::VariableFactory::itemKind ( ) const
inlineoverridevirtual

Kind of the data variables created by this factory.

Implements Arcane::IVariableFactory.

Definition at line 58 of file VariableFactory.h.

◆ multiTag()

Integer Arcane::VariableFactory::multiTag ( ) const
inlineoverridevirtual

Multi tag.

Implements Arcane::IVariableFactory.

Definition at line 61 of file VariableFactory.h.

◆ variableTypeInfo()

VariableTypeInfo Arcane::VariableFactory::variableTypeInfo ( ) const
inlineoverridevirtual

Information about the variable type.

Implements Arcane::IVariableFactory.

Definition at line 64 of file VariableFactory.h.


The documentation for this class was generated from the following files: