Elaztek Developer Hub
Blamite Game Engine - blam!  00368.02.12.23.1347.blamite
The core library for the Blamite Game Engine.
allocators.h File Reference
#include "rapidjson.h"
#include "internal/meta.h"
#include <memory>

Go to the source code of this file.

Classes

class  CrtAllocator
 C-runtime library allocator. More...
 
class  MemoryPoolAllocator< BaseAllocator >
 Default memory allocator used by the parser and DOM. More...
 
struct  internal::IsRefCounted< typename, typename >
 
struct  internal::IsRefCounted< T, typename internal::EnableIfCond< T::kRefCounted >::Type >
 
class  StdAllocator< T, BaseAllocator >
 
struct  StdAllocator< T, BaseAllocator >::rebind< U >
 
class  StdAllocator< void, BaseAllocator >
 
struct  StdAllocator< void, BaseAllocator >::rebind< U >
 

Namespaces

 internal
 

Macros

#define RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY   (64 * 1024)
 User-defined kDefaultChunkCapacity definition. More...
 

Functions

template<typename T , typename A >
T * Realloc (A &a, T *old_p, size_t old_n, size_t new_n)
 
template<typename T , typename A >
T * Malloc (A &a, size_t n=1)
 
template<typename T , typename A >
void Free (A &a, T *p, size_t n=1)
 

Function Documentation

◆ Free()

template<typename T , typename A >
void Free ( A &  a,
T *  p,
size_t  n = 1 
)
inline

◆ Malloc()

template<typename T , typename A >
T* Malloc ( A &  a,
size_t  n = 1 
)
inline

◆ Realloc()

template<typename T , typename A >
T* Realloc ( A &  a,
T *  old_p,
size_t  old_n,
size_t  new_n 
)
inline