11 #ifndef __GT_DAValue__
12 #define __GT_DAValue__
29 , myTupleSize(tuple_size)
37 const char *
className()
const override {
return "GT_DAValues"; }
39 {
return myData ==
data; }
44 {
return GTstorage<T>(); }
46 {
return myTupleSize; }
48 {
return sizeof(*this); }
56 offset = offset * myTupleSize +
index;
57 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
62 offset = offset * myTupleSize +
index;
63 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
68 offset = offset * myTupleSize +
index;
69 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
74 offset = offset * myTupleSize +
index;
75 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
80 offset = offset * myTupleSize +
index;
81 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
86 offset = offset * myTupleSize +
index;
87 UT_ASSERT_P(offset>=0 && offset<mySize*myTupleSize);
109 const T *
data = myData + offset*myTupleSize;
110 UT_ASSERT_P(offset < mySize && size <= myTupleSize);
111 if constexpr (SYSisSame<T, U>())
117 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
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