block memory pools and memory buffers
Definition in file mem.c.
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) |
SCIP_Longint | SCIPmemGetTotal (SCIP_MEM *mem) |
SCIP_Longint | SCIPmemGetUsedBlockmemoryMax (SCIP_MEM *mem) |
SCIP_Longint | SCIPmemGetUnusedBlockmemoryMax (SCIP_MEM *mem) |
SCIP_Longint | SCIPmemGetAllocatedBlockmemoryMax (SCIP_MEM *mem) |
SCIP_RETCODE SCIPmemCreate | ( | SCIP_MEM ** | mem | ) |
creates block and buffer memory structures
mem | pointer to block and buffer memory structure |
Definition at line 33 of file mem.c.
References BMSallocMemory, BMScreateBlockMemory, BMScreateBufferMemory, FALSE, SCIP_ALLOC, SCIP_DEFAULT_MEM_ARRAYGROWFAC, SCIP_DEFAULT_MEM_ARRAYGROWINIT, SCIP_OKAY, SCIPdebugMessage, and TRUE.
Referenced by doScipCreate().
SCIP_RETCODE SCIPmemFree | ( | SCIP_MEM ** | mem | ) |
frees block and buffer memory structures
mem | pointer to block and buffer memory structure |
Definition at line 59 of file mem.c.
References BMSblockMemoryCheckEmpty, BMSdestroyBlockMemory, BMSdestroyBufferMemory, BMSfreeMemory, and SCIP_OKAY.
Referenced by SCIPfree().
SCIP_Longint SCIPmemGetUsed | ( | SCIP_MEM * | mem | ) |
returns the total number of bytes used in block and buffer memory
mem | pointer to block and buffer memory structure |
Definition at line 87 of file mem.c.
References BMSgetBlockMemoryUsed, BMSgetBufferMemoryUsed(), SCIP_Mem::buffer, SCIP_Mem::cleanbuffer, SCIP_Mem::probmem, and SCIP_Mem::setmem.
Referenced by SCIPgetMemUsed(), and SCIPstatUpdateMemsaveMode().
SCIP_Longint SCIPmemGetTotal | ( | SCIP_MEM * | mem | ) |
returns the total number of bytes in block and buffer memory
mem | pointer to block and buffer memory structure |
Definition at line 98 of file mem.c.
References BMSgetBlockMemoryAllocated, BMSgetBufferMemoryUsed(), SCIP_Mem::buffer, SCIP_Mem::cleanbuffer, SCIP_Mem::probmem, and SCIP_Mem::setmem.
Referenced by SCIPgetMemTotal().
SCIP_Longint SCIPmemGetUsedBlockmemoryMax | ( | SCIP_MEM * | mem | ) |
returns the maximal number of used bytes in block memory
mem | pointer to block and buffer memory structure |
Definition at line 109 of file mem.c.
References BMSgetBlockMemoryUsedMax, SCIP_Mem::probmem, and SCIP_Mem::setmem.
SCIP_Longint SCIPmemGetUnusedBlockmemoryMax | ( | SCIP_MEM * | mem | ) |
returns the maximal number of allocated but not used bytes in block memory
mem | pointer to block and buffer memory structure |
Definition at line 119 of file mem.c.
References BMSgetBlockMemoryUnusedMax, SCIP_Mem::probmem, and SCIP_Mem::setmem.
SCIP_Longint SCIPmemGetAllocatedBlockmemoryMax | ( | SCIP_MEM * | mem | ) |
returns the maximal number of allocated bytes in block memory
mem | pointer to block and buffer memory structure |
Definition at line 129 of file mem.c.
References BMSgetBlockMemoryAllocatedMax, SCIP_Mem::probmem, and SCIP_Mem::setmem.