GB_AttributeBuffer Class Reference

This class provides a convenient temporary buffer for attribute data without the need to worry about memory management. More...

#include <GB_AttributeBuffer.h>

List of all members.

Public Member Functions

 GB_AttributeBuffer ()
 Default constructor.
 ~GB_AttributeBuffer ()
 Destructor.
fpreal64asF64 (int count)
fpreal32asF32 (int count)
int64asI64 (int count)
int32asI32 (int count)
UT_Vector3asV3 (int count)
UT_Vector4asV4 (int count)
UT_Matrix3asM3 (int count)
UT_Matrix4asM4 (int count)
template<typename T >
T * asType (int count)


Detailed Description

This class provides a convenient temporary buffer for attribute data without the need to worry about memory management.

This class is intended primarily as an abstraction of a temporary data buffer, and as such, does NOT preserve data across memory reallocation.

Definition at line 40 of file GB_AttributeBuffer.h.


Constructor & Destructor Documentation

GB_AttributeBuffer::GB_AttributeBuffer (  )  [inline]

Default constructor.

Definition at line 43 of file GB_AttributeBuffer.h.

GB_AttributeBuffer::~GB_AttributeBuffer (  )  [inline]

Destructor.

Definition at line 46 of file GB_AttributeBuffer.h.


Member Function Documentation

fpreal32* GB_AttributeBuffer::asF32 ( int  count  )  [inline]

Definition at line 55 of file GB_AttributeBuffer.h.

fpreal64* GB_AttributeBuffer::asF64 ( int  count  )  [inline]

Definition at line 48 of file GB_AttributeBuffer.h.

int32* GB_AttributeBuffer::asI32 ( int  count  )  [inline]

Definition at line 70 of file GB_AttributeBuffer.h.

int64* GB_AttributeBuffer::asI64 ( int  count  )  [inline]

Definition at line 63 of file GB_AttributeBuffer.h.

UT_Matrix3* GB_AttributeBuffer::asM3 ( int  count  )  [inline]

Definition at line 94 of file GB_AttributeBuffer.h.

UT_Matrix4* GB_AttributeBuffer::asM4 ( int  count  )  [inline]

Definition at line 102 of file GB_AttributeBuffer.h.

template<typename T >
T* GB_AttributeBuffer::asType ( int  count  )  [inline]

A template wrapper around the asFOO() methods, useful in template functions.

Definition at line 151 of file GB_AttributeBuffer.h.

UT_Vector3* GB_AttributeBuffer::asV3 ( int  count  )  [inline]

Definition at line 78 of file GB_AttributeBuffer.h.

UT_Vector4* GB_AttributeBuffer::asV4 ( int  count  )  [inline]

Definition at line 86 of file GB_AttributeBuffer.h.


Member Data Documentation

fpreal32 GB_AttributeBuffer::myF32[GB_ATTRIBBUF_INITIAL_SIZE_F32]

Definition at line 189 of file GB_AttributeBuffer.h.

fpreal64 GB_AttributeBuffer::myF64[GB_ATTRIBBUF_INITIAL_SIZE_F64]

Definition at line 188 of file GB_AttributeBuffer.h.

int32 GB_AttributeBuffer::myI32[GB_ATTRIBBUF_INITIAL_SIZE_I32]

Definition at line 191 of file GB_AttributeBuffer.h.

int64 GB_AttributeBuffer::myI64[GB_ATTRIBBUF_INITIAL_SIZE_I64]

Definition at line 190 of file GB_AttributeBuffer.h.

void* GB_AttributeBuffer::myPtr[GB_ATTRIBBUF_INITIAL_SIZE_PTR]

Definition at line 192 of file GB_AttributeBuffer.h.


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

Generated on Mon Jan 28 00:48:13 2013 for HDK by  doxygen 1.5.9