DDraceNetwork Docs
CTypedRingBuffer< T > Class Template Reference

#include <ringbuffer.h>

Inheritance diagram for CTypedRingBuffer< T >:
[legend]
Collaboration diagram for CTypedRingBuffer< T >:
[legend]

Public Member Functions

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 ()
 

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)
 

Member Function Documentation

◆ Allocate()

template<typename T >
T * CTypedRingBuffer< T >::Allocate ( int  Size)
inline

◆ First()

template<typename T >
T * CTypedRingBuffer< T >::First ( )
inline

◆ Last()

template<typename T >
T * CTypedRingBuffer< T >::Last ( )
inline

◆ Next()

template<typename T >
T * CTypedRingBuffer< T >::Next ( T *  pCurrent)
inline

◆ PopFirst()

template<typename T >
int CTypedRingBuffer< T >::PopFirst ( )
inline

◆ Prev()

template<typename T >
T * CTypedRingBuffer< T >::Prev ( T *  pCurrent)
inline

◆ SetPopCallback()

template<typename T >
void CTypedRingBuffer< T >::SetPopCallback ( std::function< void(T *pCurrent)>  PopCallback)
inline

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