Functions to convert one type to another. More...
Classes | |
| class | Type |
| Template class for converting a type. More... | |
| class | ScalarType |
| class | Type< Int64 > |
| Specialization for scalar types. More... | |
| class | Type< Int32 > |
| class | Type< Real > |
Functions | |
| String | toHexaString (ByteConstArrayView input) |
| Converts a byte array to its hexadecimal representation. | |
| String | toHexaString (Span< const std::byte > input) |
| Converts a byte array to its hexadecimal representation. | |
| String | toHexaString (Real input) |
| Converts a real number to its hexadecimal representation. | |
| void | toHexaString (Int64 input, Span< Byte > output) |
| Converts a 64-bit integer to its hexadecimal representation. | |
| double | toDouble (Real r) |
Converts a Real to double. | |
| Integer | toInteger (Real r) |
Converts a Real to Integer. | |
| Int64 | toInt64 (Real r) |
Converts a Real to Int64. | |
| Int32 | toInt32 (Real r) |
Converts a Real to Int32. | |
| bool | toBool (Real r) |
Converts a Real to Integer. | |
| Real | toReal (Real r) |
Converts r to a Real. | |
| Real | toReal (int r) |
Converts r to a Real. | |
| Real | toReal (unsigned int r) |
Converts r to a Real. | |
| Real | toReal (long r) |
Converts r to a Real. | |
| Real | toReal (unsigned long r) |
Converts r to a Real. | |
| Real | toReal (long long r) |
Converts r to a Real. | |
| Real | toReal (unsigned long long r) |
Converts r to a Real. | |
Functions to convert one type to another.
|
inline |
Definition at line 115 of file arccore/src/base/arccore/base/Convert.h.
References toDouble().
|
inline |
Converts a Real to double.
Definition at line 71 of file arccore/src/base/arccore/base/Convert.h.
Referenced by Arcane::math::axisSymmetric(), Arcane::math::log(), Arcane::math::planarSymmetric(), Arcane::math::pow(), Arcane::math::sqrt(), toBool(), toInt32(), toInt64(), and toInteger().
|
extern |
Converts a byte array to its hexadecimal representation.
Each byte of input is converted into two hexadecimal characters, belonging to [0-9a-f].
Definition at line 71 of file arcane/src/arcane/utils/Convert.cc.
References Arcane::asBytes().
Referenced by Arcane::MeshUtils::checkUniqueIdsHashCollective(), and toHexaString().
Converts a 64-bit integer to its hexadecimal representation.
Each byte of input is converted into two hexadecimal characters, belonging to [0-9a-f]. The output array must have at least 16 elements.
Definition at line 80 of file arcane/src/arcane/utils/Convert.cc.
Converts a real number to its hexadecimal representation.
Each byte of input is converted into two hexadecimal characters, belonging to [0-9a-f].
Definition at line 94 of file arcane/src/arcane/utils/Convert.cc.
References toHexaString().
Converts a byte array to its hexadecimal representation.
Each byte of input is converted into two hexadecimal characters, belonging to [0-9a-f].
Definition at line 62 of file arcane/src/arcane/utils/Convert.cc.
Definition at line 105 of file arccore/src/base/arccore/base/Convert.h.
References toDouble().
Referenced by Arcane::CartesianMeshImpl::reduceNbGhostLayers().
Definition at line 95 of file arccore/src/base/arccore/base/Convert.h.
References toDouble().
Referenced by Arcane::Parallel::Stat::print().
Definition at line 85 of file arccore/src/base/arccore/base/Convert.h.
References toDouble().
|
inline |
Converts r to a Real.
Definition at line 129 of file arccore/src/base/arccore/base/Convert.h.
|
inline |
Converts r to a Real.
Definition at line 157 of file arccore/src/base/arccore/base/Convert.h.
|
inline |
Converts r to a Real.
Definition at line 143 of file arccore/src/base/arccore/base/Convert.h.
Converts r to a Real.
Definition at line 122 of file arccore/src/base/arccore/base/Convert.h.
|
inline |
Converts r to a Real.
Definition at line 136 of file arccore/src/base/arccore/base/Convert.h.
|
inline |
Converts r to a Real.
Definition at line 168 of file arccore/src/base/arccore/base/Convert.h.
|
inline |
Converts r to a Real.
Definition at line 150 of file arccore/src/base/arccore/base/Convert.h.