17 #ifndef AGXDATA_SCALAR_H 18 #define AGXDATA_SCALAR_H 22 #include <agx/config/AGX_DEBUG_INTRUSIVE.h> 59 static const bool IsScalar =
true;
62 Scalar(
const T& value = T());
71 operator const T& ()
const;
77 T& operator[] (
size_t index);
78 const T& operator[] (
size_t index)
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>
AGXCORE_EXPORT Format * getFormat(const agx::String &typeFormatName)
void setStorage(void *storage)
Set the memory area for the scalar.
Scalar(const T &value=T())
Abstract representation of a scalar variable.
const AbstractScalar & asScalar() const
Contains classes for low level data storage for AGX.
#define AGX_TEMPLATED_TYPE_BINDING(_Type, _Name)
T & operator[](size_t index)
Scalar< T > & operator=(const Scalar< T > &value)