DDraceNetwork Docs
CDynamicRingBuffer< T > Class Template Reference

#include <ringbuffer.h>

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

Public Member Functions

 CDynamicRingBuffer (int Size, int Flags=0)
 
virtual ~CDynamicRingBuffer ()
 
void Init (int Size, int Flags)
 
- 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_pBuffer = nullptr
 

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

◆ CDynamicRingBuffer()

template<typename T >
CDynamicRingBuffer< T >::CDynamicRingBuffer ( int  Size,
int  Flags = 0 
)
inline

◆ ~CDynamicRingBuffer()

template<typename T >
virtual CDynamicRingBuffer< T >::~CDynamicRingBuffer ( )
inlinevirtual

Member Function Documentation

◆ Init()

template<typename T >
void CDynamicRingBuffer< T >::Init ( int  Size,
int  Flags 
)
inline

Member Data Documentation

◆ m_pBuffer

template<typename T >
unsigned char* CDynamicRingBuffer< T >::m_pBuffer = nullptr
private

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