HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GT_DANumeric.h File Reference
#include "GT_API.h"
#include "GT_DataArray.h"
#include "GT_Memory.h"
#include <UT/UT_Assert.h>
#include <UT/UT_ArrayHelp.h>
#include <string.h>
+ Include dependency graph for GT_DANumeric.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GT_DANumeric< T >
 An array of numeric values (int32, int64, fpreal16, fpreal32, fpreal64) More...
 

Typedefs

using GT_Unsigned8Array = GT_DANumeric< uint8 >
 
using GT_UInt8Array = GT_Unsigned8Array
 
using GT_Int32Array = GT_DANumeric< int32 >
 
using GT_Int64Array = GT_DANumeric< int64 >
 
using GT_Real16Array = GT_DANumeric< fpreal16 >
 
using GT_Real32Array = GT_DANumeric< fpreal32 >
 
using GT_Real64Array = GT_DANumeric< fpreal64 >
 
using GT_RealArray = GT_DANumeric< fpreal >
 

Functions

GT_API GT_DataArrayGTallocateIntArray (const int64 *array, GT_Size size, int tuple_size=1)
 
GT_API GT_DataArrayGTallocateIntArray (const int32 *array, GT_Size size, int tuple_size=1)
 

Typedef Documentation

Definition at line 383 of file GT_DANumeric.h.

Definition at line 384 of file GT_DANumeric.h.

Examples:
RAY/RAY_DemoGT.C.

Definition at line 386 of file GT_DANumeric.h.

Definition at line 387 of file GT_DANumeric.h.

Definition at line 388 of file GT_DANumeric.h.

Definition at line 382 of file GT_DANumeric.h.

Definition at line 381 of file GT_DANumeric.h.

Function Documentation

GT_API GT_DataArray* GTallocateIntArray ( const int64 array,
GT_Size  size,
int  tuple_size = 1 
)

Return either an int64 or int32 array based on the contents of the array. That is, only allocate a 64 bit integer array if it's needed. For tuple sizes > 1, this function assumes that the array is an array of structs, rather than a struct of arrays.

GT_API GT_DataArray* GTallocateIntArray ( const int32 array,
GT_Size  size,
int  tuple_size = 1 
)