Scippy

SCIP

Solving Constraint Integer Programs

mem.h File Reference

Detailed Description

methods for block memory pools and memory buffers

Author
Tobias Achterberg

Definition in file mem.h.

#include "scip/def.h"
#include "scip/type_retcode.h"
#include "scip/type_mem.h"
#include "scip/struct_mem.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPmemCreate (SCIP_MEM **mem)
 
SCIP_RETCODE SCIPmemFree (SCIP_MEM **mem)
 
SCIP_Longint SCIPmemGetUsed (SCIP_MEM *mem)
 

Function Documentation

SCIP_RETCODE SCIPmemCreate ( SCIP_MEM **  mem)

creates block memory structures

Parameters
mempointer to block memory structure

Definition at line 32 of file mem.c.

References BMSallocMemory, BMScreateBlockMemory, NULL, SCIP_ALLOC, SCIP_OKAY, and SCIPdebugMessage.

Referenced by SCIPcreate().

SCIP_RETCODE SCIPmemFree ( SCIP_MEM **  mem)

frees block memory structures

Parameters
mempointer to block memory structure

Definition at line 50 of file mem.c.

References BMSdestroyBlockMemory, BMSfreeMemory, NULL, and SCIP_OKAY.

Referenced by SCIPfree().

SCIP_Longint SCIPmemGetUsed ( SCIP_MEM mem)

returns the total number of bytes used in block memory

Parameters
mempointer to block memory structure

Definition at line 65 of file mem.c.

References BMSgetBlockMemoryUsed, NULL, SCIP_Mem::probmem, and SCIP_Mem::setmem.

Referenced by SCIPgetMemUsed(), and SCIPstatUpdateMemsaveMode().