stumpless 2.2.0
Loading...
Searching...
No Matches
MemoryManager.hpp
Go to the documentation of this file.
1#ifndef __MEMORYMANAGER_HPP
2#define __MEMORYMANAGER_HPP
3
4#include <stumpless/version.h>
5#include <stddef.h>
6
7namespace stumpless {
8
13 public:
14
15 struct stumpless_version equivalent;
16
17 MemoryManager( struct stumpless_version *equivalent );
18 MemoryManager( struct stumpless_version equivalent );
38 static void FreeAll( void );
51 static void FreeThread( void );
61 static void *( *SetMalloc( void *( *malloc_func )( size_t ) ) )( size_t );
71 static void ( *SetFree( void ( *free_func )( void * ) ) )( void * );
81 static void *( *SetRealloc( void *( *realloc_func )( void *, size_t ) ) )( void *, size_t );
82 };
83
84}
85
86#endif
Container for memory management functions in Stumpless.
Definition MemoryManager.hpp:12
static void *(*)(size_t) SetMalloc(void *(*malloc_func)(size_t))
Sets the function used by Stumpless to allocate memory.
Definition MemoryManager.hpp:61
struct stumpless_version equivalent
Definition MemoryManager.hpp:15
static void FreeAll(void)
Frees all memory allocated internally, and performs any other necessary cleanup.
static void(*)(void *) SetFree(void(*free_func)(void *))
Sets the function used by Stumpless to free memory.
Definition MemoryManager.hpp:71
static void FreeThread(void)
Frees all memory allocated internally to the calling thread, and performs any other thread-specific c...
static void *(*)(void *, size_t) SetRealloc(void *(*realloc_func)(void *, size_t))
Sets the function used by Stumpless to reallocate memory.
Definition MemoryManager.hpp:81
MemoryManager(struct stumpless_version equivalent)
MemoryManager(struct stumpless_version *equivalent)
Definition AddressFailure.hpp:7