Public Member Functions | Static Public Member Functions | List of all members
MemoryPoolStatic Class Referenceabstract

#include <memory_pool_static.h>

Public Member Functions

virtual void * alloc (size_t p_bytes, const char *p_description)=0
 Pointer in p_description shold be to a const char const like "hello".
 
virtual void * realloc (void *p_memory, size_t p_bytes)=0
 Pointer in p_description shold be to a const char const like "hello".
 
virtual void free (void *p_ptr)=0
 Pointer in p_description shold be to a const char const.
 
virtual size_t get_available_mem () const =0
 
virtual size_t get_total_usage ()=0
 
virtual size_t get_max_usage ()=0
 
virtual int get_alloc_count ()=0
 
virtual void * get_alloc_ptr (int p_alloc_idx)=0
 
virtual const char * get_alloc_description (int p_alloc_idx)=0
 
virtual size_t get_alloc_size (int p_alloc_idx)=0
 
virtual void dump_mem_to_file (const char *p_file)=0
 

Static Public Member Functions

static MemoryPoolStaticget_singleton ()
 

Detailed Description

Author
Juan Linietsky <red>

The documentation for this class was generated from the following files: