bes  Updated for version 3.20.6
internal::Stack< Allocator > Class Template Reference

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

#include <stack.h>

Collaboration diagram for internal::Stack< Allocator >:
Collaboration graph

Public Member Functions

template<typename T >
T * Bottom ()
 
template<typename T >
T * Bottom ()
 
template<typename T >
const T * Bottom () const
 
template<typename T >
const T * Bottom () const
 
void Clear ()
 
void Clear ()
 
bool Empty () const
 
bool Empty () const
 
template<typename T >
T * End ()
 
template<typename T >
T * End ()
 
template<typename T >
const T * End () const
 
template<typename T >
const T * End () const
 
AllocatorGetAllocator ()
 
AllocatorGetAllocator ()
 
size_t GetCapacity () const
 
size_t GetCapacity () const
 
size_t GetSize () const
 
size_t GetSize () const
 
bool HasAllocator () const
 
bool HasAllocator () const
 
template<typename T >
T * Pop (size_t count)
 
template<typename T >
T * Pop (size_t count)
 
template<typename T >
RAPIDJSON_FORCEINLINE T * Push (size_t count=1)
 
template<typename T >
RAPIDJSON_FORCEINLINE T * Push (size_t count=1)
 
template<typename T >
RAPIDJSON_FORCEINLINE T * PushUnsafe (size_t count=1)
 
template<typename T >
RAPIDJSON_FORCEINLINE T * PushUnsafe (size_t count=1)
 
template<typename T >
RAPIDJSON_FORCEINLINE void Reserve (size_t count=1)
 
template<typename T >
RAPIDJSON_FORCEINLINE void Reserve (size_t count=1)
 
void ShrinkToFit ()
 
void ShrinkToFit ()
 
 Stack (Allocator *allocator, size_t stackCapacity)
 
 Stack (Allocator *allocator, size_t stackCapacity)
 
void Swap (Stack &rhs) RAPIDJSON_NOEXCEPT
 
void Swap (Stack &rhs) RAPIDJSON_NOEXCEPT
 
template<typename T >
T * Top ()
 
template<typename T >
T * Top ()
 
template<typename T >
const T * Top () const
 
template<typename T >
const T * Top () const
 

Detailed Description

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

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

Template Parameters
AllocatorAllocator for allocating stack memory.

Definition at line 36 of file cmr_module/rapidjson/internal/stack.h.


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