Public Member Functions | |
| gVar () | |
| creates a gVar object. | |
| gVar (gVarHandle var) | |
| creates a gVar object from a Libra C API gVarHandle. | |
| gVar (int rowCount, int columnCount, gDataType type=GDEFAULT) | |
| creates an MxN array. | |
| gVar (const gVar &var) | |
| creates a gVar from another Libra gVar. | |
| gVar & | operator= (const gVar &var) |
| assigns a Libra object to this object. | |
| gVar & | operator= (const gVarHandle var) |
| assigns a gVar object to this object. | |
| gVar | operator= (double value) |
| assigns a scalar to this object. | |
| gVar | operator= (float value) |
| assigns a scalar ot this object. | |
| gVar | operator= (int value) |
| assigns a scalar ot this object. | |
| gVar | operator= (bool value) |
| assigns a scalar ot this object. | |
| gVar | operator() (gVar &rowIndices, gVar &columnIndices) |
| returns a subarray of a gVar | |
| operator float () const | |
| returns the value of a scalar | |
| operator int () const | |
| returns the value of a scalar | |
| void | setData (const int *data) |
| sets the elements of an gVar from an integer array | |
| void | setData (const float *data) |
| sets the elements of an gVar from an float array | |
| void | setData (const double *data) |
| sets the elements of an gVar from an double array | |
| void | getData (int *data, const unsigned int byteOffset=0, const unsigned int byteCount=0, void(__cdecl *callFunc)(int *mem, void *userData)=0, void *userData=0) |
| gets the elements of an gVar and writes them into an int array | |
| void | getData (float *data, const unsigned int byteOffset=0, const unsigned int byteCount=0, void(__cdecl *callFunc)(float *mem, void *userData)=0, void *userData=0) |
| gets the elements of an gVar and writes them into an float array | |
| void | getData (double *data, const unsigned int byteOffset=0, const unsigned int byteCount=0, void(__cdecl *callFunc)(double *mem, void *userData)=0, void *userData=0) |
| gets the elements of an gVar and writes them into an double array | |
| const gVarHandle | getHandle () const |
| gets the Libra C API gVarHandle of an gVar. | |
| void | print () const |
| print the elements of an object. | |
| int | rowCount () const |
| returns the rowCount of an gVar. | |
| int | columnCount () const |
| returns the columnCount of an gVar. | |
| int | elementCount () const |
| get the number of elements from an object. | |
| gDataType | dataType () const |
| get the gDataType of elements from an object. | |
| int | dimensionCount () const |
| get the number of dimensions from an object. | |
When a gVar represents a matrix, the array mem will be interpreted as column major data.
| gVar | ( | ) |
| gVar | ( | gVarHandle | var | ) |
creates an MxN array.
| rowCount | number of rows to be created. | |
| columnCount | number of columns to be created. | |
| type | specifies the data type for the elements. |
assigns a Libra object to this object.
| var | the source object to assign. |
| gVar & operator= | ( | const gVarHandle | var | ) |
| gVar & operator= | ( | double | value | ) |
assigns a scalar to this object.
| value | the source scalar to assign. |
| gVar & operator= | ( | float | value | ) |
assigns a scalar ot this object.
| value | the source scalar to assign. |
| gVar & operator= | ( | int | value | ) |
assigns a scalar ot this object.
| value | the source scalar to assign. |
| gVar & operator= | ( | bool | value | ) |
assigns a scalar ot this object.
| value | the source scalar to assign. |
| operator float | ( | ) | const |
returns the value of a scalar
| operator int | ( | ) | const |
returns the value of a scalar
| void setData | ( | const int * | data | ) |
sets the elements of an gVar from an integer array
| data | adress of the memory from where to fetch the integer data. |
| void setData | ( | const float * | data | ) |
sets the elements of an gVar from an float array
| data | adress of the memory from where to fetch the floating point data. |
| void setData | ( | const double * | data | ) |
sets the elements of an gVar from an double array
| data | adress of the memory from where to fetch the double precision data. |
| void getData | ( | int * | data, | |
| const unsigned int | byteOffset = 0, |
|||
| const unsigned int | byteCount = 0, |
|||
| void(__cdecl *callFunc)(int *mem, void *userData) | = 0, |
|||
| void * | userData = 0 | |||
| ) |
gets the elements of an gVar and writes them into an int array
| data | adress of the memory to where to put the integer data. | |
| byteOffset | a byte offset to the object's data. 0 offset is default. | |
| byteCount | a byte count defining amount of data in bytes to retrieve. 0 byte count means all object data. | |
| userData | user-supplied data passed back to callback. |
| void getData | ( | float * | data, | |
| const unsigned int | byteOffset = 0, |
|||
| const unsigned int | byteCount = 0, |
|||
| void(__cdecl *callFunc)(float *mem, void *userData) | = 0, |
|||
| void * | userData = 0 | |||
| ) |
gets the elements of an gVar and writes them into an float array
| data | adress of the memory to where to put the float data. | |
| byteOffset | a byte offset to the object's data. 0 offset is default. | |
| byteCount | a byte count defining amount of data in bytes to retrieve. 0 byte count means all object data. | |
| userData | user-supplied data passed back to callback. |
| void getData | ( | double * | data, | |
| const unsigned int | byteOffset = 0, |
|||
| const unsigned int | byteCount = 0, |
|||
| void(__cdecl *callFunc)(double *mem, void *userData) | = 0, |
|||
| void * | userData = 0 | |||
| ) |
gets the elements of an gVar and writes them into an double array
| data | adress of the memory to where to put the double precision data. | |
| byteOffset | a byte offset to the object's data. 0 offset is default. | |
| byteCount | a byte count defining amount of data in bytes to retrieve. 0 byte count means all object data. | |
| userData | user-supplied data passed back to callback. |
| const gVarHandle getHandle | ( | ) | const |
| void print | ( | ) | const |
print the elements of an object.
Elements are printed to std::out. On Windows, also to Debugger Output Window.
| int rowCount | ( | ) | const |
| int columnCount | ( | ) | const |
| int elementCount | ( | ) | const |
get the number of elements from an object.
| gDataType dataType | ( | ) | const |
get the gDataType of elements from an object.
| int dimensionCount | ( | ) | const |
get the number of dimensions from an object.
1.5.2