1 #ifndef RAPIDJSON_INTERNAL_STACK_H_
2 #define RAPIDJSON_INTERNAL_STACK_H_
13 template <
typename Allocator>
37 size_t new_size =
GetSize() +
sizeof(
T) * count;
38 if (new_capacity < new_size)
39 new_capacity = new_size;
Eigen::Triplet< double > T
Definition: EigenUnitTest.cpp:11
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
Concept for allocating, resizing and freeing memory block.
A type-unsafe stack for storing different types of data.
Definition: stack.h:14
T * Bottom()
Definition: stack.h:64
char * stack_
Definition: stack.h:73
~Stack()
Definition: stack.h:24
size_t GetCapacity() const
Definition: stack.h:68
Stack(Allocator *allocator, size_t stack_capacity)
Definition: stack.h:16
void Clear()
Definition: stack.h:29
T * Pop(size_t count)
Definition: stack.h:51
T * Push(size_t count=1)
Definition: stack.h:32
Allocator * own_allocator_
Definition: stack.h:72
size_t GetSize() const
Definition: stack.h:67
size_t stack_capacity_
Definition: stack.h:76
char * stack_top_
Definition: stack.h:74
T * Top()
Definition: stack.h:58
char * stack_end_
Definition: stack.h:75
Allocator & GetAllocator()
Definition: stack.h:66
Allocator * allocator_
Definition: stack.h:71
Eigen::DenseIndex ret
Definition: level1_cplx_impl.h:43
Definition: Eigen_Colamd.h:49
Definition: document.h:13
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:80