Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
globalAllocator.cpp File Reference
#include "globalAllocator.h"
#include <malloc.h>
#include <fstream>
#include "CustomAllocator.h"
Include dependency graph for globalAllocator.cpp:

Go to the source code of this file.

Namespaces

namespace  samurai
 
namespace  samurai::memory
 

Functions

void * DefaultAllocator (size_t size)
 
void DefaultFree (void *ptr)
 
void * DisabeledAllocator (size_t size)
 
void DisabeledFree (void *ptr)
 
void * CustomedAllocator (size_t size)
 
void CustomFree (void *ptr)
 
void samurai::memory::setGlobalAllocatorToStandard ()
 
void samurai::memory::dissableAllocators ()
 
void samurai::memory::setGlobalAllocator (samurai::memory::CustomAllocator *allocator)
 
void * operator new (size_t count)
 
void * operator new[] (size_t count)
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 

Variables

samurai::memory::CustomAllocatorcurrentCustomAllocator = {}
 
void *(* GlobalAllocateFunction )(size_t) = DefaultAllocator
 
void(* GlobalFree )(void *) = DefaultFree
 

Function Documentation

◆ CustomedAllocator()

void * CustomedAllocator ( size_t size)

Definition at line 27 of file globalAllocator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CustomFree()

void CustomFree ( void * ptr)

Definition at line 31 of file globalAllocator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DefaultAllocator()

void * DefaultAllocator ( size_t size)

Definition at line 8 of file globalAllocator.cpp.

Here is the caller graph for this function:

◆ DefaultFree()

void DefaultFree ( void * ptr)

Definition at line 12 of file globalAllocator.cpp.

Here is the caller graph for this function:

◆ DisabeledAllocator()

void * DisabeledAllocator ( size_t size)

Definition at line 17 of file globalAllocator.cpp.

Here is the caller graph for this function:

◆ DisabeledFree()

void DisabeledFree ( void * ptr)

Definition at line 21 of file globalAllocator.cpp.

Here is the caller graph for this function:

◆ operator delete()

void operator delete ( void * ptr)

Definition at line 76 of file globalAllocator.cpp.

◆ operator delete[]()

void operator delete[] ( void * ptr)

Definition at line 82 of file globalAllocator.cpp.

◆ operator new()

void * operator new ( size_t count)

Definition at line 66 of file globalAllocator.cpp.

◆ operator new[]()

void * operator new[] ( size_t count)

Definition at line 71 of file globalAllocator.cpp.

Variable Documentation

◆ currentCustomAllocator

samurai::memory::CustomAllocator* currentCustomAllocator = {}

Definition at line 26 of file globalAllocator.cpp.

◆ GlobalAllocateFunction

void *(* GlobalAllocateFunction) (size_t) ( size_t ) = DefaultAllocator

Definition at line 36 of file globalAllocator.cpp.

◆ GlobalFree

void(* GlobalFree) (void *) ( void * ) = DefaultFree

Definition at line 37 of file globalAllocator.cpp.