RingBufferNoGC

@nogc ring-buffer

Constructors

this
this(size_t initialCapacity)

Create a RingBuffer with specified initial capacity.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

back
T back()
capacity
size_t capacity()
clear
void clear()

Removes all items from the queue.

empty
bool empty()
Undocumented in source. Be warned that the author may not have intended to support it.
front
T front()
isFull
bool isFull()
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()
opApply
int opApply(int delegate(T) dg)
opIndex
T opIndex(size_t index)
opOpAssign
void opOpAssign(T x)

Implements the assignment operator using .pushBack()

popBack
T popBack()

Removes an item from the back of the queue.

popFront
T popFront()

Removes an item from the front of the queue.

pushBack
void pushBack(T x)

Adds an item on the back of the queue.

pushFront
void pushFront(T x)

Adds an item on the front of the queue.

Meta