Stack< Allocator > Class Template Reference#
internal::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 stackCapacity) | |
~Stack () | |
void | Swap (Stack &rhs) RAPIDJSON_NOEXCEPT |
void | Clear () |
void | ShrinkToFit () |
template<typename T > | |
RAPIDJSON_FORCEINLINE void | Reserve (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 > | |
T * | Pop (size_t count) |
template<typename T > | |
T * | Top () |
template<typename T > | |
const T * | Top () const |
template<typename T > | |
T * | End () |
template<typename T > | |
const T * | End () const |
template<typename T > | |
T * | Bottom () |
template<typename T > | |
const T * | Bottom () const |
bool | HasAllocator () const |
Allocator & | GetAllocator () |
bool | Empty () const |
size_t | GetSize () const |
size_t | GetCapacity () const |
Detailed Description
template<typename Allocator>
class 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()
template<typename Allocator >
|
inline |
◆ ~Stack()
template<typename Allocator >
|
inline |
Member Function Documentation
◆ Bottom() [1/2]
template<typename Allocator >
template<typename T >
|
inline |
◆ Bottom() [2/2]
template<typename Allocator >
template<typename T >
|
inline |
◆ Clear()
template<typename Allocator >
|
inline |
◆ Empty()
template<typename Allocator >
|
inline |
◆ End() [1/2]
◆ End() [2/2]
template<typename Allocator >
template<typename T >
|
inline |
◆ GetAllocator()
template<typename Allocator >
|
inline |
◆ GetCapacity()
template<typename Allocator >
|
inline |
◆ GetSize()
template<typename Allocator >
|
inline |
◆ HasAllocator()
template<typename Allocator >
|
inline |
◆ Pop()
template<typename Allocator >
template<typename T >
|
inline |
◆ Push()
template<typename Allocator >
template<typename T >
|
inline |
◆ PushUnsafe()
template<typename Allocator >
template<typename T >
|
inline |
◆ Reserve()
template<typename Allocator >
template<typename T >
|
inline |
◆ ShrinkToFit()
template<typename Allocator >
|
inline |
◆ Swap()
template<typename Allocator >
|
inline |
◆ Top() [1/2]
◆ Top() [2/2]
template<typename Allocator >
template<typename T >
|
inline |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/rapidjson/internal/stack.h