12#ifndef ARCANE_CORE_VARIABLESCALAR_H
13#define ARCANE_CORE_VARIABLESCALAR_H
17#include "arcane/core/Variable.h"
51 static ARCANE_CORE_EXPORT ThatClass* getReference(
IVariable* var);
61 void print(std::ostream& o)
const override;
63 const IData*
data()
const override {
return m_value; }
77 ARCANE_CORE_EXPORT
void swapValues(ThatClass& rhs);
83 ARCANE_UNUSED(resize_args);
89 ValueDataType* m_value;
Interface of a data item.
Interface of a scalar data item of type T.
virtual DataType & value()=0
Data value.
Parameters necessary for building a variable.
Arguments for VariableComparer methods.
Results of a comparison operation.
Information characterizing a variable.
Arguments for resizing a variable.
IData * data() override
Data associated with the variable.
void copyItemsValues(Int32ConstArrayView source, Int32ConstArrayView destination) override
Copies the values of entities numbered source into entities numbered destination.
void shrinkMemory() override
Frees any additional memory allocated for the data.
VariableScalarT(const VariableBuildInfo &v, const VariableInfo &vi)
Constructs a variable based on the reference v.
void setIsSynchronized(const ItemGroup &item_group) override
Indicates that the variable is synchronized on the group item_group.
void setIsSynchronized() override
Indicates that the variable is synchronized.
void synchronize() override
Synchronizes the variable.
Integer nbElement() const override
Number of elements of the variable.
void copyItemsMeanValues(Int32ConstArrayView first_source, Int32ConstArrayView second_source, Int32ConstArrayView destination) override
Copies the mean values of entities numbered first_source and second_source into entities numbered des...
VariableComparerResults _compareVariable(const VariableComparerArgs &compare_args) final
Comparison of values between variables.
void print(std::ostream &o) const override
Prints the variable's values to the stream o.
void compact(Int32ConstArrayView new_to_old_ids) override
Compresses the variable's values.
Real allocatedMemory() const override
Memory size (in Bytes) used by the variable.
void synchronize(Int32ConstArrayView local_ids) override
Synchronizes the variable on a list of entities.
const IData * data() const override
Data associated with the variable.
Variable(const VariableBuildInfo &v, const VariableInfo &vi)
Creates a variable linked to the reference v.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
double Real
Type representing a real number.