DDraceNetwork Docs
CStaticRingBuffer< T, TSIZE, TFLAGS > Class Template Reference

#include <ringbuffer.h>

Inheritance diagram for CStaticRingBuffer< T, TSIZE, TFLAGS >:
[legend]
Collaboration diagram for CStaticRingBuffer< T, TSIZE, TFLAGS >:
[legend]

Public Member Functions

 CStaticRingBuffer ()
 
void Init ()
 
- Public Member Functions inherited from CTypedRingBuffer< T >
T * Allocate (int Size)
 
int PopFirst ()
 
void SetPopCallback (std::function< void(T *pCurrent)> PopCallback)
 
T * Prev (T *pCurrent)
 
T * Next (T *pCurrent)
 
T * First ()
 
T * Last ()
 
- Public Member Functions inherited from CRingBufferBase
void Clear ()
 

Private Attributes

unsigned char m_aBuffer [TSIZE]
 

Additional Inherited Members

- Public Types inherited from CRingBufferBase
enum  { FLAG_RECYCLE = 1 }
 
- Static Public Attributes inherited from CRingBufferBase
static constexpr int ITEM_SIZE = sizeof(CItem)
 
- Protected Member Functions inherited from CRingBufferBase
void * Allocate (int Size)
 
void * Prev (void *pCurrent)
 
void * Next (void *pCurrent)
 
void * First ()
 
void * Last ()
 
void Init (void *pMemory, int Size, int Flags)
 
int PopFirst ()
 
void SetPopCallback (const std::function< void(void *pCurrent)> PopCallback)
 

Constructor & Destructor Documentation

◆ CStaticRingBuffer()

template<typename T , int TSIZE, int TFLAGS = 0>
CStaticRingBuffer< T, TSIZE, TFLAGS >::CStaticRingBuffer ( )
inline

Member Function Documentation

◆ Init()

template<typename T , int TSIZE, int TFLAGS = 0>
void CStaticRingBuffer< T, TSIZE, TFLAGS >::Init ( )
inline

Member Data Documentation

◆ m_aBuffer

template<typename T , int TSIZE, int TFLAGS = 0>
unsigned char CStaticRingBuffer< T, TSIZE, TFLAGS >::m_aBuffer[TSIZE]
private

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