|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-56a9afeb9f
|
#include <mm.h>
Public Member Functions | |
| MM_err | register_allocation (size_t sz) |
| MM_err | register_deallocation (size_t sz) |
| MM_register () | |
| ~MM_register (void) | |
| MM_err | set_memory_limit (size_t sz) |
| void | enforce_memory_limit () |
| void | ignore_memory_limit () |
| void | warn_memory_limit () |
| MM_mode | get_limit_mode () |
| void | print_limit_mode () |
| size_t | memory_available () |
| size_t | memory_used () |
| size_t | memory_limit () |
| int | space_overhead () |
| void | print () |
| void * | operator new (size_t) throw (std::bad_alloc) |
| void * | operator new[] (size_t) throw (std::bad_alloc) |
| void | operator delete (void *) throw () |
| void | operator delete[] (void *) throw () |
Friends | |
| class | mm_register_init |
| MM_register::MM_register | ( | ) |
Definition at line 52 of file mm.cpp.
References assert, and MM_IGNORE_MEMORY_EXCEEDED.
| void MM_register::enforce_memory_limit | ( | ) |
Definition at line 146 of file mm.cpp.
References assert, and MM_ABORT_ON_MEMORY_EXCEEDED.
| void MM_register::ignore_memory_limit | ( | ) |
Definition at line 160 of file mm.cpp.
References MM_IGNORE_MEMORY_EXCEEDED.
| size_t MM_register::memory_available | ( | ) |
Definition at line 194 of file mm.cpp.
Referenced by getAvailableMemory(), LOG_avail_memo(), and singleMerge().
| size_t MM_register::memory_limit | ( | ) |
Definition at line 206 of file mm.cpp.
Referenced by operator new(), and operator new[]().
| size_t MM_register::memory_used | ( | ) |
Definition at line 200 of file mm.cpp.
Referenced by operator new(), and operator new[]().
Definition at line 385 of file mm.cpp.
References assert, free(), MM_DEBUG, MM_ERROR_NO_ERROR, MM_manager, and register_deallocation().
Definition at line 432 of file mm.cpp.
References assert, free(), MM_DEBUG, MM_ERROR_NO_ERROR, MM_manager, and register_deallocation().
| void * MM_register::operator new | ( | size_t | sz | ) | |
| throw | ( | std::bad_alloc | |||
| ) | |||||
Definition at line 330 of file mm.cpp.
References assert, malloc(), memory_limit(), memory_used(), MM_ABORT_ON_MEMORY_EXCEEDED, MM_DEBUG, MM_ERROR_NO_ERROR, MM_IGNORE_MEMORY_EXCEEDED, MM_manager, MM_WARN_ON_MEMORY_EXCEEDED, and register_allocation().
| void * MM_register::operator new[] | ( | size_t | sz | ) | |
| throw | ( | std::bad_alloc | |||
| ) | |||||
Definition at line 275 of file mm.cpp.
References assert, malloc(), memory_limit(), memory_used(), MM_ABORT_ON_MEMORY_EXCEEDED, MM_DEBUG, MM_ERROR_NO_ERROR, MM_IGNORE_MEMORY_EXCEEDED, MM_manager, MM_WARN_ON_MEMORY_EXCEEDED, and register_allocation().
| void MM_register::print | ( | ) |
Definition at line 81 of file mm.cpp.
Referenced by AMI_sort(), and runFormation().
| void MM_register::print_limit_mode | ( | ) |
Definition at line 174 of file mm.cpp.
References MM_ABORT_ON_MEMORY_EXCEEDED, MM_IGNORE_MEMORY_EXCEEDED, and MM_WARN_ON_MEMORY_EXCEEDED.
Definition at line 228 of file mm.cpp.
References MM_ERROR_INSUFFICIENT_SPACE, and MM_ERROR_NO_ERROR.
Referenced by operator new(), and operator new[]().
Definition at line 247 of file mm.cpp.
References assert, MM_ERROR_NO_ERROR, and MM_ERROR_UNDERFLOW.
Referenced by operator delete(), and operator delete[]().
Definition at line 97 of file mm.cpp.
References assert, MM_ABORT_ON_MEMORY_EXCEEDED, MM_ERROR_NO_ERROR, MM_IGNORE_MEMORY_EXCEEDED, and MM_WARN_ON_MEMORY_EXCEEDED.
Referenced by mm_register_init::mm_register_init().
| void MM_register::warn_memory_limit | ( | ) |
Definition at line 139 of file mm.cpp.
References MM_WARN_ON_MEMORY_EXCEEDED.
|
friend |