Pyrogenesis  trunk
Public Member Functions | Private Types | Private Attributes | List of all members
AllocatorChecker Class Reference

allocator test rig. More...

#include <allocator_checker.h>

Public Member Functions

void OnAllocate (void *p, size_t size)
 
void OnDeallocate (void *p, size_t size)
 
void OnClear ()
 allocator is resetting itself, i.e. More...
 

Private Types

typedef std::map< void *, size_t > Allocs
 

Private Attributes

Allocs allocs
 

Detailed Description

allocator test rig.

call from each allocator operation to sanity-check them. should only be used during debug mode due to serious overhead.

Member Typedef Documentation

◆ Allocs

typedef std::map<void*, size_t> AllocatorChecker::Allocs
private

Member Function Documentation

◆ OnAllocate()

void AllocatorChecker::OnAllocate ( void *  p,
size_t  size 
)
inline

◆ OnClear()

void AllocatorChecker::OnClear ( )
inline

allocator is resetting itself, i.e.

wiping out all allocs.

◆ OnDeallocate()

void AllocatorChecker::OnDeallocate ( void *  p,
size_t  size 
)
inline

Member Data Documentation

◆ allocs

Allocs AllocatorChecker::allocs
private

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