12#ifndef ARCANE_CORE_RAWCOPY_H
13#define ARCANE_CORE_RAWCOPY_H
38 inline static void copy(T& dst,
const T& src) { dst = src; }
47 inline static void copy(T& dst,
const T& src) { dst = src; }
54 inline static void copy(T& dst,
const T& src) { dst = src; }
61 inline static void copy(T& dst,
const T& src) { dst = src; }
68 inline static void copy(T& dst,
const T& src) { dst = src; }
75 inline static void copy(T& dst,
const T& src) { dst = src; }
82#ifndef NO_USER_WARNING
83#warning "Using RawCopy for compact Variables"
90 inline static void copy(T& dst,
const T& src)
92 reinterpret_cast<Int64&
>(dst) =
reinterpret_cast<const Int64&
>(src);
100 inline static void copy(T& dst,
const T& src)
102 reinterpret_cast<Int64&
>(dst.x) =
reinterpret_cast<const Int64&
>(src.x);
103 reinterpret_cast<Int64&
>(dst.y) =
reinterpret_cast<const Int64&
>(src.y);
111 inline static void copy(T& dst,
const T& src)
113 reinterpret_cast<Int64&
>(dst.x) =
reinterpret_cast<const Int64&
>(src.x);
114 reinterpret_cast<Int64&
>(dst.y) =
reinterpret_cast<const Int64&
>(src.y);
115 reinterpret_cast<Int64&
>(dst.z) =
reinterpret_cast<const Int64&
>(src.z);
123 inline static void copy(T& dst,
const T& src)
125 reinterpret_cast<Int64&
>(dst.x.x) =
reinterpret_cast<const Int64&
>(src.x.x);
126 reinterpret_cast<Int64&
>(dst.x.y) =
reinterpret_cast<const Int64&
>(src.x.y);
127 reinterpret_cast<Int64&
>(dst.y.x) =
reinterpret_cast<const Int64&
>(src.y.x);
128 reinterpret_cast<Int64&
>(dst.y.y) =
reinterpret_cast<const Int64&
>(src.y.y);
136 inline static void copy(T& dst,
const T& src)
138 reinterpret_cast<Int64&
>(dst.x.x) =
reinterpret_cast<const Int64&
>(src.x.x);
139 reinterpret_cast<Int64&
>(dst.x.y) =
reinterpret_cast<const Int64&
>(src.x.y);
140 reinterpret_cast<Int64&
>(dst.x.z) =
reinterpret_cast<const Int64&
>(src.x.z);
141 reinterpret_cast<Int64&
>(dst.y.x) =
reinterpret_cast<const Int64&
>(src.y.x);
142 reinterpret_cast<Int64&
>(dst.y.y) =
reinterpret_cast<const Int64&
>(src.y.y);
143 reinterpret_cast<Int64&
>(dst.y.z) =
reinterpret_cast<const Int64&
>(src.y.z);
144 reinterpret_cast<Int64&
>(dst.z.x) =
reinterpret_cast<const Int64&
>(src.z.x);
145 reinterpret_cast<Int64&
>(dst.z.y) =
reinterpret_cast<const Int64&
>(src.z.y);
146 reinterpret_cast<Int64&
>(dst.z.z) =
reinterpret_cast<const Int64&
>(src.z.z);
156 inline static void copy(T& dst,
const T& src) { dst = src; }
163 inline static void copy(T& dst,
const T& src) { dst = src; }
170 inline static void copy(T& dst,
const T& src) { dst = src; }
177 inline static void copy(T& dst,
const T& src) { dst = src; }
184 inline static void copy(T& dst,
const T& src) { dst = src; }
191 inline static void copy(T& dst,
const T& src) { dst = src; }
198 inline static void copy(T& dst,
const T& src) { dst = src; }
205 inline static void copy(T& dst,
const T& src) { dst = src; }
Declarations of Arcane's general types.
Half-precision floating-point type.
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.
Unicode character string.
char * copy(char *to, const char *from)
Copies from into to.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int8_t Int8
Signed integer type of 8 bits.
std::int64_t Int64
Signed integer type of 64 bits.
std::int16_t Int16
Signed integer type of 16 bits.
double Real
Type representing a real number.
unsigned char Byte
Type of a byte.
float Float32
IEEE-753 single-precision floating-point type.
std::int32_t Int32
Signed integer type of 32 bits.