2#include <NDEVR/Buffer.h>
5 template<class t_type, class t_index_type = uint04, class t_memory_allocator = ObjectAllocator<ObjectInfo<t_type>::Primitive, t_index_type>,
class t_memory_manager = BufferAllocator<t_type ,t_index_type, false>>
6 class QueueBuffer :
protected Buffer<t_type, t_index_type, t_memory_allocator, t_memory_manager>
10 :
Buffer<t_type, t_index_type, t_memory_allocator, t_memory_manager>()
15 :
Buffer<t_type, t_index_type, t_memory_allocator, t_memory_manager>(buffer)
20 :
Buffer<t_type, t_index_type, t_memory_allocator, t_memory_manager>(buffer)
31 :
Buffer<t_type, t_index_type, t_memory_allocator, t_memory_manager>(
size)
47 void push(
const t_type&
object)
81 [[nodiscard]]
decltype(
auto)
front()
99 [[nodiscard]]
decltype(
auto)
front()
const
121 m_end = buffer.m_end;
128 m_end = buffer.m_end;
132 inline const t_type&
operator[](t_index_type value)
const noexcept
144 inline const t_type&
last()
const
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
constexpr Buffer()
Definition Buffer.hpp:66
Buffer & operator=(const Buffer &buffer)
Definition Buffer.hpp:1773
void add(t_type &&object)
Definition Buffer.hpp:199
constexpr t_memory_manager & memoryInterface()
Definition Buffer.hpp:2074
void removeAllIndex(t_index_type start, t_index_type end)
Definition Buffer.hpp:1205
static constexpr t_type Type()
Definition Buffer.hpp:2072
decltype(auto) get(t_index_type index)
Definition Buffer.hpp:857
Definition QueueBuffer.hpp:7
constexpr QueueBuffer(QueueBuffer &&buffer) noexcept
Definition QueueBuffer.hpp:24
QueueBuffer & operator=(const QueueBuffer &buffer) noexcept
Definition QueueBuffer.hpp:118
QueueBuffer & operator=(QueueBuffer &&buffer) noexcept
Definition QueueBuffer.hpp:125
constexpr t_memory_manager & memoryInterface()
Definition QueueBuffer.hpp:110
void checkMove()
Definition QueueBuffer.hpp:153
void pop()
Definition QueueBuffer.hpp:63
t_type & operator[](t_index_type value) noexcept
Definition QueueBuffer.hpp:136
constexpr const t_memory_manager & memoryInterface() const
Definition QueueBuffer.hpp:114
constexpr QueueBuffer(const Buffer< t_type, t_memory_allocator, t_memory_manager > &buffer)
Definition QueueBuffer.hpp:19
t_type & last()
Definition QueueBuffer.hpp:148
constexpr QueueBuffer()
Definition QueueBuffer.hpp:9
bool empty() const
Definition QueueBuffer.hpp:104
static constexpr t_type Type()
Definition QueueBuffer.hpp:108
decltype(auto) front() const
Definition QueueBuffer.hpp:99
uint04 size() const
Definition QueueBuffer.hpp:140
const t_type & last() const
Definition QueueBuffer.hpp:144
constexpr QueueBuffer(const QueueBuffer &buffer)
Definition QueueBuffer.hpp:14
uint04 m_start
Definition QueueBuffer.hpp:164
void clear()
Definition QueueBuffer.hpp:59
const t_type & operator[](t_index_type value) const noexcept
Definition QueueBuffer.hpp:132
uint04 m_end
Definition QueueBuffer.hpp:165
void push(t_type &&object)
Definition QueueBuffer.hpp:35
void push(const t_type &object)
Definition QueueBuffer.hpp:47
decltype(auto) front()
Definition QueueBuffer.hpp:81
QueueBuffer(uint04 size)
Definition QueueBuffer.hpp:30
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120