Urho3D
Classes | Functions
Allocator.h File Reference
#include <Urho3D/Urho3D.h>
#include "../Base/PrimitiveTypes.h"
#include <cstddef>

Classes

struct  Urho3D::AllocatorBlock
 Allocator memory block. More...
 
struct  Urho3D::AllocatorNode
 Allocator node. More...
 
class  Urho3D::Allocator< T >
 Allocator template class. Allocates objects of a specific class. More...
 

Functions

AllocatorBlock * Urho3D::AllocatorInitialize (i32 nodeSize, i32 initialCapacity=1)
 Initialize a fixed-size allocator with the node size and initial capacity.
 
void Urho3D::AllocatorUninitialize (AllocatorBlock *allocator)
 Uninitialize a fixed-size allocator. Frees all blocks in the chain.
 
void * Urho3D::AllocatorReserve (AllocatorBlock *allocator)
 Reserve a node. Creates a new block if necessary.
 
void Urho3D::AllocatorFree (AllocatorBlock *allocator, void *ptr)
 Free a node. Does not free any blocks.