Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.

Definition at line 33 of file allocator_checker.h.

Member Typedef Documentation

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

Definition at line 67 of file allocator_checker.h.

Member Function Documentation

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

Definition at line 36 of file allocator_checker.h.

void AllocatorChecker::OnClear ( )
inline

allocator is resetting itself, i.e.

wiping out all allocs.

Definition at line 61 of file allocator_checker.h.

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

Definition at line 43 of file allocator_checker.h.

Member Data Documentation

Allocs AllocatorChecker::allocs
private

Definition at line 68 of file allocator_checker.h.


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