GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
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 44 of file mm.h.

◆ MM_DEFAULT_MM_SIZE

#define MM_DEFAULT_MM_SIZE   (40 << 20)

Definition at line 50 of file mm.h.

◆ MM_REGISTER_VERSION

#define MM_REGISTER_VERSION   2

Definition at line 47 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 60 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 53 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 68 of file mm.h.

Variable Documentation

◆ MM_manager

MM_register MM_manager
extern

Definition at line 475 of file mm.cpp.

Referenced by getAvailableMemory(), LOG_avail_memo(), and mm_register_init::mm_register_init().