|
C3D Toolkit
Kernel - 118069, Vision - 2.16.7.1844
|
A stack of objects. More...
#include <templ_stack.h>
Inheritance diagram for SStack< Type >:
Collaboration diagram for SStack< Type >:Public Member Functions | |
| SStack (size_t i_upper=0, uint16 i_delta=1) | |
| Constructor. | |
| void | Push (const Type &obj) |
| Add an element to the stack. | |
| Type & | Pop () |
| Retrieve one element from the stack, if nullptr is returned then the bottom of stack is reached. More... | |
| Type & | Top () const |
| The top element of the stack (the last added). More... | |
A stack of objects.
A stack of objects.
To organize stack SArray is used as the builder, and all redundant is cut by using a private inheritance.
| Type & SStack< Type >::Pop |
Retrieve one element from the stack, if nullptr is returned then the bottom of stack is reached.
Retrieve one element from the stack.
| Type & SStack< Type >::Top |
The top element of the stack (the last added).
The top element of the stack.