FixedRingBuffer

TODO: clear ring buffer fields upon removal (to run struct destructors, if T is a struct)

Constructors

this
this(size_t capacity)
Undocumented in source.

Members

Aliases

put
alias put = putBack
Undocumented in source.
putN
alias putN = putBackN
Undocumented in source.

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()

Resets the capacity to zero and explicitly frees the memory for the buffer.

opApply
int opApply(int delegate(ref T itm) @(safe) del)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(size_t i, ref T itm) @(safe) del)

iterate through elements with index

opDollar
size_t opDollar()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(T) opIndex(size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
Range opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
Range opSlice(size_t from, size_t to)
Undocumented in source. Be warned that the author may not have intended to support it.
peek
inout(T)[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
peekDst
T[] peekDst()
Undocumented in source. Be warned that the author may not have intended to support it.
popBack
void popBack()
Undocumented in source. Be warned that the author may not have intended to support it.
popBackN
void popBackN(size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
void popFront()
Undocumented in source. Be warned that the author may not have intended to support it.
popFrontN
void popFrontN(size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.
putBack
void putBack(T itm)
Undocumented in source. Be warned that the author may not have intended to support it.
putBack
void putBack(TC[] itms)
Undocumented in source. Be warned that the author may not have intended to support it.
putBackN
void putBackN(size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.
putFront
void putFront(T itm)
Undocumented in source. Be warned that the author may not have intended to support it.
read
void read(T[] dst)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAt
void removeAt(Range r)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

back
inout(T) back [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
capacity
size_t capacity [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
capacity
size_t capacity [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
freeSpace
size_t freeSpace [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
front
inout(T) front [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
full
bool full [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Range
struct Range
Undocumented in source.

Meta