cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 >
var Push ( var 1)
template<typename T >
local Push ( local 1)
template<typename T >
T * Pop (size_t count)
template<typename T >
T * Top ()
template<typename T >
T * Bottom ()
AllocatorGetAllocator ()
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
AllocatorAllocator for allocating stack memory.

Constructor & Destructor Documentation

Stack ( Allocator allocator,
size_t  stack_capacity 
)
inline
var Stack ( var  allocator,
var  stack_capacity 
)
inline
local Stack ( local  allocator,
local  stack_capacity 
)
inline
~Stack ( )
inline
var ~Stack ( )
inline
local ~Stack ( )
inline

Member Function Documentation

T* Bottom ( )
inline
var Bottom ( )
inline
local Bottom ( )
inline
void Clear ( )
inline
var Clear ( )
inline
local Clear ( )
inline
Allocator& GetAllocator ( )
inline
var GetAllocator ( )
inline
local GetAllocator ( )
inline
size_t GetCapacity ( ) const
inline
var GetCapacity ( )
inline
local GetCapacity ( )
inline
size_t GetSize ( ) const
inline
var GetSize ( )
inline
local GetSize ( )
inline
T* Pop ( size_t  count)
inline
var Pop ( var  count)
inline
local Pop ( local  count)
inline
T* Push ( size_t  count = 1)
inline
var Push ( var  count = 1)
inline
local Push ( local  count = 1)
inline
T* Top ( )
inline
var Top ( )
inline
local Top ( )
inline

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