ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class represents a simple generic stack. More...
#include <include/reactphysics3d/containers/Stack.h>
Public Member Functions | |
Stack (MemoryAllocator &allocator, uint64 capacity=0) | |
Constructor. | |
Stack (const Stack &stack) | |
Copy constructor. | |
~Stack () | |
Destructor. | |
void | clear () |
Remove all the items from the stack. | |
void | push (const T &element) |
Push an element into the stack. | |
T | pop () |
Pop an element from the stack (remove it from the stack and return it) | |
T & | top () |
Return the top element of the stack. | |
uint64 | size () const |
Return the number of items in the stack. | |
uint64 | capacity () const |
Return the capacity of the stack. | |
This class represents a simple generic stack.