ArcdpsExtension
 
Loading...
Searching...
No Matches
ArcdpsExtension::RingBuffer< T, Allocator > Class Template Reference

#include <SimpleRingBuffer.h>

Classes

class  RingBufferIterator
 

Public Member Functions

 RingBuffer (size_t pInitialCapacity)
 
virtual ~RingBuffer ()
 
 RingBuffer (const RingBuffer &pOther)
 
 RingBuffer (RingBuffer &&pOther) noexcept
 
RingBufferoperator= (const RingBuffer &pOther)
 
RingBufferoperator= (RingBuffer &&pOther) noexcept
 
void PushBack (T &&pElement)
 
void PushBack (const T &pElement)
 
template<typename... Args>
void EmplaceBack (const Args &... args)
 
T & Back ()
 
const T & Back () const
 
void Clear ()
 
size_t Size () const
 
void Resize (size_t pNewCapacity)
 
const T & operator[] (size_t pNum) const
 
T & operator[] (size_t pNum)
 
RingBufferIterator begin ()
 
RingBufferIterator end ()
 
const RingBufferIterator begin () const
 
const RingBufferIterator end () const
 
const RingBufferIterator cbegin () const
 
const RingBufferIterator cend () const
 
RingBufferIterator rbegin ()
 
RingBufferIterator rend ()
 
const RingBufferIterator rbegin () const
 
const RingBufferIterator rend () const
 
const RingBufferIterator crbegin () const
 
const RingBufferIterator crend () const
 

Detailed Description

template<typename T, typename Allocator = std::allocator<T>>
class ArcdpsExtension::RingBuffer< T, Allocator >
Template Parameters
TThe type that this buffer holds.

Constructor & Destructor Documentation

◆ RingBuffer() [1/3]

template<typename T , typename Allocator = std::allocator<T>>
ArcdpsExtension::RingBuffer< T, Allocator >::RingBuffer ( size_t  pInitialCapacity)
inlineexplicit

◆ ~RingBuffer()

template<typename T , typename Allocator = std::allocator<T>>
virtual ArcdpsExtension::RingBuffer< T, Allocator >::~RingBuffer ( )
inlinevirtual

◆ RingBuffer() [2/3]

template<typename T , typename Allocator = std::allocator<T>>
ArcdpsExtension::RingBuffer< T, Allocator >::RingBuffer ( const RingBuffer< T, Allocator > &  pOther)
inline

◆ RingBuffer() [3/3]

template<typename T , typename Allocator = std::allocator<T>>
ArcdpsExtension::RingBuffer< T, Allocator >::RingBuffer ( RingBuffer< T, Allocator > &&  pOther)
inlinenoexcept

Member Function Documentation

◆ Back() [1/2]

template<typename T , typename Allocator >
T & ArcdpsExtension::RingBuffer< T, Allocator >::Back ( )

◆ Back() [2/2]

template<typename T , typename Allocator >
const T & ArcdpsExtension::RingBuffer< T, Allocator >::Back ( ) const

◆ begin() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::begin ( )
inline

◆ begin() [2/2]

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::begin ( ) const
inline

◆ cbegin()

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::cbegin ( ) const
inline

◆ cend()

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::cend ( ) const
inline

◆ Clear()

template<typename T , typename Allocator >
void ArcdpsExtension::RingBuffer< T, Allocator >::Clear ( )

◆ crbegin()

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::crbegin ( ) const
inline

◆ crend()

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::crend ( ) const
inline

◆ EmplaceBack()

template<typename T , typename Allocator >
template<typename... Args>
void ArcdpsExtension::RingBuffer< T, Allocator >::EmplaceBack ( const Args &...  args)

◆ end() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::end ( )
inline

◆ end() [2/2]

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::end ( ) const
inline

◆ operator=() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
RingBuffer & ArcdpsExtension::RingBuffer< T, Allocator >::operator= ( const RingBuffer< T, Allocator > &  pOther)
inline

◆ operator=() [2/2]

template<typename T , typename Allocator = std::allocator<T>>
RingBuffer & ArcdpsExtension::RingBuffer< T, Allocator >::operator= ( RingBuffer< T, Allocator > &&  pOther)
inlinenoexcept

◆ operator[]() [1/2]

template<typename T , typename Allocator >
T & ArcdpsExtension::RingBuffer< T, Allocator >::operator[] ( size_t  pNum)

◆ operator[]() [2/2]

template<typename T , typename Allocator >
const T & ArcdpsExtension::RingBuffer< T, Allocator >::operator[] ( size_t  pNum) const

◆ PushBack() [1/2]

template<typename T , typename Allocator >
void ArcdpsExtension::RingBuffer< T, Allocator >::PushBack ( const T &  pElement)

◆ PushBack() [2/2]

template<typename T , typename Allocator >
void ArcdpsExtension::RingBuffer< T, Allocator >::PushBack ( T &&  pElement)

◆ rbegin() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::rbegin ( )
inline

◆ rbegin() [2/2]

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::rbegin ( ) const
inline

◆ rend() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::rend ( )
inline

◆ rend() [2/2]

template<typename T , typename Allocator = std::allocator<T>>
const RingBufferIterator ArcdpsExtension::RingBuffer< T, Allocator >::rend ( ) const
inline

◆ Resize()

template<typename T , typename Allocator >
void ArcdpsExtension::RingBuffer< T, Allocator >::Resize ( size_t  pNewCapacity)

◆ Size()

template<typename T , typename Allocator >
size_t ArcdpsExtension::RingBuffer< T, Allocator >::Size ( ) const

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