Stack

Undocumented in source.

Alias This

stack

Members

Aliases

Element
alias Element = Tuple!(T, "data", uint, "depth")
Undocumented in source.

Functions

back
T 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.
isParent
uint isParent(K k)

The depth of the parent that is furthest away or in other words closest to zero.

pop
void pop()
Undocumented in source. Be warned that the author may not have intended to support it.
popUntil
auto popUntil(uint depth)

It is important that it removes up to and including the specified depth because the stack is used when doing depth first search. Each call to popUntil is expected to remove a layer. New nodes are then added to the parent which is the first one from the previous layer.

put
void put(T a, uint depth)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

stack
Vector!Element stack;
Undocumented in source.

Meta