AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "CircularBuffer.h"
Public Member Functions | |
CircularBuffer (std::size_t size) | |
void | put (T item) |
bool | empty () const |
bool | full () const |
std::size_t | capacity () const |
std::size_t | size () const |
std::vector< T > | content () |
T | peak_back () |
Private Attributes | |
std::mutex | mutex_ |
std::unique_ptr< T[]> | buf_ |
std::size_t | head_ = 0 |
std::size_t | tail_ = 0 |
const std::size_t | max_size_ |
bool | full_ = false |
|
inlineexplicit |
|
inline |
References CircularBuffer< T >::max_size_.
|
inline |
References CircularBuffer< T >::buf_, CircularBuffer< T >::mutex_, and CircularBuffer< T >::size().
Referenced by WorldSession::ComputeNewClockDelta().
|
inline |
References CircularBuffer< T >::full_, CircularBuffer< T >::head_, and CircularBuffer< T >::tail_.
Referenced by CircularBuffer< T >::peak_back().
|
inline |
References CircularBuffer< T >::full_.
|
inline |
References CircularBuffer< T >::buf_, CircularBuffer< T >::empty(), CircularBuffer< T >::mutex_, and CircularBuffer< T >::tail_.
Referenced by WorldSession::ComputeNewClockDelta().
|
inline |
References CircularBuffer< T >::buf_, CircularBuffer< T >::full_, CircularBuffer< T >::head_, CircularBuffer< T >::max_size_, CircularBuffer< T >::mutex_, and CircularBuffer< T >::tail_.
Referenced by WorldSession::HandleTimeSyncResp().
|
inline |
References CircularBuffer< T >::full_, CircularBuffer< T >::head_, CircularBuffer< T >::max_size_, CircularBuffer< T >::size(), and CircularBuffer< T >::tail_.
Referenced by CircularBuffer< T >::content(), and CircularBuffer< T >::size().
|
private |
Referenced by CircularBuffer< T >::content(), CircularBuffer< T >::peak_back(), and CircularBuffer< T >::put().
|
private |
|
private |
Referenced by CircularBuffer< T >::empty(), CircularBuffer< T >::put(), and CircularBuffer< T >::size().
|
private |
Referenced by CircularBuffer< T >::capacity(), CircularBuffer< T >::put(), and CircularBuffer< T >::size().
|
private |
Referenced by CircularBuffer< T >::content(), CircularBuffer< T >::peak_back(), and CircularBuffer< T >::put().
|
private |