RingBuffer

Undocumented in source.

Constructors

this
this(size_t n)

initializes round buffer of size n

Postblit

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

Members

Aliases

first
alias first = front
Undocumented in source.
is_empty
alias is_empty = empty
Undocumented in source.
last
alias last = back
Undocumented in source.

Functions

back
auto ref back()
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty()
Undocumented in source. Be warned that the author may not have intended to support it.
front
auto ref front()
Undocumented in source. Be warned that the author may not have intended to support it.
get_at
T get_at(RingBufferIndex idx)
Undocumented in source. Be warned that the author may not have intended to support it.
in_range
bool in_range(RingBufferIndex idx)
Undocumented in source. Be warned that the author may not have intended to support it.
is_full
bool is_full()
Undocumented in source. Be warned that the author may not have intended to support it.
is_tail
bool is_tail(RingBufferIndex idx)
Undocumented in source. Be warned that the author may not have intended to support it.
is_valid
bool is_valid(RingBufferIndex idx)
Undocumented in source. Be warned that the author may not have intended to support it.
length
ulong length()
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
RingBufferIndex popFront()
Undocumented in source. Be warned that the author may not have intended to support it.
popped
ulong popped()
Undocumented in source. Be warned that the author may not have intended to support it.
pushed
ulong pushed()
Undocumented in source. Be warned that the author may not have intended to support it.
put
RingBufferIndex put(T item)

Puts item on the stack and returns the index

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
update_at
void update_at(RingBufferIndex idx, T item)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

cleanup
void cleanup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
stats
string stats [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_head
RingBufferIndex _head;
Undocumented in source.
_items
T[] _items;
Undocumented in source.
_tail
RingBufferIndex _tail;
Undocumented in source.
max_size
size_t max_size;
Undocumented in source.

Meta