A type-unsafe stack for storing different types of data. More...
#include <stack.h>
Public Member Functions | |
| Stack (Allocator *allocator, size_t stackCapacity) | |
| ~Stack () | |
| void | Clear () |
| void | ShrinkToFit () |
| template<typename T > | |
| RAPIDJSON_FORCEINLINE T * | Push (size_t count=1) |
| template<typename T > | |
| T * | Pop (size_t count) |
| template<typename T > | |
| T * | Top () |
| template<typename T > | |
| T * | Bottom () |
| Allocator & | GetAllocator () |
| bool | Empty () const |
| size_t | GetSize () const |
| size_t | GetCapacity () const |
Private Member Functions | |
| template<typename T > | |
| void | Expand (size_t count) |
| void | Resize (size_t newCapacity) |
| void | Destroy () |
| Stack (const Stack &) | |
| Stack & | operator= (const Stack &) |
Private Attributes | |
| Allocator * | allocator_ |
| Allocator * | ownAllocator_ |
| char * | stack_ |
| char * | stackTop_ |
| char * | stackEnd_ |
| size_t | initialCapacity_ |
A type-unsafe stack for storing different types of data.
|
inline |
Definition at line 38 of file stack.h.
|
inline |
|
private |
|
inline |
|
inline |
|
inlineprivate |
Definition at line 163 of file stack.h.
|
inline |
|
inlineprivate |
Definition at line 138 of file stack.h.
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.11