17#ifndef AGXDATA_SCALAR_H
18#define AGXDATA_SCALAR_H
62 Scalar(
const T& value = T());
71 operator const T& ()
const;
117 template <
typename T>
121 #if AGX_DEBUG_INTRUSIVE()
125 return *
static_cast<T *
>(
m_ptr);
128 template <
typename T>
132 #if AGX_DEBUG_INTRUSIVE()
136 return *
static_cast<const T *
>(
m_ptr);
144 template <
typename T>
147 template <
typename T>
150 template <
typename T>
155 template <
typename T>
158 template <
typename T>
161 template <
typename T>
164 template <
typename T>
167 template <
typename T>
170 template <
typename T>
173 template <
typename T>
176 template <
typename T>
#define AGX_TEMPLATED_TYPE_BINDING(_Type, _Name)
Abstract representation of a scalar variable.
void setStorage(void *storage)
Set the memory area for the scalar.
const AbstractScalar & asScalar() const
T & operator[](size_t index)
static const bool IsScalar
Scalar< T > & operator=(const Scalar< T > &value)
Scalar(const T &value=T())
Contains classes for low level data storage for AGX.