Public Types | |
enum | Method { UNKNOWN, CALLOC, MALLOC, REALLOC, FREE, NEW_OBJECT, NEW_ARRAY, DELETE_OBJECT, DELETE_ARRAY } |
Public Methods | |
size_t | count () const |
エラーの個数を返す。. More... | |
void | dump (FILE *fp) const |
検査結果を表示する。. More... | |
void | add (void *p, Method method, size_t n, const char *file, int line) |
リストに情報を追加する。. More... | |
Method | remove (void *p, Method method) |
リストから情報を除去する。. More... | |
void | clear () |
情報を消去する。. More... | |
Static Public Methods | |
LeakCheckerRegistry * | instance () |
シングルトンを取得する。. More... | |
void | finalize () |
終了処理を行う。. More... | |
bool | isAvailable () |
レジストリが有効か?. More... | |
Protected Types | |
typedef MallocAllocator< pair< const void *, Entry > > | PairAllocator |
typedef map< void *, Entry, less< void *>, PairAllocator > | EntryMap |
typedef list< Error, MallocAllocator< Error > > | ErrorList |
Protected Methods | |
LeakCheckerRegistry () | |
~LeakCheckerRegistry () | |
void | addError (void *address, Method method2, const Entry &entry) |
エラー情報を追加する。. More... | |
Static Protected Methods | |
void | printEntry (FILE *fp, void *p, const Entry &entry) |
メモリの動的確保の情報を表示する。. More... | |
void | printError (FILE *fp, const Error &error) |
エラー情報を表示する。. More... |
|
|
|
|
|
|
|
|
|
|
|
|
|
シングルトンを取得する。.
|
|
終了処理を行う。.
|
|
レジストリが有効か?. 起動時、終了時に未置換の new、delete の処理を制御するため。 |
|
エラーの個数を返す。.
|
|
検査結果を表示する。.
|
|
リストに情報を追加する。.
|
|
リストから情報を除去する。.
|
|
情報を消去する。.
|
|
エラー情報を追加する。.
|
|
メモリの動的確保の情報を表示する。.
|
|
エラー情報を表示する。.
|