Bullet Collision Detection & Physics Library
Public Member Functions | Private Attributes | List of all members
DoubleBuffer< T, size > Class Template Reference

DoubleBuffer. More...

#include <SpuDoubleBuffer.h>

Public Member Functions

bool isPending () const
 
 DoubleBuffer ()
 
void init ()
 
void backBufferDmaGet (uint64_t ea, unsigned int numBytes, unsigned int tag)
 
void backBufferDmaPut (uint64_t ea, unsigned int numBytes, unsigned int tag)
 
T * getFront ()
 
T * getBack ()
 
T * swapBuffers ()
 

Private Attributes

m_buffer0 [size]
 
m_buffer1 [size]
 
T * m_frontBuffer
 
T * m_backBuffer
 
unsigned int m_dmaTag
 
bool m_dmaPending
 

Detailed Description

template<class T, int size>
class DoubleBuffer< T, size >

DoubleBuffer.

Definition at line 26 of file SpuDoubleBuffer.h.

Constructor & Destructor Documentation

template<class T , int size>
DoubleBuffer< T, size >::DoubleBuffer ( )

Definition at line 61 of file SpuDoubleBuffer.h.

Member Function Documentation

template<class T , int size>
void DoubleBuffer< T, size >::backBufferDmaGet ( uint64_t  ea,
unsigned int  numBytes,
unsigned int  tag 
)

Definition at line 76 of file SpuDoubleBuffer.h.

template<class T , int size>
void DoubleBuffer< T, size >::backBufferDmaPut ( uint64_t  ea,
unsigned int  numBytes,
unsigned int  tag 
)

Definition at line 88 of file SpuDoubleBuffer.h.

template<class T , int size>
T * DoubleBuffer< T, size >::getBack ( )

Definition at line 104 of file SpuDoubleBuffer.h.

template<class T , int size>
T * DoubleBuffer< T, size >::getFront ( )

Definition at line 97 of file SpuDoubleBuffer.h.

template<class T , int size>
void DoubleBuffer< T, size >::init ( )

Definition at line 67 of file SpuDoubleBuffer.h.

template<class T, int size>
bool DoubleBuffer< T, size >::isPending ( ) const
inline

Definition at line 42 of file SpuDoubleBuffer.h.

template<class T , int size>
T * DoubleBuffer< T, size >::swapBuffers ( )

Definition at line 111 of file SpuDoubleBuffer.h.

Member Data Documentation

template<class T, int size>
T* DoubleBuffer< T, size >::m_backBuffer
private

Definition at line 37 of file SpuDoubleBuffer.h.

template<class T, int size>
T DoubleBuffer< T, size >::m_buffer0[size]
private

Definition at line 32 of file SpuDoubleBuffer.h.

template<class T, int size>
T DoubleBuffer< T, size >::m_buffer1[size]
private

Definition at line 33 of file SpuDoubleBuffer.h.

template<class T, int size>
bool DoubleBuffer< T, size >::m_dmaPending
private

Definition at line 40 of file SpuDoubleBuffer.h.

template<class T, int size>
unsigned int DoubleBuffer< T, size >::m_dmaTag
private

Definition at line 39 of file SpuDoubleBuffer.h.

template<class T, int size>
T* DoubleBuffer< T, size >::m_frontBuffer
private

Definition at line 36 of file SpuDoubleBuffer.h.


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