GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
MM_register Class Reference

#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
 

Detailed Description

Definition at line 91 of file mm.h.

Constructor & Destructor Documentation

◆ MM_register()

MM_register::MM_register ( )

Definition at line 56 of file mm.cpp.

References assert, and MM_IGNORE_MEMORY_EXCEEDED.

◆ ~MM_register()

MM_register::~MM_register ( void  )

Definition at line 73 of file mm.cpp.

References assert.

Member Function Documentation

◆ enforce_memory_limit()

void MM_register::enforce_memory_limit ( )

Definition at line 152 of file mm.cpp.

References assert, and MM_ABORT_ON_MEMORY_EXCEEDED.

◆ get_limit_mode()

MM_mode MM_register::get_limit_mode ( )

Definition at line 173 of file mm.cpp.

◆ ignore_memory_limit()

void MM_register::ignore_memory_limit ( )

Definition at line 166 of file mm.cpp.

References MM_IGNORE_MEMORY_EXCEEDED.

◆ memory_available()

size_t MM_register::memory_available ( )

Definition at line 200 of file mm.cpp.

Referenced by getAvailableMemory(), and LOG_avail_memo().

◆ memory_limit()

size_t MM_register::memory_limit ( )

Definition at line 211 of file mm.cpp.

◆ memory_used()

size_t MM_register::memory_used ( )

Definition at line 205 of file mm.cpp.

◆ operator delete()

void MM_register::operator delete ( void *  ptr)
throw (
)

Definition at line 396 of file mm.cpp.

References assert, and MM_DEBUG.

◆ operator delete[]()

void MM_register::operator delete[] ( void *  ptr)
throw (
)

Definition at line 443 of file mm.cpp.

References assert, and MM_DEBUG.

◆ operator new()

void * MM_register::operator new ( size_t  sz)
throw (std::bad_alloc
)

Definition at line 340 of file mm.cpp.

References MM_DEBUG.

◆ operator new[]()

void * MM_register::operator new[] ( size_t  sz)
throw (std::bad_alloc
)

Definition at line 285 of file mm.cpp.

References MM_DEBUG.

◆ print()

void MM_register::print ( )

Definition at line 86 of file mm.cpp.

◆ print_limit_mode()

void MM_register::print_limit_mode ( )

◆ register_allocation()

MM_err MM_register::register_allocation ( size_t  sz)

Definition at line 238 of file mm.cpp.

References MM_ERROR_INSUFFICIENT_SPACE, and MM_ERROR_NO_ERROR.

◆ register_deallocation()

MM_err MM_register::register_deallocation ( size_t  sz)

Definition at line 258 of file mm.cpp.

References assert, MM_ERROR_NO_ERROR, and MM_ERROR_UNDERFLOW.

◆ set_memory_limit()

MM_err MM_register::set_memory_limit ( size_t  sz)

◆ space_overhead()

int MM_register::space_overhead ( )

Definition at line 228 of file mm.cpp.

◆ warn_memory_limit()

void MM_register::warn_memory_limit ( )

Definition at line 145 of file mm.cpp.

References MM_WARN_ON_MEMORY_EXCEEDED.

Friends And Related Function Documentation

◆ mm_register_init

friend class mm_register_init
friend

Definition at line 148 of file mm.h.


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