ArrayBuffer< T > Class Template Reference

A template buffer that holds an array of elements of type T. More...

Inheritance diagram for ArrayBuffer< T >:
Buffer

List of all members.

Public Member Functions

T * getData () const
 Gets the starting address of the inner array.
const size_t getParticleSize () const
 Gets the number of elements for a single particle.
size_t getDataSize () const
 Gets the total number of T in the inner array The value is equal to particleSize * nbParticles.

Detailed Description

template<class T>
class SPK::ArrayBuffer< T >

A template buffer that holds an array of elements of type T.

Since:
1.03.02

Definition at line 38 of file SPK_ArrayBuffer.h.


Member Function Documentation

T * getData (  )  const

Gets the starting address of the inner array.

Returns:
the starting address of the first element of the inner array

Definition at line 132 of file SPK_ArrayBuffer.h.

size_t getDataSize (  )  const

Gets the total number of T in the inner array The value is equal to particleSize * nbParticles.

Returns:
the total number of T in the inner array

Definition at line 144 of file SPK_ArrayBuffer.h.

const size_t getParticleSize (  )  const

Gets the number of elements for a single particle.

Returns:
the number of elements for a single particle

Definition at line 138 of file SPK_ArrayBuffer.h.


Generated on Wed Apr 27 21:09:25 2011 for SPARK Particle Engine by  doxygen 1.6.1