Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MemoryManager File Reference

#include <osg/Export>
#include <stdlib.h>
#include <new>

Include dependency graph for MemoryManager:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Compounds

struct  sMStats
struct  tag_au

Defines

#define osgNew   new
#define osgDelete   delete
#define osgMalloc(sz)   malloc(sz)
#define osgCalloc(sz)   calloc(sz)
#define osgRealloc(ptr, sz)   realloc(ptr,sz)
#define osgFree(ptr)   free(ptr)

Typedefs

typedef tag_au sAllocUnit

Functions

SG_EXPORT void m_setOwner (const char *file, const unsigned int line)
SG_EXPORT bool & m_breakOnRealloc (void *reportedAddress)
SG_EXPORT bool & m_breakOnDealloc (void *reportedAddress)
SG_EXPORT void m_breakOnAllocation (unsigned int count)
SG_EXPORT void * m_allocator (const char *sourceFile, const unsigned int sourceLine, const unsigned int allocationType, const size_t reportedSize)
SG_EXPORT void * m_reallocator (const char *sourceFile, const unsigned int sourceLine, const unsigned int reallocationType, const size_t reportedSize, void *reportedAddress)
SG_EXPORT void m_deallocator (const char *sourceFile, const unsigned int sourceLine, const unsigned int deallocationType, const void *reportedAddress)
SG_EXPORT bool m_validateAddress (const void *reportedAddress)
SG_EXPORT bool m_validateAllocUnit (const sAllocUnit *allocUnit)
SG_EXPORT bool m_validateAllAllocUnits ()
SG_EXPORT unsigned int m_calcUnused (const sAllocUnit *allocUnit)
SG_EXPORT unsigned int m_calcAllUnused ()
SG_EXPORT void m_dumpAllocUnit (const sAllocUnit *allocUnit, const char *prefix="")
SG_EXPORT void m_dumpMemoryReport (const char *filename="memreport.log", const bool overwrite=true)
SG_EXPORT sMStats m_getMemoryStatistics ()

Variables

SG_EXPORT const unsigned int m_alloc_unknown
SG_EXPORT const unsigned int m_alloc_new
SG_EXPORT const unsigned int m_alloc_new_array
SG_EXPORT const unsigned int m_alloc_malloc
SG_EXPORT const unsigned int m_alloc_calloc
SG_EXPORT const unsigned int m_alloc_realloc
SG_EXPORT const unsigned int m_alloc_delete
SG_EXPORT const unsigned int m_alloc_delete_array
SG_EXPORT const unsigned int m_alloc_free

Define Documentation

#define osgCalloc sz       calloc(sz)
 

#define osgDelete   delete
 

#define osgFree ptr       free(ptr)
 

#define osgMalloc sz       malloc(sz)
 

#define osgNew   new
 

#define osgRealloc ptr,
sz       realloc(ptr,sz)
 


Typedef Documentation

typedef struct tag_au sAllocUnit
 


Function Documentation

SG_EXPORT void* m_allocator const char *    sourceFile,
const unsigned int    sourceLine,
const unsigned int    allocationType,
const size_t    reportedSize
 

SG_EXPORT void m_breakOnAllocation unsigned int    count
 

SG_EXPORT bool& m_breakOnDealloc void *    reportedAddress
 

SG_EXPORT bool& m_breakOnRealloc void *    reportedAddress
 

SG_EXPORT unsigned int m_calcAllUnused  
 

SG_EXPORT unsigned int m_calcUnused const sAllocUnit   allocUnit
 

SG_EXPORT void m_deallocator const char *    sourceFile,
const unsigned int    sourceLine,
const unsigned int    deallocationType,
const void *    reportedAddress
 

SG_EXPORT void m_dumpAllocUnit const sAllocUnit   allocUnit,
const char *    prefix = ""
 

SG_EXPORT void m_dumpMemoryReport const char *    filename = "memreport.log",
const bool    overwrite = true
 

SG_EXPORT sMStats m_getMemoryStatistics  
 

SG_EXPORT void* m_reallocator const char *    sourceFile,
const unsigned int    sourceLine,
const unsigned int    reallocationType,
const size_t    reportedSize,
void *    reportedAddress
 

SG_EXPORT void m_setOwner const char *    file,
const unsigned int    line
 

SG_EXPORT bool m_validateAddress const void *    reportedAddress
 

SG_EXPORT bool m_validateAllAllocUnits  
 

SG_EXPORT bool m_validateAllocUnit const sAllocUnit   allocUnit
 


Variable Documentation

SG_EXPORT const unsigned int m_alloc_calloc
 

SG_EXPORT const unsigned int m_alloc_delete
 

SG_EXPORT const unsigned int m_alloc_delete_array
 

SG_EXPORT const unsigned int m_alloc_free
 

SG_EXPORT const unsigned int m_alloc_malloc
 

SG_EXPORT const unsigned int m_alloc_new
 

SG_EXPORT const unsigned int m_alloc_new_array
 

SG_EXPORT const unsigned int m_alloc_realloc
 

SG_EXPORT const unsigned int m_alloc_unknown
 


Generated at Wed Sep 18 13:53:52 2002 for the Open Scene Graph by doxygen 1.2.16.