HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_FloatTupleAdapter Class Reference

#include <GA_FloatTupleAdapter.h>

Public Member Functions

 GA_FloatTupleAdapter (const GA_Attribute *attr, int size)
 
GA_AttributeRefMapgetList ()
 
GA_OffsetgetResults ()
 
void extractToFloats (float *data, int asize)
 
template<typename T >
void extract (T *data)
 Extract to a templated type, which must have value_type of float. More...
 

Detailed Description

Definition at line 24 of file GA_FloatTupleAdapter.h.

Constructor & Destructor Documentation

GA_FloatTupleAdapter::GA_FloatTupleAdapter ( const GA_Attribute attr,
int  size 
)
inline

Create a float tuple adapter for a given attribute. The attribute should be a float tuple. This operation will allocate temporary storage for size results.

Definition at line 30 of file GA_FloatTupleAdapter.h.

Member Function Documentation

template<typename T >
void GA_FloatTupleAdapter::extract ( T data)
inline

Extract to a templated type, which must have value_type of float.

Definition at line 65 of file GA_FloatTupleAdapter.h.

void GA_FloatTupleAdapter::extractToFloats ( float *  data,
int  asize 
)
inline

Extract results to a float array. The float array has stride specified by asize.

Definition at line 50 of file GA_FloatTupleAdapter.h.

GA_AttributeRefMap& GA_FloatTupleAdapter::getList ( )
inline

Definition at line 45 of file GA_FloatTupleAdapter.h.

GA_Offset* GA_FloatTupleAdapter::getResults ( )
inline

Definition at line 46 of file GA_FloatTupleAdapter.h.


The documentation for this class was generated from the following file: