Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::VariableUtilsInternal Class Reference
Collaboration diagram for Arcane::VariableUtilsInternal:

Static Public Member Functions

static bool fillFloat64Array (IVariable *v, ArrayView< double > values)
 Fills values with the variable's values.
static bool setFromFloat64Array (IVariable *v, ConstArrayView< double > values)
 Copies the values values into the variable v.
static bool setFromMemoryBuffer (IVariable *v, ConstMemoryView values)
 Copies the values values into the variable v.
static IDataInternalgetDataInternal (IVariable *v)
 Returns the internal IData API associated with the variable v.

Detailed Description

Definition at line 29 of file VariableUtilsInternal.h.

Member Function Documentation

◆ fillFloat64Array()

bool Arcane::VariableUtilsInternal::fillFloat64Array ( IVariable * v,
ArrayView< double > values )
static

Fills values with the variable's values.

Only 1D variables of type DT_Real are convertible.

Return values
falseif everything went well.
trueif nothing was done.

Definition at line 34 of file VariableUtilsInternal.cc.

References Arcane::ArrayView< T >::copy(), and Arcane::IVariable::data().

Here is the call graph for this function:

◆ getDataInternal()

IDataInternal * Arcane::VariableUtilsInternal::getDataInternal ( IVariable * v)
static

Returns the internal IData API associated with the variable v.

Definition at line 73 of file VariableUtilsInternal.cc.

References Arcane::IData::_commonInternal(), and Arcane::IVariable::data().

Here is the call graph for this function:

◆ setFromFloat64Array()

bool Arcane::VariableUtilsInternal::setFromFloat64Array ( IVariable * v,
ConstArrayView< double > values )
static

Copies the values values into the variable v.

Only 1D variables of type DT_Real are convertible.

Return values
falseif everything went well.
trueif nothing was done.

Definition at line 50 of file VariableUtilsInternal.cc.

References setFromMemoryBuffer().

Here is the call graph for this function:

◆ setFromMemoryBuffer()

bool Arcane::VariableUtilsInternal::setFromMemoryBuffer ( IVariable * v,
ConstMemoryView values )
static

Copies the values values into the variable v.

Only numerical variables are convertible.

Return values
falseif everything went well.
trueif nothing was done.

Definition at line 59 of file VariableUtilsInternal.cc.

References Arcane::IData::_commonInternal(), Arcane::IVariable::data(), and Arcane::IDataInternal::numericData().

Referenced by setFromFloat64Array().

Here is the call graph for this function:
Here is the caller graph for this function:

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