13#ifndef ARCANE_DATATYPE_SMALLVARIANT_H
14#define ARCANE_DATATYPE_SMALLVARIANT_H
18#include "arcane/utils/String.h"
19#include "arcane/utils/Convert.h"
51 static inline int convertFromReal(
int,
Real v)
59 static inline unsigned int convertFromReal(
unsigned int,
Real v)
67 static inline long convertFromReal(
long,
Real v)
75 static inline unsigned long convertFromReal(
unsigned long,
Real v)
83 static inline long long convertFromReal(
long long,
Real v)
91 static inline unsigned long long convertFromReal(
unsigned long long,
Real v)
116 SmallVariant(
Int32 v)
123 SmallVariant(
Int64 v)
137 SmallVariant(
const String& v)
146 void setValue(
Real v)
151 void setValue(
Int32 v)
156 void setValue(
Int64 v)
161 void setValue(
const String& v)
166 void setValue(
bool v)
172 void setValueAll(
Real v)
181 void setValueAll(
Int32 v)
190 void setValueAll(
Int64 v)
199 void setValueAll(
bool v)
242 virtual ~VariantGetterT() {}
Class managing a polymorphic type.
eType m_sticky_type
Guaranteed valid type of the value.
String m_string_value
Character string type value.
Real m_real_value
Real type value.
Int32 m_int32_value
Integer type value.
bool m_bool_value
Boolean type value.
Int64 m_int64_value
Natural integer type value.
Unicode character string.
Real toReal(Real r)
Converts r to a Real.
double toDouble(Real r)
Converts a Real to double.
-- 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.