GT/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>

Go to the source code of this file.

Classes

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

Typedefs

typedef GT_DANumeric< uint8,
GT_STORE_UINT8 > 
GT_Unsigned8Array
typedef GT_DANumeric< int32,
GT_STORE_INT32 > 
GT_Int32Array
typedef GT_DANumeric< int64,
GT_STORE_INT64 > 
GT_Int64Array
typedef GT_DANumeric< fpreal16,
GT_STORE_REAL16 > 
GT_Real16Array
typedef GT_DANumeric< fpreal32,
GT_STORE_REAL32 > 
GT_Real32Array
typedef GT_DANumeric< fpreal64,
GT_STORE_REAL64 > 
GT_Real64Array

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

typedef GT_DANumeric<int32, GT_STORE_INT32> GT_Int32Array

Definition at line 348 of file GT_DANumeric.h.

typedef GT_DANumeric<int64, GT_STORE_INT64> GT_Int64Array

Definition at line 349 of file GT_DANumeric.h.

typedef GT_DANumeric<fpreal16, GT_STORE_REAL16> GT_Real16Array

Definition at line 350 of file GT_DANumeric.h.

typedef GT_DANumeric<fpreal32, GT_STORE_REAL32> GT_Real32Array

Definition at line 351 of file GT_DANumeric.h.

typedef GT_DANumeric<fpreal64, GT_STORE_REAL64> GT_Real64Array

Definition at line 352 of file GT_DANumeric.h.

typedef GT_DANumeric<uint8, GT_STORE_UINT8> GT_Unsigned8Array

Definition at line 347 of file GT_DANumeric.h.


Function Documentation

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

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.


Generated on Thu Jan 31 00:28:54 2013 for HDK by  doxygen 1.5.9