11 #ifndef __GT_DAValue__
12 #define __GT_DAValue__
30 , myTupleSize(tuple_size)
38 const char *
className()
const override {
return "GT_DAValues"; }
40 {
return myData ==
data; }
45 {
return GTstorage<T>(); }
47 {
return myTupleSize; }
49 {
return sizeof(*this); }
57 offset = offset * myTupleSize +
index;
58 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
63 offset = offset * myTupleSize +
index;
64 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
69 offset = offset * myTupleSize +
index;
70 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
75 offset = offset * myTupleSize +
index;
76 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
81 offset = offset * myTupleSize +
index;
82 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
87 offset = offset * myTupleSize +
index;
88 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
110 const T *
data = myData + offset*myTupleSize;
111 UT_ASSERT_P(offset < mySize && size <= myTupleSize);
112 if constexpr (SYSisSame<T, U>())
118 for (
int i = 0; i <
size; i++)
GLenum GLuint GLenum GLsizei const GLchar * buf
fpreal32 getF32(GT_Offset offset, int index=0) const override
bool getPointerAliasing(const void *data) const override
Return "true" if there's pointer aliasing.
GT_Offset getDictIndex(GT_Offset, int) const override
GT_DAValues< int64 > GT_I64Values
GT_Size entries() const override
int64 getI64(GT_Offset offset, int index=0) const override
GT_Size getStringIndexCount() const override
GT_DAValues< fpreal16 > GT_F16Values
GT_DAValues(const T *values, GT_Size array_size, int tuple_size, GT_Type type=GT_TYPE_NONE)
GT_DAValues< fpreal64 > GT_F64Values
const T * getData() const
const char * className() const override
GLint GLint GLsizei GLint GLenum GLenum type
Abstract data class for an array of float, int or string data.
const U * getT(GT_Offset offset, SYS_MAYBE_UNUSED U *buf, int size) const
GT_Offset getStringIndex(GT_Offset, int) const override
static const UT_StringHolder theEmptyString
GT_DAValues< int32 > GT_I32Values
GT_DAValues< fpreal32 > GT_F32Values
GT_Type getTypeInfo() const override
GT_Storage getStorage() const override
fpreal16 getF16(GT_Offset offset, int index=0) const override
fpreal64 getF64(GT_Offset offset, int index=0) const override
uint8 getU8(GT_Offset offset, int index=0) const override
GLenum GLsizei GLsizei GLint * values
int64 getMemoryUsage() const override
GT_Size getDictIndexCount() const override
GT_String getS(GT_Offset, int) const override
void getIndexedStrings(UT_StringArray &, UT_IntArray &) const override
void getIndexedDicts(UT_Array< UT_OptionsHolder > &, UT_IntArray &) const override
An array of const values.
int32 getI32(GT_Offset offset, int index=0) const override
GT_Size getTupleSize() const override