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()
| T SCR_Stack< Class T >.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()
| int SCR_Stack< Class T >.Count |
( |
| ) |
|
Returns the count of elements stored in this stack.
◆ IsEmpty()
| bool SCR_Stack< Class T >.IsEmpty |
( |
| ) |
|
- Returns
- true if stack is empty, false otherwise
◆ Pop()
| T SCR_Stack< Class T >.Pop |
( |
| ) |
|
Pop an item from the top of the stack.
- Returns
- the last inserted and topmost element, null if no element is present
◆ Push()
| void SCR_Stack< Class T >.Push |
( |
T | item | ) |
|
Push an item to the end of the stack.
- Parameters
-
◆ Top()
| T SCR_Stack< Class T >.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