Linked stack. More...
Linked stack.
| T | Stack items type. |
Public Member Methods | |
| void | Push (T item) |
| Pushes an item onto this stack. More... | |
| bool | TryPop (T &item) |
| Try Removes and returns the top-of-stack item. More... | |
| bool | TryPop () |
| Try Removes the top-of-stack item. More... | |
| void | Pop (T &item) |
| Removes and returns the top-of-stack item. More... | |
| void | Pop () |
| Removes the top-of-stack item. More... | |
| T & | GetTop () const |
| Gets the top item. More... | |
| void | Clear () |
| Clears the stack More... | |
| Int32 | GetCount () const |
| Gets the number of items. More... | |
| bool | IsEmpty () const |
| Query if this stack is empty. More... | |
| void Clear | ( | ) |
Clears the stack
| Int32 GetCount | ( | ) | const |
Gets the number of items.
| T & GetTop | ( | ) | const |
| bool IsEmpty | ( | ) | const |
Query if this stack is empty.
| void Pop | ( | T & | item | ) |
Removes and returns the top-of-stack item.
| item | [in,out] The item to pop. |
| void Pop | ( | ) |
Removes the top-of-stack item.
| void Push | ( | T | item | ) |
Pushes an item onto this stack.
| item | The item to push. |
| bool TryPop | ( | T & | item | ) |
Try Removes and returns the top-of-stack item.
| item | [in,out] The item to pop. |
| bool TryPop | ( | ) |
Try Removes the top-of-stack item.