7 #ifndef _QITYPE_DETAILS_TYPEINT_HXX_
8 #define _QITYPE_DETAILS_TYPEINT_HXX_
9 #include <boost/type_traits/is_signed.hpp>
23 return *(T*)ImplType::Access::ptrFromStorage(&value);
28 *(T*)ImplType::Access::ptrFromStorage(storage) = (T)value;
31 virtual unsigned int size()
38 return boost::is_signed<T>::value;
51 return *(T*)ImplType::Access::ptrFromStorage(&value);
56 *(T*)ImplType::Access::ptrFromStorage(storage) = (T)(value != 0);
59 virtual unsigned int size()
84 virtual double get(
void* value)
86 return *(T*)ImplType::Access::ptrFromStorage(&value);
89 virtual void set(
void** storage,
double value)
91 *(T*)ImplType::Access::ptrFromStorage(storage) = (T)value;
94 virtual unsigned int size()
106 #endif // _QITYPE_DETAILS_TYPEINT_HXX_
virtual unsigned int size()
Return the size in bytes.
detail::TypeImplMethodsBySize< T >::type ImplType
detail::TypeImplMethodsBySize< T >::type ImplType
detail::TypeImplMethodsBySize< T >::type ImplType
virtual void set(void **storage, int64_t value)
Set the value of the integer.
virtual unsigned int size()
Return the size in bytes.
virtual unsigned int size()
Return the size in bytes.
virtual bool isSigned()
Return true if the integer is signed.
_QI_BOUNCE_TYPE_METHODS(ImplType)
virtual void set(void **storage, int64_t value)
Set the value of the integer.
virtual bool isSigned()
Return true if the integer is signed.
_QI_BOUNCE_TYPE_METHODS(ImplType)
virtual void set(void **storage, double value)
Set the value of the float.
int64_t int64_t
Cross-platform signed integer of length 64 bits (8 bytes).
_QI_BOUNCE_TYPE_METHODS(ImplType)