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

base::MemoryTracer Class Reference

Collaboration diagram for base::MemoryTracer:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

void * allocate (int size, const std::string &name, bool isArray=false) throw (std::bad_alloc)
bool release (void *address, bool isArray=false, int size=-1) throw (std::bad_alloc)
bool validate (void *address, int size, const std::string &name) throw (std::bad_alloc)
bool invalidate (void *address, int size) throw (std::bad_alloc)
void * checkAddrRange (void *address, long typesize) throw (std::bad_alloc)
bool checkAddr (void *address, void *reportAddr=0, bool checkAllMemory=true) throw (std::bad_alloc)
bool checkAllMemory () throw (std::bad_alloc)
char * getName (void *addr)
long getOffset (void *addr)
bool cleanup ()
void menu () throw (std::bad_alloc)
void dump ()
void dumpNamed ()
void dumpDeallocated ()
void handleError () throw (std::bad_alloc)

Static Protected Member Functions

void Logerr (char *errstr)
void entrylock ()
void exitunlock ()
int causefault ()
void fill ()
bool isOK ()

Static Protected Attributes

const Byte Filling = 8
const Byte Filler = 0xea
const int Magic = 13456
const int External = 32768
const int IsArray
const int IsNotArray
const int DList_Max = 1000
Byte prefill [Filling]
Byte initialized
bool cleanedUp
Int entry
Int fullCheckCounter
LInt allocCount
LInt deallocCount
LInt checkCount
AllocList mlist
AllocList dlist
Byte postfill [Filling]

Member Function Documentation

void* base::MemoryTracer::allocate int  size,
const std::string &  name,
bool  isArray = false
throw (std::bad_alloc) [static]
 

int base::MemoryTracer::causefault  )  [static, protected]
 

bool base::MemoryTracer::checkAddr void *  address,
void *  reportAddr = 0,
bool  checkAllMemory = true
throw (std::bad_alloc) [static]
 

void* base::MemoryTracer::checkAddrRange void *  address,
long  typesize
throw (std::bad_alloc) [static]
 

bool base::MemoryTracer::checkAllMemory  )  throw (std::bad_alloc) [static]
 

bool base::MemoryTracer::cleanup  )  [static]
 

void base::MemoryTracer::dump  )  [static]
 

void base::MemoryTracer::dumpDeallocated  )  [static]
 

void base::MemoryTracer::dumpNamed  )  [static]
 

void base::MemoryTracer::entrylock  )  [static, protected]
 

void base::MemoryTracer::exitunlock  )  [static, protected]
 

void base::MemoryTracer::fill  )  [inline, static, protected]
 

Definition at line 91 of file MemoryTracer.

References Filler, Filling, and base::Int.

Referenced by isOK().

char* base::MemoryTracer::getName void *  addr  )  [static]
 

long base::MemoryTracer::getOffset void *  addr  )  [static]
 

void base::MemoryTracer::handleError  )  throw (std::bad_alloc) [static]
 

bool base::MemoryTracer::invalidate void *  address,
int  size
throw (std::bad_alloc) [static]
 

bool base::MemoryTracer::isOK  )  [inline, static, protected]
 

Definition at line 97 of file MemoryTracer.

References base::Byte, fill(), Filler, Filling, initialized, base::Int, and Magic.

void base::MemoryTracer::Logerr char *  errstr  )  [static, protected]
 

void base::MemoryTracer::menu  )  throw (std::bad_alloc) [static]
 

bool base::MemoryTracer::release void *  address,
bool  isArray = false,
int  size = -1
throw (std::bad_alloc) [static]
 

bool base::MemoryTracer::validate void *  address,
int  size,
const std::string &  name
throw (std::bad_alloc) [static]
 


Member Data Documentation

LInt base::MemoryTracer::allocCount [static, protected]
 

Definition at line 194 of file MemoryTracer.

LInt base::MemoryTracer::checkCount [static, protected]
 

Definition at line 196 of file MemoryTracer.

bool base::MemoryTracer::cleanedUp [static, protected]
 

Definition at line 191 of file MemoryTracer.

LInt base::MemoryTracer::deallocCount [static, protected]
 

Definition at line 195 of file MemoryTracer.

AllocList base::MemoryTracer::dlist [static, protected]
 

Definition at line 199 of file MemoryTracer.

const int base::MemoryTracer::DList_Max = 1000 [static, protected]
 

Definition at line 186 of file MemoryTracer.

Int base::MemoryTracer::entry [static, protected]
 

Definition at line 192 of file MemoryTracer.

const int base::MemoryTracer::External = 32768 [static, protected]
 

Definition at line 114 of file MemoryTracer.

const Byte base::MemoryTracer::Filler = 0xea [static, protected]
 

Definition at line 112 of file MemoryTracer.

Referenced by fill(), and isOK().

const Byte base::MemoryTracer::Filling = 8 [static, protected]
 

Definition at line 111 of file MemoryTracer.

Referenced by fill(), and isOK().

Int base::MemoryTracer::fullCheckCounter [static, protected]
 

Definition at line 193 of file MemoryTracer.

Byte base::MemoryTracer::initialized [static, protected]
 

Definition at line 190 of file MemoryTracer.

Referenced by isOK().

const int base::MemoryTracer::IsArray [static, protected]
 

Definition at line 116 of file MemoryTracer.

const int base::MemoryTracer::IsNotArray [static, protected]
 

Definition at line 117 of file MemoryTracer.

const int base::MemoryTracer::Magic = 13456 [static, protected]
 

Definition at line 113 of file MemoryTracer.

Referenced by isOK().

AllocList base::MemoryTracer::mlist [static, protected]
 

Definition at line 198 of file MemoryTracer.

Byte base::MemoryTracer::postfill[Filling] [static, protected]
 

Definition at line 201 of file MemoryTracer.

Byte base::MemoryTracer::prefill[Filling] [static, protected]
 

Definition at line 188 of file MemoryTracer.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:38:47 2004 for OpenSim by doxygen 1.3.6