68 using ValueType = DataType;
80 operator=(
const DataType& v)
94 static ARCCORE_HOST_DEVICE AccessorReturnType build(DataType* ptr)
96 return AccessorReturnType(ptr);
104 operator+=(
const DataType& v)
106 *m_ptr = (*m_ptr) + v;
112 *m_ptr = (*m_ptr) + *(v.m_ptr);
118 operator-=(
const DataType& v)
120 *m_ptr = (*m_ptr) - v;
126 *m_ptr = (*m_ptr) - *(v.m_ptr);
132 operator*=(
const DataType& v)
134 *m_ptr = (*m_ptr) * v;
140 *m_ptr = (*m_ptr) * *(v.m_ptr);
146 operator/=(
const DataType& v)
148 *m_ptr = (*m_ptr) / v;
154 *m_ptr = (*m_ptr) / *(v.m_ptr);
160 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentX()>>
165 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentY()>>
170 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentZ()>>
176 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentXX()>>
177 ARCCORE_HOST_DEVICE
void setXX(Real value)
181 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentYX()>>
182 ARCCORE_HOST_DEVICE
void setYX(Real value)
186 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentZX()>>
187 ARCCORE_HOST_DEVICE
void setZX(Real value)
192 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentXY()>>
193 ARCCORE_HOST_DEVICE
void setXY(Real value)
197 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentYY()>>
198 ARCCORE_HOST_DEVICE
void setYY(Real value)
202 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentZY()>>
203 ARCCORE_HOST_DEVICE
void setZY(Real value)
208 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentXZ()>>
209 ARCCORE_HOST_DEVICE
void setXZ(Real value)
213 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentYZ()>>
214 ARCCORE_HOST_DEVICE
void setYZ(Real value)
218 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasComponentZZ()>>
219 ARCCORE_HOST_DEVICE
void setZZ(Real value)
223 template <typename X = DataType, typename = std::enable_if_t<DataTypeTraitsT<X>::HasSubscriptOperator()>>