Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
Stack< Allocator > Class Template Reference

A type-unsafe stack for storing different types of data. More...

`#include <stack.h>`

## Public Member Functions
| Stack (Allocator *allocator, size_t stack_capacity)
| ~Stack ()
void | Clear ()
template<typename T >
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

## Detailed Description

### template<typename Allocator>
class rapidjson::internal::Stack< Allocator >

A type-unsafe stack for storing different types of data.

Template Parameters

  Allocator | Allocator for allocating stack memory.

## Constructor & Destructor Documentation

Stack | ( | Allocator * | allocator,
|  | size_t | stack_capacity
| ) |  |
| inline

~Stack | ( |  | ) |
| inline

## Member Function Documentation

T* Bottom | ( |  | ) |
| inline

void Clear | ( |  | ) |
| inline

bool Empty | ( |  | ) | const
| inline

Allocator& GetAllocator | ( |  | ) |
| inline

size_t GetCapacity | ( |  | ) | const
| inline

size_t GetSize | ( |  | ) | const
| inline

T* Pop | ( | size_t | count | ) |
| inline

T* Push | ( | size_t | count = `1` | ) |
| inline

T* Top | ( |  | ) |
| inline

The documentation for this class was generated from the following file:

- persistence/rapidjson/include/rapidjson/internal/stack.h