CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
rapidjson::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 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 ()
 
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.

Definition at line 14 of file stack.h.

Constructor & Destructor Documentation

template<typename Allocator>
rapidjson::internal::Stack< Allocator >::Stack ( Allocator allocator,
size_t  stack_capacity 
)
inline

Definition at line 16 of file stack.h.

template<typename Allocator>
rapidjson::internal::Stack< Allocator >::~Stack ( )
inline

Definition at line 24 of file stack.h.

Member Function Documentation

template<typename Allocator>
template<typename T >
T* rapidjson::internal::Stack< Allocator >::Bottom ( )
inline

Definition at line 64 of file stack.h.

template<typename Allocator>
void rapidjson::internal::Stack< Allocator >::Clear ( )
inline

Definition at line 29 of file stack.h.

template<typename Allocator>
Allocator& rapidjson::internal::Stack< Allocator >::GetAllocator ( )
inline

Definition at line 66 of file stack.h.

template<typename Allocator>
size_t rapidjson::internal::Stack< Allocator >::GetCapacity ( ) const
inline

Definition at line 68 of file stack.h.

template<typename Allocator>
size_t rapidjson::internal::Stack< Allocator >::GetSize ( ) const
inline

Definition at line 67 of file stack.h.

template<typename Allocator>
template<typename T >
T* rapidjson::internal::Stack< Allocator >::Pop ( size_t  count)
inline

Definition at line 51 of file stack.h.

template<typename Allocator>
template<typename T >
T* rapidjson::internal::Stack< Allocator >::Push ( size_t  count = 1)
inline

Definition at line 32 of file stack.h.

template<typename Allocator>
template<typename T >
T* rapidjson::internal::Stack< Allocator >::Top ( )
inline

Definition at line 58 of file stack.h.


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