RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Classes | Public Types | Public Member Functions
Json::BatchAllocator< AllocatedType, objectPerAllocation > Class Template Reference

List of all members.

Classes

struct  BatchInfo

Public Types

typedef AllocatedType Type

Public Member Functions

 BatchAllocator (unsigned int objectsPerPage=255)
AllocatedType * allocate ()
void release (AllocatedType *object)

Detailed Description

template<typename AllocatedType, const unsigned int objectPerAllocation>
class Json::BatchAllocator< AllocatedType, objectPerAllocation >

Definition at line 24 of file json_batchallocator.h.


Member Function Documentation

template<typename AllocatedType , const unsigned int objectPerAllocation>
AllocatedType* Json::BatchAllocator< AllocatedType, objectPerAllocation >::allocate ( ) [inline]

allocate space for an array of objectPerAllocation object.

Warning:
it is the responsability of the caller to call objects constructors.

Definition at line 52 of file json_batchallocator.h.

template<typename AllocatedType , const unsigned int objectPerAllocation>
void Json::BatchAllocator< AllocatedType, objectPerAllocation >::release ( AllocatedType *  object) [inline]

Release the object.

Warning:
it is the responsability of the caller to actually destruct the object.

Definition at line 80 of file json_batchallocator.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator