Scippy

SCIP

Solving Constraint Integer Programs

scip_mem.h File Reference

Detailed Description

public methods for memory management

Author
Tobias Achterberg
Timo Berthold
Thorsten Koch
Alexander Martin
Marc Pfetsch
Kati Wolter
Gregor Hendel
Leona Gottwald

Definition in file scip_mem.h.

#include "blockmemshell/memory.h"
#include "scip/def.h"
#include "scip/type_retcode.h"
#include "scip/type_scip.h"

Go to the source code of this file.

Macros

#define SCIPallocMemory(scip, ptr)
 
#define SCIPallocClearMemory(scip, ptr)
 
#define SCIPallocMemoryArray(scip, ptr, num)
 
#define SCIPallocClearMemoryArray(scip, ptr, num)
 
#define SCIPallocMemorySize(scip, ptr, size)
 
#define SCIPreallocMemoryArray(scip, ptr, newnum)
 
#define SCIPreallocMemorySize(scip, ptr, newsize)
 
#define SCIPduplicateMemory(scip, ptr, source)
 
#define SCIPduplicateMemoryArray(scip, ptr, source, num)
 
#define SCIPfreeMemory(scip, ptr)   BMSfreeMemory(ptr)
 
#define SCIPfreeMemoryNull(scip, ptr)   BMSfreeMemoryNull(ptr)
 
#define SCIPfreeMemoryArray(scip, ptr)   BMSfreeMemoryArray(ptr)
 
#define SCIPfreeMemoryArrayNull(scip, ptr)   BMSfreeMemoryArrayNull(ptr)
 
#define SCIPfreeMemorySize(scip, ptr)   BMSfreeMemorySize(ptr)
 
#define SCIPfreeMemorySizeNull(scip, ptr)   BMSfreeMemorySizeNull(ptr)
 
#define SCIPallocBlockMemory(scip, ptr)
 
#define SCIPallocClearBlockMemory(scip, ptr)
 
#define SCIPallocBlockMemoryArray(scip, ptr, num)
 
#define SCIPallocBlockMemorySize(scip, ptr, size)
 
#define SCIPallocClearBlockMemoryArray(scip, ptr, num)
 
#define SCIPreallocBlockMemoryArray(scip, ptr, oldnum, newnum)
 
#define SCIPreallocBlockMemorySize(scip, ptr, oldsize, newsize)
 
#define SCIPduplicateBlockMemory(scip, ptr, source)
 
#define SCIPduplicateBlockMemoryArray(scip, ptr, source, num)
 
#define SCIPensureBlockMemoryArray(scip, ptr, arraysizeptr, minsize)   ( (SCIPensureBlockMemoryArray_call((scip), (void**)(ptr), sizeof(**(ptr)), (arraysizeptr), (minsize))) )
 
#define SCIPfreeBlockMemory(scip, ptr)   BMSfreeBlockMemory(SCIPblkmem(scip), (ptr))
 
#define SCIPfreeBlockMemoryNull(scip, ptr)   BMSfreeBlockMemoryNull(SCIPblkmem(scip), (ptr))
 
#define SCIPfreeBlockMemoryArray(scip, ptr, num)   BMSfreeBlockMemoryArray(SCIPblkmem(scip), (ptr), (num))
 
#define SCIPfreeBlockMemoryArrayNull(scip, ptr, num)   BMSfreeBlockMemoryArrayNull(SCIPblkmem(scip), (ptr), (num))
 
#define SCIPfreeBlockMemorySize(scip, ptr, size)   BMSfreeBlockMemorySize(SCIPblkmem(scip), (ptr), (size))
 
#define SCIPfreeBlockMemorySizeNull(scip, ptr, size)   BMSfreeBlockMemorySizeNull(SCIPblkmem(scip), (ptr), (size))
 
#define SCIPallocBuffer(scip, ptr)
 
#define SCIPallocBufferArray(scip, ptr, num)
 
#define SCIPallocClearBufferArray(scip, ptr, num)
 
#define SCIPreallocBufferArray(scip, ptr, num)
 
#define SCIPduplicateBuffer(scip, ptr, source)
 
#define SCIPduplicateBufferArray(scip, ptr, source, num)
 
#define SCIPfreeBuffer(scip, ptr)   BMSfreeBufferMemorySize(SCIPbuffer(scip), (ptr))
 
#define SCIPfreeBufferNull(scip, ptr)   BMSfreeBufferMemoryNull(SCIPbuffer(scip), (ptr))
 
#define SCIPfreeBufferArray(scip, ptr)   BMSfreeBufferMemoryArray(SCIPbuffer(scip), (ptr))
 
#define SCIPfreeBufferArrayNull(scip, ptr)   BMSfreeBufferMemoryArrayNull(SCIPbuffer(scip), (ptr))
 
#define SCIPallocCleanBuffer(scip, ptr)
 
#define SCIPallocCleanBufferArray(scip, ptr, num)
 
#define SCIPfreeCleanBuffer(scip, ptr)   BMSfreeBufferMemorySize(SCIPcleanbuffer(scip), (ptr))
 
#define SCIPfreeCleanBufferNull(scip, ptr)   BMSfreeBufferMemoryNull(SCIPcleanbuffer(scip), (ptr))
 
#define SCIPfreeCleanBufferArray(scip, ptr)   BMSfreeBufferMemoryArray(SCIPcleanbuffer(scip), (ptr))
 
#define SCIPfreeCleanBufferArrayNull(scip, ptr)   BMSfreeBufferMemoryArrayNull(SCIPcleanbuffer(scip), (ptr))
 

Functions

BMS_BLKMEMSCIPblkmem (SCIP *scip)
 
BMS_BUFMEMSCIPbuffer (SCIP *scip)
 
BMS_BUFMEMSCIPcleanbuffer (SCIP *scip)
 
SCIP_Longint SCIPgetMemUsed (SCIP *scip)
 
SCIP_Longint SCIPgetMemTotal (SCIP *scip)
 
SCIP_Longint SCIPgetMemExternEstim (SCIP *scip)
 
int SCIPcalcMemGrowSize (SCIP *scip, int num)
 
SCIP_RETCODE SCIPensureBlockMemoryArray_call (SCIP *scip, void **arrayptr, size_t elemsize, int *arraysize, int minsize)
 
void SCIPprintMemoryDiagnostic (SCIP *scip)