GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
mm.h File Reference
#include <sys/types.h>
Include dependency graph for mm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  MM_register
 
class  mm_register_init
 

Macros

#define GRASS_MM_USE_EXCEPTION_SPECIFIER
 
#define MM_REGISTER_VERSION   2
 
#define MM_DEFAULT_MM_SIZE   (40<<20)
 

Enumerations

enum  MM_mode { MM_IGNORE_MEMORY_EXCEEDED =0, MM_ABORT_ON_MEMORY_EXCEEDED, MM_WARN_ON_MEMORY_EXCEEDED }
 
enum  MM_err { MM_ERROR_NO_ERROR = 0, MM_ERROR_INSUFFICIENT_SPACE, MM_ERROR_UNDERFLOW, MM_ERROR_EXCESSIVE_ALLOCATION }
 
enum  MM_stream_usage { MM_STREAM_USAGE_OVERHEAD = 1, MM_STREAM_USAGE_BUFFER, MM_STREAM_USAGE_CURRENT, MM_STREAM_USAGE_MAXIMUM }
 

Variables

MM_register MM_manager
 

Macro Definition Documentation

◆ GRASS_MM_USE_EXCEPTION_SPECIFIER

#define GRASS_MM_USE_EXCEPTION_SPECIFIER

Definition at line 45 of file mm.h.

◆ MM_DEFAULT_MM_SIZE

#define MM_DEFAULT_MM_SIZE   (40<<20)

Definition at line 51 of file mm.h.

Referenced by mm_register_init::mm_register_init().

◆ MM_REGISTER_VERSION

#define MM_REGISTER_VERSION   2

Definition at line 48 of file mm.h.

Enumeration Type Documentation

◆ MM_err

enum MM_err
Enumerator
MM_ERROR_NO_ERROR 
MM_ERROR_INSUFFICIENT_SPACE 
MM_ERROR_UNDERFLOW 
MM_ERROR_EXCESSIVE_ALLOCATION 

Definition at line 63 of file mm.h.

◆ MM_mode

enum MM_mode
Enumerator
MM_IGNORE_MEMORY_EXCEEDED 
MM_ABORT_ON_MEMORY_EXCEEDED 
MM_WARN_ON_MEMORY_EXCEEDED 

Definition at line 55 of file mm.h.

◆ MM_stream_usage

Enumerator
MM_STREAM_USAGE_OVERHEAD 
MM_STREAM_USAGE_BUFFER 
MM_STREAM_USAGE_CURRENT 
MM_STREAM_USAGE_MAXIMUM 

Definition at line 72 of file mm.h.

Variable Documentation

◆ MM_manager

MM_register MM_manager

Definition at line 487 of file mm.cpp.

Referenced by getAvailableMemory(), and LOG_avail_memo().