Wrapper for array that works as a stack.
More...
|
void | Push (T item) |
| Push an item to the end of the stack.
|
|
T | Pop () |
| Pop an item from the top of the stack.
|
|
T | Top () |
| Get the last inserted and topmost element without popping it from the stack.
|
|
T | Bottom () |
| Get the first inserted and topmost element without popping it from the stack.
|
|
bool | IsEmpty () |
|
int | Count () |
| Returns the count of elements stored in this stack.
|
|
Wrapper for array that works as a stack.
- items are stored as 'first in, last out'
- items inside are always ref, so bear that in mind
◆ Bottom()
Get the first inserted and topmost element without popping it from the stack.
- Returns
- the last inserted and topmost element, null if no element is present
◆ Count()
Returns the count of elements stored in this stack.
◆ IsEmpty()
- Returns
- true if stack is empty, false otherwise
◆ Pop()
Pop an item from the top of the stack.
- Returns
- the last inserted and topmost element, null if no element is present
◆ Push()
Push an item to the end of the stack.
- Parameters
-
◆ Top()
Get the last inserted and topmost element without popping it from the stack.
- Returns
- the last inserted and topmost element, null if no element is present
◆ m_aArray
ref array<ref T> SCR_Stack< Class T >.m_aArray = {} |
|
protected |
The documentation for this interface was generated from the following file:
- Game/Utilities/SCR_Stack.c