12#ifndef ARCANE_CORE_DATATYPE_SCALARVARIANT_H
13#define ARCANE_CORE_DATATYPE_SCALARVARIANT_H
17#include "arcane/utils/String.h"
18#include "arcane/utils/Real2.h"
19#include "arcane/utils/Real3.h"
20#include "arcane/utils/Real2x2.h"
21#include "arcane/utils/Real3x3.h"
23#include "arcane/core/datatype/VariantBase.h"
38class ARCANE_DATATYPE_EXPORT ScalarVariant
45 ScalarVariant(
const ScalarVariant& v);
46 ScalarVariant(
Real v);
47 ScalarVariant(
Real2 v);
48 ScalarVariant(
Real3 v);
51 ScalarVariant(
Int32 v);
52 ScalarVariant(
Int64 v);
53 ScalarVariant(
bool v);
54 ScalarVariant(
const String& v);
57 ScalarVariant& operator=(
const ScalarVariant& v);
59 bool isInteger()
const {
return m_type == TInt32 ||
m_type == TInt64; }
66 void setValue(
Real2 v)
71 void setValue(
Real3 v)
86 void setValue(
Int32 v)
91 void setValue(
Int64 v)
101 void setValue(
const String& v)
Class managing a 2-dimensional real vector.
Class managing a 2x2 matrix of reals.
Class managing a 3-dimensional real vector.
Class managing a 3x3 real matrix.
Real m_real_value
Real type value.
Real3 m_real3_value
3-real vector type value
Real3x3 m_real3x3_value
3x3 real matrix type value
Int64 m_int64_value
64-bit integer type value
Int32 m_int32_value
32-bit integer type value
bool m_bool_value
Boolean type value.
Real2x2 m_real2x2_value
2x2 real matrix type value
Real2 m_real2_value
2-real vector type value
String m_string_value
Character string type value.
Unicode character string.
eType m_type
Guaranteed valid type of the value.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.
std::int32_t Int32
Signed integer type of 32 bits.