DArray

Undocumented in source.

Constructors

this
this(Args args)
Undocumented in source.

Members

Functions

capacity
size_t capacity()
Undocumented in source. Be warned that the author may not have intended to support it.
insertBack
void insertBack(S t)
void insertBack(S s)
void insertBack(S defaultValue, size_t num)

This function inserts an S element at the back if there is space. Otherwise the behaviour is undefined.

insertFront
void insertFront(S t)

This function inserts an S element at the front if there is space. Otherwise the behaviour is undefined.

opIndex
T opIndex(size_t idx)
const(T) opIndex(size_t idx)

Use an index to access the array.

opSlice
DArraySlice!(typeof(this), T) opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
DArraySlice!(typeof(this), T) opSlice(size_t low, size_t high)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto opSlice(size_t low, size_t high)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(ulong idx)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAll
void removeAll()

This function removes all elements from the array.

removeBack
void removeBack()

This function removes an element form the back of the array.

removeFront
void removeFront()

This function removes an element form the front of the array.

Properties

back
T back [@property getter]

Access the last or the first element of the array.

back
const(T) back [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]

Gives the length of the array.

front
T front [@property getter]

Access the last or the first element of the array.

front
const(T) front [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]

Gives the length of the array.

Variables

base
long base;
Undocumented in source.
data
T[] data;
Undocumented in source.
len
long len;
Undocumented in source.

Meta