memory allocation routines
Definition in file memory.h.
#include <limits.h>
#include <stdlib.h>
#include <stddef.h>
Go to the source code of this file.
Macros | |
#define | ASSIGN(pointerstarstar, voidstarfunction) (*(pointerstarstar) = (voidstarfunction)) |
#define | ASSIGNCHECK(pointerstarstar, voidstarfunction, origpointer) (*(pointerstarstar) = (voidstarfunction)) |
#define | EXTERN extern |
#define | SCIP_UNUSED(x) ((void) (x)) |
#define | BMSallocMemory(ptr) ASSIGN((ptr), BMSallocMemory_call( sizeof(**(ptr)), __FILE__, __LINE__ )) |
#define | BMSallocMemorySize(ptr, size) ASSIGN((ptr), BMSallocMemory_call( (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
#define | BMSallocMemoryCPP(size) BMSallocMemory_call( (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
#define | BMSallocClearMemorySize(ptr, size) ASSIGN((ptr), BMSallocClearMemory_call((size_t)(1), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
#define | BMSallocMemoryArray(ptr, num) ASSIGN((ptr), BMSallocMemoryArray_call((size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ )) |
#define | BMSallocMemoryArrayCPP(num, size) BMSallocMemoryArray_call( (size_t)(ptrdiff_t)(num), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
#define | BMSallocClearMemoryArray(ptr, num) ASSIGN((ptr), BMSallocClearMemory_call((size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ )) |
#define | BMSreallocMemorySize(ptr, size) ASSIGN((ptr), BMSreallocMemory_call((void*)(*(ptr)), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
#define | BMSreallocMemoryArray(ptr, num) ASSIGN((ptr), BMSreallocMemoryArray_call( *(ptr), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ )) |
#define | BMSclearMemory(ptr) BMSclearMemory_call( (void*)(ptr), sizeof(*(ptr)) ) |
#define | BMSclearMemoryArray(ptr, num) BMSclearMemory_call( (void*)(ptr), (size_t)(ptrdiff_t)(num)*sizeof(*(ptr)) ) |
#define | BMSclearMemorySize(ptr, size) BMSclearMemory_call( (void*)(ptr), (size_t)(ptrdiff_t)(size) ) |
#define | BMScopyMemory(ptr, source) BMScopyMemory_call( (void*)(ptr), (const void*)(source), sizeof(*(ptr)) ) |
#define | BMScopyMemoryArray(ptr, source, num) BMScopyMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(num)*sizeof(*(ptr)) ) |
#define | BMScopyMemorySize(ptr, source, size) BMScopyMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(size) ) |
#define | BMSmoveMemory(ptr, source) BMSmoveMemory_call( (void*)(ptr), (const void*)(source), sizeof(*(ptr)) ) |
#define | BMSmoveMemoryArray(ptr, source, num) BMSmoveMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(num) * sizeof(*(ptr)) ) |
#define | BMSmoveMemorySize(ptr, source, size) BMSmoveMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(size) ) |
#define | BMSduplicateMemory(ptr, source) ASSIGN((ptr), BMSduplicateMemory_call( (const void*)(source), sizeof(**(ptr)), __FILE__, __LINE__ )) |
#define | BMSduplicateMemorySize(ptr, source, size) ASSIGN((ptr), BMSduplicateMemory_call( (const void*)(source), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
#define | BMSduplicateMemoryArray(ptr, source, num) |
#define | BMSfreeMemory(ptr) BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define | BMSfreeMemoryNull(ptr) BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define | BMSfreeMemoryArray(ptr) BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define | BMSfreeMemoryArrayNull(ptr) BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define | BMSfreeMemorySize(ptr) BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define | BMSfreeMemorySizeNull(ptr) BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define | BMSgetPointerSize(ptr) BMSgetPointerSize_call(ptr) |
#define | BMSdisplayMemory() BMSdisplayMemory_call() |
#define | BMScheckEmptyMemory() BMScheckEmptyMemory_call() |
#define | BMSgetMemoryUsed() BMSgetMemoryUsed_call() |
#define | BMScreateChunkMemory(sz, isz, gbf) BMScreateChunkMemory_call( (sz), (isz), (gbf), __FILE__, __LINE__ ) |
#define | BMSclearChunkMemory(mem) BMSclearChunkMemory_call( (mem), __FILE__, __LINE__ ) |
#define | BMSdestroyChunkMemory(mem) BMSdestroyChunkMemory_call( (mem), __FILE__, __LINE__ ) |
#define | BMSallocChunkMemory(mem, ptr) ASSIGN((ptr), BMSallocChunkMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define | BMSduplicateChunkMemory(mem, ptr, source) |
#define | BMSfreeChunkMemory(mem, ptr) BMSfreeChunkMemory_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ ) |
#define | BMSfreeChunkMemoryNull(mem, ptr) BMSfreeChunkMemoryNull_call( (mem), (void**)(ptr) ) |
#define | BMSgarbagecollectChunkMemory(mem) BMSgarbagecollectChunkMemory_call(mem) |
#define | BMSgetChunkMemoryUsed(mem) BMSgetChunkMemoryUsed_call(mem) |
#define | BMScreateBlockMemory(csz, gbf) BMScreateBlockMemory_call( (csz), (gbf), __FILE__, __LINE__ ) |
#define | BMSclearBlockMemory(mem) BMSclearBlockMemory_call( (mem), __FILE__, __LINE__ ) |
#define | BMSdestroyBlockMemory(mem) BMSdestroyBlockMemory_call( (mem), __FILE__, __LINE__ ) |
#define | BMSallocBlockMemory(mem, ptr) ASSIGN((ptr), BMSallocBlockMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define | BMSallocBlockMemorySize(mem, ptr, size) ASSIGN((ptr), BMSallocBlockMemory_call((mem), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
#define | BMSallocBlockMemoryArray(mem, ptr, num) ASSIGN((ptr), BMSallocBlockMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define | BMSallocClearBlockMemoryArray(mem, ptr, num) ASSIGN((ptr), BMSallocClearBlockMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define | BMSreallocBlockMemorySize(mem, ptr, oldsize, newsize) |
#define | BMSreallocBlockMemoryArray(mem, ptr, oldnum, newnum) |
#define | BMSduplicateBlockMemory(mem, ptr, source) |
#define | BMSduplicateBlockMemoryArray(mem, ptr, source, num) |
#define | BMSfreeBlockMemory(mem, ptr) BMSfreeBlockMemory_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ ) |
#define | BMSfreeBlockMemoryNull(mem, ptr) BMSfreeBlockMemoryNull_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ ) |
#define | BMSfreeBlockMemoryArray(mem, ptr, num) BMSfreeBlockMemory_call( (mem), (void**)(ptr), (num)*sizeof(**(ptr)), __FILE__, __LINE__ ) |
#define | BMSfreeBlockMemoryArrayNull(mem, ptr, num) BMSfreeBlockMemoryNull_call( (mem), (void**)(ptr), (num)*sizeof(**(ptr)), __FILE__, __LINE__ ) |
#define | BMSfreeBlockMemorySize(mem, ptr, size) BMSfreeBlockMemory_call( (mem), (void**)(ptr), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
#define | BMSfreeBlockMemorySizeNull(mem, ptr, size) BMSfreeBlockMemory_call( (mem), (void**)(ptr), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
#define | BMSgarbagecollectBlockMemory(mem) BMSgarbagecollectBlockMemory_call(mem) |
#define | BMSgetBlockMemoryAllocated(mem) BMSgetBlockMemoryAllocated_call(mem) |
#define | BMSgetBlockMemoryUsed(mem) BMSgetBlockMemoryUsed_call(mem) |
#define | BMSgetBlockMemoryUnused(mem) BMSgetBlockMemoryUnused_call(mem) |
#define | BMSgetBlockMemoryUsedMax(mem) BMSgetBlockMemoryUsedMax_call(mem) |
#define | BMSgetBlockMemoryUnusedMax(mem) BMSgetBlockMemoryUnusedMax_call(mem) |
#define | BMSgetBlockMemoryAllocatedMax(mem) BMSgetBlockMemoryAllocatedMax_call(mem) |
#define | BMSgetBlockPointerSize(mem, ptr) BMSgetBlockPointerSize_call((mem), (ptr)) |
#define | BMSdisplayBlockMemory(mem) BMSdisplayBlockMemory_call(mem) |
#define | BMSblockMemoryCheckEmpty(mem) BMScheckEmptyBlockMemory_call(mem) |
#define | BMSallocBufferMemory(mem, ptr) ASSIGN((ptr), BMSallocBufferMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define | BMSallocBufferMemorySize(mem, ptr, size) ASSIGN((ptr), BMSallocBufferMemory_call((mem), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
#define | BMSreallocBufferMemorySize(mem, ptr, size) ASSIGN((ptr), BMSreallocBufferMemory_call((mem), (void*)(*(ptr)), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
#define | BMSallocBufferMemoryArray(mem, ptr, num) ASSIGN((ptr), BMSallocBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define | BMSallocClearBufferMemoryArray(mem, ptr, num) ASSIGN((ptr), BMSallocClearBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define | BMSreallocBufferMemoryArray(mem, ptr, num) |
#define | BMSduplicateBufferMemory(mem, ptr, source, size) ASSIGN((ptr), BMSduplicateBufferMemory_call((mem), (const void*)(source), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
#define | BMSduplicateBufferMemoryArray(mem, ptr, source, num) |
#define | BMSfreeBufferMemory(mem, ptr) BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define | BMSfreeBufferMemoryNull(mem, ptr) BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define | BMSfreeBufferMemoryArray(mem, ptr) BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define | BMSfreeBufferMemoryArrayNull(mem, ptr) BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define | BMSfreeBufferMemorySize(mem, ptr) BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__); |
#define | BMSfreeBufferMemorySizeNull(mem, ptr) BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define | BMScreateBufferMemory(fac, init, clean) BMScreateBufferMemory_call((fac), (init), (clean), __FILE__, __LINE__) |
#define | BMSdestroyBufferMemory(mem) BMSdestroyBufferMemory_call((mem), __FILE__, __LINE__) |
Typedefs | |
typedef struct BMS_ChkMem | BMS_CHKMEM |
typedef struct BMS_BlkMem | BMS_BLKMEM |
typedef struct BMS_BufMem | BMS_BUFMEM |
Functions | |
void * | BMSallocClearMemory_call (size_t num, size_t typesize, const char *filename, int line) |
void * | BMSallocMemory_call (size_t size, const char *filename, int line) |
void * | BMSallocMemoryArray_call (size_t num, size_t typesize, const char *filename, int line) |
void * | BMSreallocMemory_call (void *ptr, size_t size, const char *filename, int line) |
void * | BMSreallocMemoryArray_call (void *ptr, size_t num, size_t typesize, const char *filename, int line) |
void | BMSclearMemory_call (void *ptr, size_t size) |
void | BMScopyMemory_call (void *ptr, const void *source, size_t size) |
void | BMSmoveMemory_call (void *ptr, const void *source, size_t size) |
void * | BMSduplicateMemory_call (const void *source, size_t size, const char *filename, int line) |
void * | BMSduplicateMemoryArray_call (const void *source, size_t num, size_t typesize, const char *filename, int line) |
void | BMSfreeMemory_call (void **ptr, const char *filename, int line) |
void | BMSfreeMemoryNull_call (void **ptr, const char *filename, int line) |
size_t | BMSgetPointerSize_call (const void *ptr) |
void | BMSdisplayMemory_call (void) |
void | BMScheckEmptyMemory_call (void) |
long long | BMSgetMemoryUsed_call (void) |
void | BMSalignMemsize (size_t *size) |
int | BMSisAligned (size_t size) |
BMS_CHKMEM * | BMScreateChunkMemory_call (size_t size, int initchunksize, int garbagefactor, const char *filename, int line) |
void | BMSclearChunkMemory_call (BMS_CHKMEM *chkmem, const char *filename, int line) |
void | BMSdestroyChunkMemory_call (BMS_CHKMEM **chkmem, const char *filename, int line) |
void * | BMSallocChunkMemory_call (BMS_CHKMEM *chkmem, size_t size, const char *filename, int line) |
void * | BMSduplicateChunkMemory_call (BMS_CHKMEM *chkmem, const void *source, size_t size, const char *filename, int line) |
void | BMSfreeChunkMemory_call (BMS_CHKMEM *chkmem, void **ptr, size_t size, const char *filename, int line) |
void | BMSfreeChunkMemoryNull_call (BMS_CHKMEM *chkmem, void **ptr, size_t size, const char *filename, int line) |
void | BMSgarbagecollectChunkMemory_call (BMS_CHKMEM *chkmem) |
long long | BMSgetChunkMemoryUsed_call (const BMS_CHKMEM *chkmem) |
BMS_BLKMEM * | BMScreateBlockMemory_call (int initchunksize, int garbagefactor, const char *filename, int line) |
void | BMSclearBlockMemory_call (BMS_BLKMEM *blkmem, const char *filename, int line) |
void | BMSdestroyBlockMemory_call (BMS_BLKMEM **blkmem, const char *filename, int line) |
void * | BMSallocBlockMemory_call (BMS_BLKMEM *blkmem, size_t size, const char *filename, int line) |
void * | BMSallocBlockMemoryArray_call (BMS_BLKMEM *blkmem, size_t num, size_t typesize, const char *filename, int line) |
void * | BMSallocClearBlockMemoryArray_call (BMS_BLKMEM *blkmem, size_t num, size_t typesize, const char *filename, int line) |
void * | BMSreallocBlockMemory_call (BMS_BLKMEM *blkmem, void *ptr, size_t oldsize, size_t newsize, const char *filename, int line) |
void * | BMSreallocBlockMemoryArray_call (BMS_BLKMEM *blkmem, void *ptr, size_t oldnum, size_t newnum, size_t typesize, const char *filename, int line) |
void * | BMSduplicateBlockMemory_call (BMS_BLKMEM *blkmem, const void *source, size_t size, const char *filename, int line) |
void * | BMSduplicateBlockMemoryArray_call (BMS_BLKMEM *blkmem, const void *source, size_t num, size_t typesize, const char *filename, int line) |
void | BMSfreeBlockMemory_call (BMS_BLKMEM *blkmem, void **ptr, size_t size, const char *filename, int line) |
void | BMSfreeBlockMemoryNull_call (BMS_BLKMEM *blkmem, void **ptr, size_t size, const char *filename, int line) |
void | BMSgarbagecollectBlockMemory_call (BMS_BLKMEM *blkmem) |
long long | BMSgetBlockMemoryAllocated_call (const BMS_BLKMEM *blkmem) |
long long | BMSgetBlockMemoryUsed_call (const BMS_BLKMEM *blkmem) |
long long | BMSgetBlockMemoryUnused_call (const BMS_BLKMEM *blkmem) |
long long | BMSgetBlockMemoryUsedMax_call (const BMS_BLKMEM *blkmem) |
long long | BMSgetBlockMemoryUnusedMax_call (const BMS_BLKMEM *blkmem) |
long long | BMSgetBlockMemoryAllocatedMax_call (const BMS_BLKMEM *blkmem) |
size_t | BMSgetBlockPointerSize_call (const BMS_BLKMEM *blkmem, const void *ptr) |
void | BMSdisplayBlockMemory_call (const BMS_BLKMEM *blkmem) |
long long | BMScheckEmptyBlockMemory_call (const BMS_BLKMEM *blkmem) |
BMS_BUFMEM * | BMScreateBufferMemory_call (double arraygrowfac, int arraygrowinit, unsigned int clean, const char *filename, int line) |
void | BMSdestroyBufferMemory_call (BMS_BUFMEM **buffer, const char *filename, int line) |
void | BMSsetBufferMemoryArraygrowfac (BMS_BUFMEM *buffer, double arraygrowfac) |
void | BMSsetBufferMemoryArraygrowinit (BMS_BUFMEM *buffer, int arraygrowinit) |
void * | BMSallocBufferMemory_call (BMS_BUFMEM *buffer, size_t size, const char *filename, int line) |
void * | BMSallocBufferMemoryArray_call (BMS_BUFMEM *buffer, size_t num, size_t typesize, const char *filename, int line) |
void * | BMSallocClearBufferMemoryArray_call (BMS_BUFMEM *buffer, size_t num, size_t typesize, const char *filename, int line) |
void * | BMSreallocBufferMemory_call (BMS_BUFMEM *buffer, void *ptr, size_t size, const char *filename, int line) |
void * | BMSreallocBufferMemoryArray_call (BMS_BUFMEM *buffer, void *ptr, size_t num, size_t typesize, const char *filename, int line) |
void * | BMSduplicateBufferMemory_call (BMS_BUFMEM *buffer, const void *source, size_t size, const char *filename, int line) |
void * | BMSduplicateBufferMemoryArray_call (BMS_BUFMEM *buffer, const void *source, size_t num, size_t typesize, const char *filename, int line) |
void | BMSfreeBufferMemory_call (BMS_BUFMEM *buffer, void **ptr, const char *filename, int line) |
void | BMSfreeBufferMemoryNull_call (BMS_BUFMEM *buffer, void **ptr, const char *filename, int line) |
size_t | BMSgetNUsedBufferMemory (BMS_BUFMEM *buffer) |
long long | BMSgetBufferMemoryUsed (const BMS_BUFMEM *bufmem) |
void | BMSprintBufferMemory (BMS_BUFMEM *buffer) |
#define ASSIGN | ( | pointerstarstar, | |
voidstarfunction | |||
) | (*(pointerstarstar) = (voidstarfunction)) |
#define ASSIGNCHECK | ( | pointerstarstar, | |
voidstarfunction, | |||
origpointer | |||
) | (*(pointerstarstar) = (voidstarfunction)) |
#define BMSallocMemory | ( | ptr | ) | ASSIGN((ptr), BMSallocMemory_call( sizeof(**(ptr)), __FILE__, __LINE__ )) |
Definition at line 101 of file memory.h.
Referenced by BMScreateBlockMemory_call(), BMScreateBufferMemory_call(), create_graph(), createChkmem(), createClique(), createCliquehash(), createJobQueue(), createThreadPool(), doProfileCreate(), doScipCreate(), lpStoreSolVals(), pushPstack(), SCIP_DECL_CONCSOLVERCREATEINST(), SCIPactivityCreate(), SCIPbanditvtableCreate(), SCIPbranchcandCreate(), SCIPbranchruleCreate(), SCIPcliquetableCreate(), SCIPclockCreate(), SCIPcomprCreate(), SCIPconcsolverCreateInstance(), SCIPconcsolverTypeCreate(), SCIPconflictCreate(), SCIPconflicthdlrCreate(), SCIPconflictstoreCreate(), SCIPconshdlrCreate(), SCIPcutpoolCreate(), SCIPdialogCreate(), SCIPdialoghdlrAddInputLine(), SCIPdialoghdlrCreate(), SCIPdispCreate(), SCIPeventhdlrCreate(), SCIPeventqueueCreate(), SCIPexprintCreate(), SCIPheurCreate(), SCIPinterruptCreate(), SCIPlpCreate(), SCIPmemCreate(), SCIPmessagehdlrCreate(), SCIPnlpCreate(), SCIPnlpiCreate(), SCIPnlpiOracleCreate(), SCIPnodepqCreate(), SCIPnodeselCreate(), SCIPparamsetCreate(), SCIPpqueueCreate(), SCIPpresolCreate(), SCIPpricerCreate(), SCIPpricestoreCreate(), SCIPprimalCreate(), SCIPprobCreate(), SCIPpropCreate(), SCIPqueueCreate(), SCIPreaderCreate(), SCIPregressionCreate(), SCIPrelaxationCreate(), SCIPrelaxCreate(), SCIPreoptCreate(), SCIPsepaCreate(), SCIPsepastoreCreate(), SCIPsparseSolCreate(), SCIPstatCreate(), SCIPsyncstoreCreate(), SCIPtableCreate(), SCIPtpiCreateJob(), SCIPtreeCreate(), SCIPvisualCreate(), tcliqueCreate(), xmlNewAttr(), and xmlNewNode().
#define BMSallocMemorySize | ( | ptr, | |
size | |||
) | ASSIGN((ptr), BMSallocMemory_call( (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
Definition at line 102 of file memory.h.
Referenced by BMSallocBufferMemory_work(), createChunk(), SCIPmessageVFPrintDialog(), SCIPmessageVFPrintInfo(), SCIPmessageVFPrintVerbInfo(), SCIPmessageVFPrintWarning(), and SCIPmessageVPrintError().
#define BMSallocMemoryCPP | ( | size | ) | BMSallocMemory_call( (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
#define BMSallocClearMemorySize | ( | ptr, | |
size | |||
) | ASSIGN((ptr), BMSallocClearMemory_call((size_t)(1), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
Definition at line 104 of file memory.h.
Referenced by BMSallocBufferMemory_work().
#define BMSallocMemoryArray | ( | ptr, | |
num | |||
) | ASSIGN((ptr), BMSallocMemoryArray_call((size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ )) |
Definition at line 105 of file memory.h.
Referenced by allocDiveChgSideArrays(), branch(), create_graph(), createClique(), createCliquehash(), createThreadPool(), doCdata(), doProfileCreate(), eval(), exprgraphNodeEval(), exprgraphNodeUpdateBounds(), F77_FUNC(), getAttrval(), getName(), heurAddDiveset(), procPcdata(), SCIPdialoghdlrCreate(), SCIPdigraphComputeDirectedComponents(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphTopoSortComponents(), SCIPexprCheckCurvature(), SCIPexprEval(), SCIPexprEvalInt(), SCIPexprgraphGetNodePolynomialMonomialCurvature(), SCIPexprgraphSimplify(), SCIPexprgraphUpdateNodeBoundsCurvature(), SCIPexprtreePrintWithNames(), SCIPexprtreeSimplify(), SCIPmessagehdlrCreate(), SCIPreoptCreate(), SCIPsetModifiedDefaultSettingsIpopt(), SCIPsolveLinearProb(), SCIPsparseSolCreate(), SCIPtreeStoreRelaxSol(), tcliqueAddEdge(), tcliqueColoring(), tcliqueLoadFile(), tcliqueMaxClique(), and xmlProcess().
#define BMSallocMemoryArrayCPP | ( | num, | |
size | |||
) | BMSallocMemoryArray_call( (size_t)(ptrdiff_t)(num), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
#define BMSallocClearMemoryArray | ( | ptr, | |
num | |||
) | ASSIGN((ptr), BMSallocClearMemory_call((size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ )) |
Definition at line 107 of file memory.h.
Referenced by reoptSaveNewObj(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphTopoSortComponents(), and SCIPsparseSolCreate().
#define BMSreallocMemorySize | ( | ptr, | |
size | |||
) | ASSIGN((ptr), BMSreallocMemory_call((void*)(*(ptr)), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
Definition at line 108 of file memory.h.
Referenced by BMSallocBufferMemory_work(), and BMSreallocBufferMemory_work().
#define BMSreallocMemoryArray | ( | ptr, | |
num | |||
) | ASSIGN((ptr), BMSreallocMemoryArray_call( *(ptr), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ )) |
Definition at line 109 of file memory.h.
Referenced by BMSallocBufferMemory_work(), cliquetableEnsureSize(), conflictEnsureConflictsetsMem(), conflictEnsureProofsetsMem(), conflictEnsureTmpbdchginfosMem(), conshdlrEnsureCheckconssMem(), conshdlrEnsureConssMem(), conshdlrEnsureEnfoconssMem(), conshdlrEnsureInitconssMem(), conshdlrEnsurePropconssMem(), conshdlrEnsureSepaconssMem(), conshdlrEnsureUpdateconssMem(), cutpoolEnsureCutsMem(), doCdata(), ensureChgcolsSize(), ensureChgrowsSize(), ensureCliquehashSize(), ensureColsSize(), ensureExistingsolsSize(), ensureExterncandsSize(), ensureLazycolsSize(), ensureLpcandsSize(), ensureLpicolsSize(), ensureLpirowsSize(), ensurePartialsolsSize(), ensureProfileSize(), ensurePropagationStorage(), ensurePseudocandsSize(), ensureRowsSize(), ensureRunSize(), ensureSolsSize(), ensureSubdialogMem(), eventqueueEnsureEventsMem(), getAttrval(), getName(), heurAddDiveset(), nodepqResize(), paramsetAdd(), pqueueResize(), pricestoreEnsureBdviolvarsMem(), pricestoreEnsureVarsMem(), probEnsureConssMem(), probEnsureDeletedvarsMem(), probEnsureFixedvarsMem(), probEnsureVarsMem(), procPcdata(), queueResize(), reallocDiveChgSideArrays(), reoptSaveNewObj(), SCIPsetFindConcsolverType(), SCIPsetIncludeBanditvtable(), SCIPsetIncludeBranchrule(), SCIPsetIncludeCompr(), SCIPsetIncludeConflicthdlr(), SCIPsetIncludeHeur(), SCIPsetIncludeNlpi(), SCIPsetIncludeNodesel(), SCIPsetIncludePresol(), SCIPsetIncludePricer(), SCIPsetIncludeRelax(), SCIPsetIncludeSepa(), SCIPsetIncludeTable(), SCIPsetReinsertConshdlrSepaPrio(), SCIPsetSetHeuristics(), SCIPsetSetSeparating(), SCIPsetSortBranchrulesName(), SCIPsetSortComprs(), SCIPsetSortPropsPresol(), sepastoreEnsureCutsMem(), tcliqueEnsureSizeCachedEdges(), tcliqueEnsureSizeEdges(), tcliqueEnsureSizeNodes(), treeEnsureChildrenMem(), treeEnsurePathMem(), and treeEnsurePendingbdchgsMem().
#define BMSclearMemory | ( | ptr | ) | BMSclearMemory_call( (void*)(ptr), sizeof(*(ptr)) ) |
Definition at line 111 of file memory.h.
Referenced by consdataCreate(), consdataCreateEmpty(), createConstraint(), doProfileCreate(), doScipCreate(), exprgraphCreateNode(), SCIP_DECL_NLPICREATEPROBLEM(), SCIPcreateConsAbspower(), SCIPcreateConsBivariate(), SCIPcreateNlpSolverAll(), SCIPcreateNlpSolverWorhp(), SCIPcreateRowprep(), SCIPexprgraphCreate(), SCIPincludeConshdlrAbspower(), SCIPincludeConshdlrBivariate(), SCIPincludeConshdlrNonlinear(), SCIPincludeConshdlrQuadratic(), SCIPincludeHeurAlns(), SCIPincludeHeurDualval(), SCIPincludeHeurMpec(), SCIPincludeHeurMultistart(), SCIPincludeHeurSubNlp(), SCIPincludePropNlobbt(), SCIPincludeSepaConvexproj(), SCIPincludeSepaGauge(), SCIPnlpiOracleCreate(), sepadataCreate(), xmlNewAttr(), and xmlNewNode().
#define BMSclearMemoryArray | ( | ptr, | |
num | |||
) | BMSclearMemory_call( (void*)(ptr), (size_t)(ptrdiff_t)(num)*sizeof(*(ptr)) ) |
Definition at line 112 of file memory.h.
Referenced by alnsFixMoreVariables(), alnsUnfixVariables(), branch(), branchruledataEnsureNlcount(), buildFlowCover(), calcTwoRowBnds(), checkCurvature(), checkFactorable(), checkForOverlapping(), checkSolution(), checkSystemGF2(), checkViolations(), cleanupNetwork(), cliquePresolve(), computeCut(), computeED(), computeGradient(), computeMinDistance(), conflictAnalyzeLP(), conflictsetCalcInsertDepth(), countNonlinearities(), createCoveringProblem(), createSubSCIP(), createTcliqueGraph(), dataReset(), detectImpliedBounds(), detectParallelCols(), ensureMemorySize(), evalFunctionGradient(), exprgraphEnsureDepth(), exprgraphNodeAddChildren(), exprgraphNodeSimplify(), exprsimplifyAddChildren(), exprsimplifyRemovePolynomialUnusedChildren(), exprsimplifySeparateLinearFromPolynomial(), exprUnconvertPolynomial(), extractCapacityRows(), extractFlow(), extractNodes(), fillDigraph(), findAggregation(), generateAverageRay(), generateClusterCuts(), getFarkasProof(), getFlowCover(), getGMIFromRow(), getInputString(), getLiftingSequenceGUB(), getMaxactImplicObjchg(), getNextLine(), getNodeIdx(), identifySourcesTargets(), improvePoint(), initData(), initPropdata(), insertSortedRootNeighbors(), isCandidate(), labelSortStable(), lpbdchgsCreate(), lpbdchgsReset(), lpCleanupCols(), lpCleanupRows(), lpRemoveObsoleteCols(), lpRemoveObsoleteRows(), mcfnetworkExtract(), mcfnetworkFill(), neighborhoodStatsReset(), nlpSolve(), nlrowRemoveFixedQuadVars(), nodepartitionCreate(), preprocessCliques(), presolveConsEffectiveHorizon(), presolvePropagateCons(), presolveRemoveFixedVariables(), printPseudobooleanCons(), processNlRow(), propagateCons(), readOPBFile(), reformulate(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeRedundantConssAndNonzeros(), resolvePropagationCoretimes(), runBoundHeuristic(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLPISOLVE(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_QUADCONSUPGD(), SCIPaggrRowCreate(), SCIPboolarrayClear(), SCIPboundstoreClear(), SCIPcreateConsSOC(), SCIPcreateNlpiProb(), SCIPdigraphComputeUndirectedComponents(), SCIPexprgraphGetSubtreeVarsUsage(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprtreeCreate(), SCIPexprtreeGetVarsUsage(), SCIPexprtreeRemoveFixedVars(), SCIPgetBinvarRepresentatives(), SCIPhashmapRemoveAll(), SCIPhashsetRemoveAll(), SCIPhashtableRemoveAll(), SCIPintarrayClear(), SCIPlinConsStatsReset(), SCIPlpComputeRelIntPoint(), SCIPlpGetSol(), SCIPlpRemoveRedundantRows(), SCIPmatrixCreate(), SCIPmatrixGetParallelCols(), SCIPmatrixGetParallelRows(), SCIPnlpGetVarsNonlinearity(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPprimalTransformSol(), SCIPptrarrayClear(), SCIPrealarrayClear(), SCIPreoptAddCons(), SCIPseparateRelaxedKnapsack(), SCIPsetModifiedDefaultSettingsIpopt(), SCIPshrinkDisjunctiveVarSet(), SCIPwritePbm(), searchEcAggrWithCliques(), separateCuts(), separateGLS(), separateHeur(), sequentialUpAndDownLifting(), sequentialUpAndDownLiftingGUB(), setColumnMajorFormat(), setupAggregationData(), shortenConss(), singletonColumnStuffing(), stableSort(), superadditiveUpLifting(), tcliqueAddEdge(), tcliqueColoring(), tcliquegraphConstructCliqueTable(), tryUpgradingXor(), updatePrimalRay(), and updateVariableDegrees().
#define BMSclearMemorySize | ( | ptr, | |
size | |||
) | BMSclearMemory_call( (void*)(ptr), (size_t)(ptrdiff_t)(size) ) |
Definition at line 113 of file memory.h.
Referenced by BMSallocBufferMemory_work(), BMSallocClearBlockMemoryArray_call(), and BMSallocClearBufferMemoryArray_call().
#define BMScopyMemory | ( | ptr, | |
source | |||
) | BMScopyMemory_call( (void*)(ptr), (const void*)(source), sizeof(*(ptr)) ) |
#define BMScopyMemoryArray | ( | ptr, | |
source, | |||
num | |||
) | BMScopyMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(num)*sizeof(*(ptr)) ) |
Definition at line 116 of file memory.h.
Referenced by computeConsAndDataChanges(), conflictsetCopy(), createSolTuple(), cutsRoundMIR(), cutsRoundStrongCG(), DECL_VARFIXINGS(), determineVariableFixings(), evaluateWorhpRun(), extendCliqueZeroWeight(), F77_FUNC(), heurExec(), initWorhp(), mergeAndCleanQuadVarTerms(), mod2rowAddRow(), newSolution(), nlrowaggrCreate(), nlrowaggrStoreLinearTerms(), nlrowaggrStoreQuadraticVars(), polynomialdataAddMonomials(), removeConstraintsDueToNegCliques(), rollingHorizonStoreDistances(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSTRANS(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLPIDELCONSSET(), SCIP_DECL_NLPIDELVARSET(), SCIP_DECL_NLPISETINITIALGUESS(), SCIP_DECL_NLPISOLVE(), SCIPaddRowprepTerms(), SCIPboolarrayExtend(), SCIPcalcMIR(), SCIPcalcStrongCG(), SCIPconshdlrsStorePropagationStatus(), SCIPcreateConsPseudobooleanWithConss(), SCIPcutGenerationHeuristicCMIR(), SCIPdigraphComputeUndirectedComponents(), SCIPexprAddMonomialFactors(), SCIPexprAddToLinear(), SCIPexprCreateLinear(), SCIPexprgraphAddExprtreeSum(), SCIPexprgraphCreateNodeLinear(), SCIPexprgraphReplaceVarByLinearSum(), SCIPexprgraphSetVarsBounds(), SCIPexprtreeAddVars(), SCIPexprtreeSetParams(), SCIPexprtreeSetVars(), SCIPgetBinvarRepresentatives(), SCIPgetRandomSubset(), SCIPheurPassIndicator(), SCIPintarrayExtend(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlpSetInitialGuess(), SCIPptrarrayExtend(), SCIPrandomGetSubset(), SCIPrealarrayExtend(), SCIPsetModifiedDefaultSettingsIpopt(), SCIPsolveLinearProb(), SCIPsolveLinearProb3(), SCIPvarsGetActiveVars(), tcliqueColoring(), tcliqueLoadFile(), tryToInsert(), and xmlProcess().
#define BMScopyMemorySize | ( | ptr, | |
source, | |||
size | |||
) | BMScopyMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(size) ) |
Definition at line 117 of file memory.h.
Referenced by BMSduplicateBlockMemory_call(), BMSduplicateBlockMemoryArray_call(), BMSduplicateBufferMemory_call(), BMSduplicateBufferMemoryArray_call(), BMSduplicateChunkMemory_call(), BMSreallocBlockMemory_call(), and BMSreallocBlockMemoryArray_call().
#define BMSmoveMemory | ( | ptr, | |
source | |||
) | BMSmoveMemory_call( (void*)(ptr), (const void*)(source), sizeof(*(ptr)) ) |
#define BMSmoveMemoryArray | ( | ptr, | |
source, | |||
num | |||
) | BMSmoveMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(num) * sizeof(*(ptr)) ) |
Definition at line 120 of file memory.h.
Referenced by mod2rowUnlinkCol(), SCIPboolarrayExtend(), SCIPcliqueAddVar(), SCIPcliquelistAdd(), SCIPcliquelistDel(), SCIPimplicsAdd(), SCIPimplicsDel(), and SCIPqueueInsert().
#define BMSmoveMemorySize | ( | ptr, | |
source, | |||
size | |||
) | BMSmoveMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(size) ) |
#define BMSduplicateMemory | ( | ptr, | |
source | |||
) | ASSIGN((ptr), BMSduplicateMemory_call( (const void*)(source), sizeof(**(ptr)), __FILE__, __LINE__ )) |
#define BMSduplicateMemorySize | ( | ptr, | |
source, | |||
size | |||
) | ASSIGN((ptr), BMSduplicateMemory_call( (const void*)(source), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )) |
#define BMSduplicateMemoryArray | ( | ptr, | |
source, | |||
num | |||
) |
Definition at line 125 of file memory.h.
Referenced by alnsIncludeNeighborhood(), BMSallocBlockMemory_work(), handleDecl(), paramCreate(), paramCreateChar(), paramCreateString(), procPcdata(), SCIP_DECL_NLPISETINITIALGUESS(), SCIPbanditvtableCreate(), SCIPbranchruleCreate(), SCIPcomprCreate(), SCIPconcsolverCreateInstance(), SCIPconcsolverTypeCreate(), SCIPconflicthdlrCreate(), SCIPconshdlrCreate(), SCIPdialogCreate(), SCIPdialoghdlrAddInputLine(), SCIPdispAutoActivate(), SCIPdispCreate(), SCIPdivesetCreate(), SCIPeventhdlrCreate(), SCIPheurCreate(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPnlpiCreate(), SCIPnodeselCreate(), SCIPparamSetString(), SCIPpresolCreate(), SCIPpricerCreate(), SCIPprobCreate(), SCIPprobSetName(), SCIPpropCreate(), SCIPreaderCreate(), SCIPrelaxCreate(), SCIPsepaCreate(), SCIPsetIncludeNlpi(), SCIPsolveLinearProb(), SCIPsparseSolCreate(), SCIPtableCreate(), writeProblem(), xmlNewAttr(), and xmlNewNode().
#define BMSfreeMemory | ( | ptr | ) | BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ ) |
Definition at line 127 of file memory.h.
Referenced by BMSdestroyBlockMemory_call(), BMSdestroyBufferMemory_call(), BMSfreeBufferMemory_call(), BMSfreeBufferMemoryNull_call(), create_graph(), destroyChkmem(), destroyChunk(), dialogFree(), free_graph(), freeClique(), freeCliquehash(), freeJobQueue(), freeReoptTree(), freeSolTree(), freeThreadPool(), linelistFree(), messagehdlrFree(), popPstack(), SCIP_DECL_CONCSOLVERDESTROYINST(), SCIP_DECL_CONCSOLVERTYPEFREEDATA(), SCIPactivityFree(), SCIPbanditvtableFree(), SCIPbranchcandFree(), SCIPbranchruleFree(), SCIPcliquetableFree(), SCIPclockFree(), SCIPcomprFree(), SCIPconcsolverDestroyInstance(), SCIPconcsolverTypeFree(), SCIPconflictFree(), SCIPconflicthdlrFree(), SCIPconshdlrFree(), SCIPcutpoolFree(), SCIPdialogCreate(), SCIPdialoghdlrAddInputLine(), SCIPdialoghdlrFree(), SCIPdispFree(), SCIPeventhdlrFree(), SCIPeventqueueFree(), SCIPexprintFree(), SCIPfree(), SCIPheurFree(), SCIPinterruptFree(), SCIPlpFree(), SCIPmemFree(), SCIPmessageVFPrintDialog(), SCIPmessageVFPrintInfo(), SCIPmessageVFPrintVerbInfo(), SCIPmessageVFPrintWarning(), SCIPmessageVPrintError(), SCIPnlpFree(), SCIPnlpiFree(), SCIPnlpiOracleFree(), SCIPnodepqDestroy(), SCIPnodeselFree(), SCIPparamsetFree(), SCIPpqueueFree(), SCIPpresolFree(), SCIPpricerFree(), SCIPpricestoreFree(), SCIPprimalFree(), SCIPprobFree(), SCIPprofileFree(), SCIPpropFree(), SCIPqueueFree(), SCIPreaderFree(), SCIPregressionFree(), SCIPrelaxationFree(), SCIPrelaxFree(), SCIPreoptFree(), SCIPsepaFree(), SCIPsepastoreFree(), SCIPsetFree(), SCIPsparseSolFree(), SCIPstatFree(), SCIPsyncstoreRelease(), SCIPtableFree(), SCIPtreeFree(), SCIPvisualFree(), tcliqueFree(), xmlFreeAttr(), and xmlFreeNode().
#define BMSfreeMemoryNull | ( | ptr | ) | BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ ) |
Definition at line 128 of file memory.h.
Referenced by SCIPconflictstoreFree(), and SCIPlpFree().
#define BMSfreeMemoryArray | ( | ptr | ) | BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ ) |
Definition at line 129 of file memory.h.
Referenced by alnsFreeNeighborhood(), branch(), create_graph(), divesetFree(), doCdata(), exprgraphNodeEval(), exprgraphNodeUpdateBounds(), F77_FUNC(), freeClique(), freeCliquehash(), freeThreadPool(), getAttrval(), getName(), handleDecl(), handleEndtag(), handleStarttag(), linelistFree(), paramFree(), probingnodeFree(), procInTag(), procPcdata(), SCIPbanditvtableFree(), SCIPbranchruleFree(), SCIPcomprFree(), SCIPconcsolverDestroyInstance(), SCIPconcsolverTypeFree(), SCIPconflicthdlrFree(), SCIPconshdlrFree(), SCIPdialoghdlrFree(), SCIPdispAutoActivate(), SCIPdispFree(), SCIPeventhdlrFree(), SCIPexprEval(), SCIPexprEvalInt(), SCIPexprgraphSimplify(), SCIPexprtreePrintWithNames(), SCIPexprtreeSimplify(), SCIPheurFree(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPnlpiFree(), SCIPnodeselFree(), SCIPpqueueFree(), SCIPpresolFree(), SCIPpricerFree(), SCIPprobFree(), SCIPprobSetName(), SCIPpropFree(), SCIPqueueFree(), SCIPreaderFree(), SCIPrelaxFree(), SCIPreoptFree(), SCIPsepaFree(), SCIPsolveLinearProb(), SCIPsparseSolFree(), SCIPtableFree(), tcliqueColoring(), tcliqueFlush(), tcliqueFree(), tcliqueLoadFile(), tcliqueMaxClique(), writeProblem(), xmlFreeAttr(), xmlFreeNode(), and xmlProcess().
#define BMSfreeMemoryArrayNull | ( | ptr | ) | BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ ) |
Definition at line 130 of file memory.h.
Referenced by BMSdestroyBufferMemory_call(), destroyChkmem(), dialogFree(), eval(), freeDiveChgSideArrays(), invalidateSolution(), messagehdlrFree(), paramFree(), SCIP_DECL_NLPIADDVARS(), SCIP_DECL_NLPIDELVARSET(), SCIP_DECL_NLPIFREEPROBLEM(), SCIP_DECL_NLPISETINITIALGUESS(), SCIPbranchcandFree(), SCIPcliquetableFree(), SCIPconflictFree(), SCIPconshdlrFree(), SCIPconshdlrInitLP(), SCIPcutpoolFree(), SCIPdialogCreate(), SCIPdigraphComputeDirectedComponents(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphTopoSortComponents(), SCIPeventqueueFree(), SCIPexprCheckCurvature(), SCIPexprgraphGetNodePolynomialMonomialCurvature(), SCIPexprgraphUpdateNodeBoundsCurvature(), SCIPheurFree(), SCIPlpFree(), SCIPnodepqDestroy(), SCIPparamsetFree(), SCIPparamSetString(), SCIPpricestoreFree(), SCIPprimalFree(), SCIPprobFree(), SCIPprofileFree(), SCIPsepastoreClearCuts(), SCIPsepastoreFree(), SCIPsetFree(), SCIPsolveLinearProb(), SCIPtreeFree(), and tcliqueFree().
#define BMSfreeMemorySize | ( | ptr | ) | BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define BMSfreeMemorySizeNull | ( | ptr | ) | BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ ) |
#define BMSgetPointerSize | ( | ptr | ) | BMSgetPointerSize_call(ptr) |
#define BMSdisplayMemory | ( | ) | BMSdisplayMemory_call() |
Definition at line 136 of file memory.h.
Referenced by SCIPprintMemoryDiagnostic().
#define BMScheckEmptyMemory | ( | ) | BMScheckEmptyMemory_call() |
Definition at line 137 of file memory.h.
Referenced by main(), runSCIP(), runShell(), and SCIPrunShell().
#define BMSgetMemoryUsed | ( | ) | BMSgetMemoryUsed_call() |
#define BMScreateChunkMemory | ( | sz, | |
isz, | |||
gbf | |||
) | BMScreateChunkMemory_call( (sz), (isz), (gbf), __FILE__, __LINE__ ) |
Definition at line 289 of file memory.h.
Referenced by tcliqueMaxClique().
#define BMSclearChunkMemory | ( | mem | ) | BMSclearChunkMemory_call( (mem), __FILE__, __LINE__ ) |
Definition at line 290 of file memory.h.
Referenced by tcliqueColoring().
#define BMSdestroyChunkMemory | ( | mem | ) | BMSdestroyChunkMemory_call( (mem), __FILE__, __LINE__ ) |
Definition at line 291 of file memory.h.
Referenced by tcliqueMaxClique().
#define BMSallocChunkMemory | ( | mem, | |
ptr | |||
) | ASSIGN((ptr), BMSallocChunkMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__)) |
Definition at line 293 of file memory.h.
Referenced by tcliqueColoring(), and updateNeighbor().
#define BMSduplicateChunkMemory | ( | mem, | |
ptr, | |||
source | |||
) |
#define BMSfreeChunkMemory | ( | mem, | |
ptr | |||
) | BMSfreeChunkMemory_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ ) |
Definition at line 296 of file memory.h.
Referenced by tcliqueColoring(), and updateNeighbor().
#define BMSfreeChunkMemoryNull | ( | mem, | |
ptr | |||
) | BMSfreeChunkMemoryNull_call( (mem), (void**)(ptr) ) |
#define BMSgarbagecollectChunkMemory | ( | mem | ) | BMSgarbagecollectChunkMemory_call(mem) |
#define BMSgetChunkMemoryUsed | ( | mem | ) | BMSgetChunkMemoryUsed_call(mem) |
#define BMScreateBlockMemory | ( | csz, | |
gbf | |||
) | BMScreateBlockMemory_call( (csz), (gbf), __FILE__, __LINE__ ) |
Definition at line 429 of file memory.h.
Referenced by SCIPmemCreate().
#define BMSclearBlockMemory | ( | mem | ) | BMSclearBlockMemory_call( (mem), __FILE__, __LINE__ ) |
#define BMSdestroyBlockMemory | ( | mem | ) | BMSdestroyBlockMemory_call( (mem), __FILE__, __LINE__ ) |
Definition at line 431 of file memory.h.
Referenced by SCIPmemFree().
#define BMSallocBlockMemory | ( | mem, | |
ptr | |||
) | ASSIGN((ptr), BMSallocBlockMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__)) |
Definition at line 433 of file memory.h.
Referenced by addGlobalCut(), btnodeCreateEmpty(), checkMemDualCons(), cliqueCreateWithData(), cliquelistCreate(), collectDualInformation(), colStoreSolVals(), conflictsetCopy(), conflictsetCreate(), conssetchgCreate(), createConstraint(), createReoptnode(), createSolTree(), cutCreate(), exprCreate(), exprgraphCreateNode(), exprUnconvertPolynomial(), forkCreate(), forkFree(), holelistCreate(), implicsCreate(), mod2MatrixAddOrigRow(), multihashlistAppend(), nodeCreate(), paramCreate(), polynomialdataCreate(), probingnodeCreate(), proofsetCreate(), pseudoforkCreate(), quadraticdataCreate(), rowStoreSolVals(), saveLocalConssData(), SCIP_DECL_NLPICREATEPROBLEM(), SCIPbanditCreate(), SCIPbanditCreateEpsgreedy(), SCIPbanditCreateExp3(), SCIPbanditCreateUcb(), SCIPbdchginfoCreate(), SCIPboolarrayCreate(), SCIPbtCreate(), SCIPcolCreate(), SCIPconsCreate(), SCIPcreateNlpSolverAll(), SCIPcreateNlpSolverFilterSQP(), SCIPcreateNlpSolverWorhp(), SCIPdigraphCopy(), SCIPdigraphCreate(), SCIPdisjointsetCreate(), SCIPdivesetCreate(), SCIPeventCreateGholeAdded(), SCIPeventCreateGholeRemoved(), SCIPeventCreateGlbChanged(), SCIPeventCreateGubChanged(), SCIPeventCreateImplAdded(), SCIPeventCreateLbChanged(), SCIPeventCreateLholeAdded(), SCIPeventCreateLholeRemoved(), SCIPeventCreateObjChanged(), SCIPeventCreateRowAddedLP(), SCIPeventCreateRowAddedSepa(), SCIPeventCreateRowCoefChanged(), SCIPeventCreateRowConstChanged(), SCIPeventCreateRowDeletedLP(), SCIPeventCreateRowDeletedSepa(), SCIPeventCreateRowSideChanged(), SCIPeventCreateSync(), SCIPeventCreateUbChanged(), SCIPeventCreateVarAdded(), SCIPeventCreateVarDeleted(), SCIPeventCreateVarFixed(), SCIPeventCreateVarUnlocked(), SCIPeventfilterCreate(), SCIPexprCreateMonomial(), SCIPexprCreateUser(), SCIPexprgraphCreate(), SCIPexprgraphCreateNodeUser(), SCIPexprtreeCreate(), SCIPhashmapCreate(), SCIPhashsetCreate(), SCIPhashtableCreate(), SCIPhistoryCreate(), SCIPintarrayCreate(), SCIPmultihashCreate(), SCIPnlpStatisticsCreate(), SCIPnlrowCreate(), SCIPptrarrayCreate(), SCIPrandomCreate(), SCIPrealarrayCreate(), SCIPreoptnodeAddCons(), SCIPreoptSplitRoot(), SCIProwCreate(), SCIPsolCopy(), SCIPsolCreate(), SCIPsolCreateOriginal(), SCIPsolCreatePartial(), SCIPsolCreateUnknown(), SCIPvaluehistoryCreate(), solnodeAddChild(), varCreate(), and vboundsCreate().
#define BMSallocBlockMemorySize | ( | mem, | |
ptr, | |||
size | |||
) | ASSIGN((ptr), BMSallocBlockMemory_call((mem), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
Definition at line 434 of file memory.h.
Referenced by domchgCreate().
#define BMSallocBlockMemoryArray | ( | mem, | |
ptr, | |||
num | |||
) | ASSIGN((ptr), BMSallocBlockMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
Definition at line 435 of file memory.h.
Referenced by addGlobalCut(), checkMemDualCons(), checkMemGlbCons(), conflictsetCopy(), conflictstoreAddOrigConflict(), conflictstoreEnsureMem(), createReopttree(), createSolTree(), ensureSuccessorsSize(), evalFunctionGradient(), evalFunctionValue(), evaluateWorhpRun(), exprgraphAddExpr(), exprgraphFindParentByOperator(), exprgraphNodeCreateExpr(), exprgraphNodePropagateBounds(), exprgraphNodeRemovePolynomialDuplicateChildren(), exprgraphNodeRemovePolynomialNullChildren(), exprgraphNodeSimplify(), exprsimplifyRemoveDuplicatePolynomialChildren(), exprsimplifyRemovePolynomialNullChildren(), exprsimplifyRemovePolynomialUnusedChildren(), exprsimplifySeparateLinearFromPolynomial(), exprUnconvertPolynomial(), hashmapCheckLoad(), hashtableCheckLoad(), hessLagAddExprtree(), hessLagSparsitySetNzFlagForExprtree(), nlpCalcFracVars(), polynomialdataCopy(), polynomialdataCreate(), printFunction(), processSolveOutcome(), reoptnodeCheckMemory(), saveAfterDualBranchings(), saveConsLinear(), SCIP_DECL_NLPICREATEPROBLEM(), SCIP_DECL_NLPIDELCONSSET(), SCIP_DECL_NLPIDELVARSET(), SCIP_DECL_NLPISETINITIALGUESS(), SCIP_DECL_NLPISOLVE(), SCIPbanditCreateEpsgreedy(), SCIPbanditCreateExp3(), SCIPbanditCreateUcb(), SCIPboolarrayExtend(), SCIPcolCreate(), SCIPconflictstoreAddDualraycons(), SCIPconflictstoreAddDualsolcons(), SCIPcreateNlpSolverAll(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphSetSizes(), SCIPdisjointsetCreate(), SCIPexprCopyDeep(), SCIPexprCreate(), SCIPexprCreateLinear(), SCIPexprCreateMonomial(), SCIPexprgraphAddExprtreeSum(), SCIPexprgraphCreateNodeLinear(), SCIPexprgraphGetSeparableTrees(), SCIPexprgraphGetSumTrees(), SCIPexprgraphGetTree(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprgraphReplaceVarByLinearSum(), SCIPexprtreeCreate(), SCIPexprtreeRemoveFixedVars(), SCIPhashmapCreate(), SCIPhashtableCreate(), SCIPintarrayExtend(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPptrarrayExtend(), SCIPrealarrayExtend(), SCIPreoptAddRun(), SCIPreoptCreate(), SCIPreoptUpdateVarHistory(), SCIProwCreate(), SCIPtreeCreate(), SCIPvaluehistoryCreate(), setupGradients(), setupHessian(), transformDualredsToLinear(), userDG(), and userHM().
#define BMSallocClearBlockMemoryArray | ( | mem, | |
ptr, | |||
num | |||
) | ASSIGN((ptr), BMSallocClearBlockMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
Definition at line 436 of file memory.h.
Referenced by hashmapCheckLoad(), hashsetCheckLoad(), hashtableCheckLoad(), multihashResize(), SCIP_DECL_NLPISOLVE(), SCIPdigraphCopy(), SCIPdigraphCreate(), SCIPhashmapCreate(), SCIPhashsetCreate(), SCIPhashtableCreate(), SCIPmultihashCreate(), and SCIPreoptAddCons().
#define BMSreallocBlockMemorySize | ( | mem, | |
ptr, | |||
oldsize, | |||
newsize | |||
) |
Definition at line 437 of file memory.h.
Referenced by domchgMakeDynamic(), SCIPdomchgMakeStatic(), and SCIPensureBlockMemoryArray_call().
#define BMSreallocBlockMemoryArray | ( | mem, | |
ptr, | |||
oldnum, | |||
newnum | |||
) |
Definition at line 439 of file memory.h.
Referenced by addGlobalCut(), checkMemDualCons(), checkMemGlbCons(), cliqueEnsureSize(), cliquelistEnsureSize(), colEnsureSize(), conflictsetEnsureBdchginfosMem(), conflictstoreAddOrigConflict(), conflictstoreEnsureMem(), conssetchgEnsureAddedconssSize(), conssetchgEnsureDisabledconssSize(), domchgEnsureBoundchgsSize(), domchgEnsureHolechgsSize(), ensureConsLinSize(), ensureConsQuadSize(), ensureConssSize(), ensureIntArraySize(), ensureRunSize(), ensureSolsSize(), ensureSuccessorsSize(), ensureVarsSize(), eventfilterEnsureMem(), exprgraphNodeAddChildren(), exprgraphNodeRemovePolynomialNullChildren(), exprsimplifyAddChildren(), exprsimplifyFlattenPolynomials(), exprsimplifyRemovePolynomialNullChildren(), implicsEnsureSize(), monomialdataEnsureFactorsSize(), nlpCalcFracVars(), nlpEnsureNlRowsSolverSize(), nlpEnsureVarsSolverSize(), proofsetAddSparseData(), reoptnodeCheckMemory(), reopttreeCheckMemory(), saveAfterDualBranchings(), SCIP_DECL_NLPIADDCONSTRAINTS(), SCIP_DECL_NLPIADDVARS(), SCIP_DECL_NLPISOLVE(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphResize(), SCIPdomchgMakeStatic(), SCIPexprAddToLinear(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprtreeAddVars(), SCIPexprtreeRemoveFixedVars(), SCIPexprtreeSetParams(), SCIPexprtreeSetVars(), SCIPnlpEnsureNlRowsSize(), SCIPnlpEnsureVarsSize(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlrowEnsureLinearSize(), SCIPnlrowEnsureQuadElementsSize(), SCIPnlrowEnsureQuadVarsSize(), SCIPreoptAddCons(), SCIProwEnsureSize(), SCIPtreeAddDiveBoundChange(), SCIPvaluehistoryFind(), SCIPvarFlattenAggregationGraph(), SCIPvarMultiaggregate(), varEnsureLbchginfosSize(), varEnsureParentvarsSize(), varEnsureUbchginfosSize(), and vboundsEnsureSize().
#define BMSduplicateBlockMemory | ( | mem, | |
ptr, | |||
source | |||
) |
Definition at line 441 of file memory.h.
Referenced by polynomialdataCopy(), SCIP_DECL_EXPRCOPYDATA(), SCIPexprCopyDeep(), and SCIPexprtreeCopy().
#define BMSduplicateBlockMemoryArray | ( | mem, | |
ptr, | |||
source, | |||
num | |||
) |
Definition at line 443 of file memory.h.
Referenced by cliqueCreateWithData(), collectDualInformation(), createConstraint(), evaluateWorhpRun(), forkCreate(), forkFree(), polynomialdataCreate(), proofsetAddSparseData(), pseudoforkCreate(), quadraticdataCreate(), saveConsBounddisjuction(), SCIP_DECL_EXPRCOPYDATA(), SCIPboolarrayCopy(), SCIPcliquelistDel(), SCIPcolCreate(), SCIPconsChgName(), SCIPconsCreate(), SCIPdigraphCopy(), SCIPexprCreate(), SCIPexprCreateLinear(), SCIPexprCreateMonomial(), SCIPexprCreatePolynomial(), SCIPexprCreateQuadratic(), SCIPexprCreateUser(), SCIPexprgraphAddNode(), SCIPexprtreeAddVars(), SCIPexprtreeCopy(), SCIPexprtreeCreate(), SCIPexprtreeSetParams(), SCIPexprtreeSetVars(), SCIPintarrayCopy(), SCIPnlpCreate(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleChgExprtree(), SCIPnlpiOracleChgLinearCoefs(), SCIPnlpiOracleChgQuadCoefs(), SCIPnlpiOracleSetProblemName(), SCIPnlpSetInitialGuess(), SCIPnlrowCreate(), SCIPptrarrayCopy(), SCIPrealarrayCopy(), SCIPreoptnodeAddCons(), SCIProwCreate(), SCIPvarMultiaggregate(), transformDualredsToBounddisjunction(), transformDualredsToLinear(), and varSetName().
#define BMSfreeBlockMemory | ( | mem, | |
ptr | |||
) | BMSfreeBlockMemory_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ ) |
Definition at line 446 of file memory.h.
Referenced by btnodeFreeLeaf(), cliqueFree(), conflictsetFree(), cutFree(), divesetFree(), forkFree(), freeConstraint(), holelistFree(), multihashlistFree(), multihashlistRemove(), paramFree(), polynomialdataFree(), probingnodeFree(), proofsetFree(), pseudoforkFree(), reoptnodeDelete(), reoptnodeReset(), reoptnodeResetDualConss(), reoptnodeUpdateDualConss(), SCIP_DECL_BANDITFREE(), SCIP_DECL_EXPRFREEDATA(), SCIP_DECL_NLPIFREE(), SCIP_DECL_NLPIFREEPROBLEM(), SCIPbanditFree(), SCIPbdchginfoFree(), SCIPboolarrayFree(), SCIPbtFree(), SCIPcliquelistFree(), SCIPcolFree(), SCIPconsFree(), SCIPconssetchgFree(), SCIPdigraphFree(), SCIPdisjointsetFree(), SCIPeventfilterFree(), SCIPeventFree(), SCIPexprFreeDeep(), SCIPexprFreeMonomial(), SCIPexprFreeShallow(), SCIPexprgraphFree(), SCIPexprgraphFreeNode(), SCIPexprtreeFree(), SCIPhashmapFree(), SCIPhashsetFree(), SCIPhashtableFree(), SCIPhistoryFree(), SCIPimplicsFree(), SCIPintarrayFree(), SCIPmultihashFree(), SCIPnlpStatisticsFree(), SCIPnlrowFree(), SCIPnodeFree(), SCIPptrarrayFree(), SCIPrandomFree(), SCIPrealarrayFree(), SCIPreoptApplyCuts(), SCIPreoptFree(), SCIProwFree(), SCIPsolFree(), SCIPvaluehistoryFree(), SCIPvboundsFree(), subrootFree(), treeCreateProbingNode(), and varFree().
#define BMSfreeBlockMemoryNull | ( | mem, | |
ptr | |||
) | BMSfreeBlockMemoryNull_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ ) |
Definition at line 447 of file memory.h.
Referenced by colRestoreSolVals(), freeSolTree(), rowRestoreSolVals(), SCIPcolFree(), SCIProwFree(), and soltreefreeNode().
#define BMSfreeBlockMemoryArray | ( | mem, | |
ptr, | |||
num | |||
) | BMSfreeBlockMemory_call( (mem), (void**)(ptr), (num)*sizeof(**(ptr)), __FILE__, __LINE__ ) |
Definition at line 448 of file memory.h.
Referenced by changeAncestorBranchings(), evalFunctionGradient(), evalFunctionValue(), exprgraphAddExpr(), exprgraphFindParentByOperator(), exprgraphNodePropagateBounds(), exprgraphNodeRemovePolynomialDuplicateChildren(), exprgraphNodeRemovePolynomialNullChildren(), exprgraphNodeSimplify(), exprsimplifyFlattenPolynomials(), exprsimplifyRemoveDuplicatePolynomialChildren(), exprsimplifyRemovePolynomialNullChildren(), exprsimplifyRemovePolynomialUnusedChildren(), exprsimplifySeparateLinearFromPolynomial(), freeReoptTree(), freeSolTree(), freeVariables(), hashmapCheckLoad(), hashsetCheckLoad(), hashtableCheckLoad(), hessLagAddExprtree(), hessLagSparsitySetNzFlagForExprtree(), invalidateHessianLagSparsity(), invalidateJacobiSparsity(), multihashResize(), nlrowRemoveFixedQuadVars(), polynomialdataFree(), printFunction(), reoptnodeDelete(), reoptnodeReset(), reoptnodeResetDualConss(), reoptnodeUpdateDualConss(), SCIP_DECL_BANDITFREE(), SCIP_DECL_EXPRFREEDATA(), SCIP_DECL_NLPIDELCONSSET(), SCIP_DECL_NLPIDELVARSET(), SCIPcliquelistDel(), SCIPconsChgName(), SCIPconsFree(), SCIPdigraphFree(), SCIPdigraphFreeComponents(), SCIPdisjointsetFree(), SCIPexprFreeDeep(), SCIPexprFreeMonomial(), SCIPexprgraphAddExprtreeSum(), SCIPexprgraphFree(), SCIPexprgraphGetSeparableTrees(), SCIPexprgraphGetSumTrees(), SCIPexprgraphGetTree(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprtreeRemoveFixedVars(), SCIPhashmapFree(), SCIPhashsetFree(), SCIPhashtableFree(), SCIPmultihashFree(), SCIPnlpFree(), SCIPnlpiOracleChgExprtree(), SCIPnlpiOracleDelVarSet(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlpiOracleSetProblemName(), SCIPnlrowFree(), SCIPreoptApplyCuts(), SCIPreoptFree(), SCIProwFree(), SCIPtreeFree(), SCIPvaluehistoryFree(), SCIPvarChgName(), SCIPvarMultiaggregate(), setupStart(), userDG(), userHM(), and varFree().
#define BMSfreeBlockMemoryArrayNull | ( | mem, | |
ptr, | |||
num | |||
) | BMSfreeBlockMemoryNull_call( (mem), (void**)(ptr), (num)*sizeof(**(ptr)), __FILE__, __LINE__ ) |
Definition at line 449 of file memory.h.
Referenced by cliqueFree(), conflictsetFree(), evalFunctionGradient(), exprgraphNodeCreateExpr(), exprgraphNodeSimplify(), exprsimplifyFlattenPolynomials(), forkFree(), freeConstraint(), freeConstraints(), freeVariables(), hessLagAddExprtree(), invalidateSolution(), proofsetFree(), pseudoforkFree(), reoptnodeDelete(), SCIP_DECL_NLPIADDCONSTRAINTS(), SCIP_DECL_NLPIADDVARS(), SCIP_DECL_NLPICHGEXPRTREE(), SCIP_DECL_NLPICHGLINEARCOEFS(), SCIP_DECL_NLPICHGNONLINCOEF(), SCIP_DECL_NLPICHGQUADCOEFS(), SCIP_DECL_NLPIDELCONSSET(), SCIP_DECL_NLPIDELVARSET(), SCIP_DECL_NLPIFREE(), SCIP_DECL_NLPIFREEPROBLEM(), SCIP_DECL_NLPISETINITIALGUESS(), SCIP_DECL_NLPISETOBJECTIVE(), SCIPboolarrayExtend(), SCIPboolarrayFree(), SCIPcliquelistFree(), SCIPcolFree(), SCIPconflictstoreFree(), SCIPconssetchgFree(), SCIPdigraphFree(), SCIPdomchgFree(), SCIPdomchgMakeStatic(), SCIPeventfilterFree(), SCIPexprFreeShallow(), SCIPexprgraphFree(), SCIPexprgraphFreeNode(), SCIPexprgraphGetSeparableTrees(), SCIPexprgraphSimplify(), SCIPexprtreeFree(), SCIPexprtreeSetParams(), SCIPexprtreeSetVars(), SCIPimplicsFree(), SCIPintarrayExtend(), SCIPintarrayFree(), SCIPnlpFree(), SCIPnlpiOracleDelVarSet(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpReset(), SCIPnlrowFree(), SCIPptrarrayExtend(), SCIPptrarrayFree(), SCIPrealarrayExtend(), SCIPrealarrayFree(), SCIPreoptApplyCuts(), SCIProwFree(), SCIPvboundsFree(), subrootFree(), varFree(), and varFreeParents().
#define BMSfreeBlockMemorySize | ( | mem, | |
ptr, | |||
size | |||
) | BMSfreeBlockMemory_call( (mem), (void**)(ptr), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
Definition at line 450 of file memory.h.
Referenced by SCIPdomchgFree().
#define BMSfreeBlockMemorySizeNull | ( | mem, | |
ptr, | |||
size | |||
) | BMSfreeBlockMemory_call( (mem), (void**)(ptr), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ) |
#define BMSgarbagecollectBlockMemory | ( | mem | ) | BMSgarbagecollectBlockMemory_call(mem) |
Definition at line 453 of file memory.h.
Referenced by SCIPtransformProb().
#define BMSgetBlockMemoryAllocated | ( | mem | ) | BMSgetBlockMemoryAllocated_call(mem) |
Definition at line 454 of file memory.h.
Referenced by SCIPmemGetTotal().
#define BMSgetBlockMemoryUsed | ( | mem | ) | BMSgetBlockMemoryUsed_call(mem) |
Definition at line 455 of file memory.h.
Referenced by SCIPmemGetUsed().
#define BMSgetBlockMemoryUnused | ( | mem | ) | BMSgetBlockMemoryUnused_call(mem) |
#define BMSgetBlockMemoryUsedMax | ( | mem | ) | BMSgetBlockMemoryUsedMax_call(mem) |
Definition at line 457 of file memory.h.
Referenced by SCIPmemGetUsedBlockmemoryMax().
#define BMSgetBlockMemoryUnusedMax | ( | mem | ) | BMSgetBlockMemoryUnusedMax_call(mem) |
Definition at line 458 of file memory.h.
Referenced by SCIPmemGetUnusedBlockmemoryMax().
#define BMSgetBlockMemoryAllocatedMax | ( | mem | ) | BMSgetBlockMemoryAllocatedMax_call(mem) |
Definition at line 459 of file memory.h.
Referenced by SCIPmemGetAllocatedBlockmemoryMax().
#define BMSgetBlockPointerSize | ( | mem, | |
ptr | |||
) | BMSgetBlockPointerSize_call((mem), (ptr)) |
#define BMSdisplayBlockMemory | ( | mem | ) | BMSdisplayBlockMemory_call(mem) |
Definition at line 461 of file memory.h.
Referenced by SCIPprintMemoryDiagnostic().
#define BMSblockMemoryCheckEmpty | ( | mem | ) | BMScheckEmptyBlockMemory_call(mem) |
Definition at line 462 of file memory.h.
Referenced by SCIPmemFree().
#define BMSallocBufferMemory | ( | mem, | |
ptr | |||
) | ASSIGN((ptr), BMSallocBufferMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define BMSallocBufferMemorySize | ( | mem, | |
ptr, | |||
size | |||
) | ASSIGN((ptr), BMSallocBufferMemory_call((mem), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
#define BMSreallocBufferMemorySize | ( | mem, | |
ptr, | |||
size | |||
) | ASSIGN((ptr), BMSreallocBufferMemory_call((mem), (void*)(*(ptr)), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
#define BMSallocBufferMemoryArray | ( | mem, | |
ptr, | |||
num | |||
) | ASSIGN((ptr), BMSallocBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define BMSallocClearBufferMemoryArray | ( | mem, | |
ptr, | |||
num | |||
) | ASSIGN((ptr), BMSallocClearBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__)) |
#define BMSreallocBufferMemoryArray | ( | mem, | |
ptr, | |||
num | |||
) |
#define BMSduplicateBufferMemory | ( | mem, | |
ptr, | |||
source, | |||
size | |||
) | ASSIGN((ptr), BMSduplicateBufferMemory_call((mem), (const void*)(source), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__)) |
#define BMSduplicateBufferMemoryArray | ( | mem, | |
ptr, | |||
source, | |||
num | |||
) |
Definition at line 708 of file memory.h.
Referenced by dataReset().
#define BMSfreeBufferMemory | ( | mem, | |
ptr | |||
) | BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define BMSfreeBufferMemoryNull | ( | mem, | |
ptr | |||
) | BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define BMSfreeBufferMemoryArray | ( | mem, | |
ptr | |||
) | BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__) |
Definition at line 713 of file memory.h.
Referenced by dataReset().
#define BMSfreeBufferMemoryArrayNull | ( | mem, | |
ptr | |||
) | BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define BMSfreeBufferMemorySize | ( | mem, | |
ptr | |||
) | BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__); |
#define BMSfreeBufferMemorySizeNull | ( | mem, | |
ptr | |||
) | BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__) |
#define BMScreateBufferMemory | ( | fac, | |
init, | |||
clean | |||
) | BMScreateBufferMemory_call((fac), (init), (clean), __FILE__, __LINE__) |
Definition at line 718 of file memory.h.
Referenced by SCIPmemCreate().
#define BMSdestroyBufferMemory | ( | mem | ) | BMSdestroyBufferMemory_call((mem), __FILE__, __LINE__) |
Definition at line 719 of file memory.h.
Referenced by SCIPmemFree().
typedef struct BMS_ChkMem BMS_CHKMEM |
typedef struct BMS_BlkMem BMS_BLKMEM |
typedef struct BMS_BufMem BMS_BUFMEM |
void* BMSallocClearMemory_call | ( | size_t | num, |
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates array and initializes it with 0; returns NULL if memory allocation failed
num | number of memory element to allocate |
typesize | size of one memory element to allocate |
filename | source file where the allocation is performed |
line | line number in source file where the allocation is performed |
Definition at line 320 of file memory.c.
References debugMessage, MAX, MAXMEMSIZE, printError, and printErrorHeader.
void* BMSallocMemory_call | ( | size_t | size, |
const char * | filename, | ||
int | line | ||
) |
allocates memory; returns NULL if memory allocation failed
size | size of memory element to allocate |
filename | source file where the allocation is performed |
line | line number in source file where the allocation is performed |
Definition at line 361 of file memory.c.
References debugMessage, MAX, MAXMEMSIZE, printError, and printErrorHeader.
Referenced by BMSduplicateMemory_call().
void* BMSallocMemoryArray_call | ( | size_t | num, |
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates array; returns NULL if memory allocation failed
num | number of components of array to allocate |
typesize | size of each component |
filename | source file where the allocation is performed |
line | line number in source file where the allocation is performed |
Definition at line 397 of file memory.c.
References debugMessage, MAX, MAXMEMSIZE, printError, and printErrorHeader.
Referenced by BMSduplicateMemoryArray_call().
void* BMSreallocMemory_call | ( | void * | ptr, |
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
allocates memory; returns NULL if memory allocation failed
ptr | pointer to memory to reallocate |
size | new size of memory element |
filename | source file where the reallocation is performed |
line | line number in source file where the reallocation is performed |
Definition at line 437 of file memory.c.
References MAX, MAXMEMSIZE, printError, and printErrorHeader.
void* BMSreallocMemoryArray_call | ( | void * | ptr, |
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
reallocates array; returns NULL if memory allocation failed
ptr | pointer to memory to reallocate |
num | number of components of array to allocate |
typesize | size of each component |
filename | source file where the reallocation is performed |
line | line number in source file where the reallocation is performed |
Definition at line 477 of file memory.c.
References MAX, MAXMEMSIZE, printError, and printErrorHeader.
void BMSclearMemory_call | ( | void * | ptr, |
size_t | size | ||
) |
void BMScopyMemory_call | ( | void * | ptr, |
const void * | source, | ||
size_t | size | ||
) |
copies the contents of one memory element into another memory element
ptr | pointer to target memory element |
source | pointer to source memory element |
size | size of memory element to copy |
Definition at line 533 of file memory.c.
Referenced by BMSduplicateMemory_call(), and BMSduplicateMemoryArray_call().
void BMSmoveMemory_call | ( | void * | ptr, |
const void * | source, | ||
size_t | size | ||
) |
moves the contents of one memory element into another memory element, should be used if both elements overlap, otherwise BMScopyMemory is faster
ptr | pointer to target memory element |
source | pointer to source memory element |
size | size of memory element to copy |
void* BMSduplicateMemory_call | ( | const void * | source, |
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
allocates memory and copies the contents of the given memory element into the new memory element
source | pointer to source memory element |
size | size of memory element to copy |
filename | source file where the duplication is performed |
line | line number in source file where the duplication is performed |
Definition at line 565 of file memory.c.
References BMSallocMemory_call(), and BMScopyMemory_call().
void* BMSduplicateMemoryArray_call | ( | const void * | source, |
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates array and copies the contents of the given source array into the new array
source | pointer to source memory element |
num | number of components of array to allocate |
typesize | size of each component |
filename | source file where the duplication is performed |
line | line number in source file where the duplication is performed |
Definition at line 584 of file memory.c.
References BMSallocMemoryArray_call(), and BMScopyMemory_call().
void BMSfreeMemory_call | ( | void ** | ptr, |
const char * | filename, | ||
int | line | ||
) |
frees an allocated memory element and sets pointer to NULL
ptr | pointer to pointer to memory element |
filename | source file where the deallocation is performed |
line | line number in source file where the deallocation is performed |
Definition at line 604 of file memory.c.
References printError, and printErrorHeader.
void BMSfreeMemoryNull_call | ( | void ** | ptr, |
const char * | filename, | ||
int | line | ||
) |
size_t BMSgetPointerSize_call | ( | const void * | ptr | ) |
void BMSdisplayMemory_call | ( | void | ) |
void BMScheckEmptyMemory_call | ( | void | ) |
long long BMSgetMemoryUsed_call | ( | void | ) |
void BMSalignMemsize | ( | size_t * | size | ) |
int BMSisAligned | ( | size_t | size | ) |
checks whether the given size meets the alignment conditions for chunk and block memory
size | size to check for alignment |
Definition at line 763 of file memory.c.
References ALIGNMENT.
Referenced by createChkmem(), createChunk(), and getHashNumber().
BMS_CHKMEM* BMScreateChunkMemory_call | ( | size_t | size, |
int | initchunksize, | ||
int | garbagefactor, | ||
const char * | filename, | ||
int | line | ||
) |
creates a new chunk block data structure
size | element size of the chunk block |
initchunksize | number of elements in the first chunk of the chunk block |
garbagefactor | garbage collector is called, if at least garbagefactor * avg. chunksize elements are free (-1: disable garbage collection) |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1447 of file memory.c.
References createChkmem(), debugMessage, printError, and printErrorHeader.
void BMSclearChunkMemory_call | ( | BMS_CHKMEM * | chkmem, |
const char * | filename, | ||
int | line | ||
) |
clears a chunk block data structure
chkmem | chunk block |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1471 of file memory.c.
References clearChkmem(), debugMessage, printError, and printErrorHeader.
void BMSdestroyChunkMemory_call | ( | BMS_CHKMEM ** | chkmem, |
const char * | filename, | ||
int | line | ||
) |
destroys and frees a chunk block data structure
chkmem | pointer to chunk block |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1489 of file memory.c.
References debugMessage, destroyChkmem(), printError, and printErrorHeader.
void* BMSallocChunkMemory_call | ( | BMS_CHKMEM * | chkmem, |
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
allocates a memory element of the given chunk block
chkmem | chunk block |
size | size of memory element to allocate (only needed for sanity check) |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1509 of file memory.c.
References allocChkmemElement(), checkChkmem, debugMessage, printError, and printErrorHeader.
Referenced by BMSduplicateChunkMemory_call().
void* BMSduplicateChunkMemory_call | ( | BMS_CHKMEM * | chkmem, |
const void * | source, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
duplicates a given memory element by allocating a new element of the same chunk block and copying the data
chkmem | chunk block |
source | source memory element |
size | size of memory element to allocate (only needed for sanity check) |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1536 of file memory.c.
References BMSallocChunkMemory_call(), and BMScopyMemorySize.
void BMSfreeChunkMemory_call | ( | BMS_CHKMEM * | chkmem, |
void ** | ptr, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
frees a memory element of the given chunk block and sets pointer to NULL
chkmem | chunk block |
ptr | pointer to pointer to memory element to free |
size | size of memory element to allocate (only needed for sanity check) |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1558 of file memory.c.
References checkChkmem, debugMessage, freeChkmemElement(), printError, and printErrorHeader.
void BMSfreeChunkMemoryNull_call | ( | BMS_CHKMEM * | chkmem, |
void ** | ptr, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
frees a memory element of the given chunk block if pointer is not NULL and sets pointer to NULL
chkmem | chunk block |
ptr | pointer to pointer to memory element to free |
size | size of memory element to allocate (only needed for sanity check) |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1587 of file memory.c.
References checkChkmem, debugMessage, and freeChkmemElement().
void BMSgarbagecollectChunkMemory_call | ( | BMS_CHKMEM * | chkmem | ) |
calls garbage collection of chunk block and frees chunks without allocated memory elements
chkmem | chunk block |
Definition at line 1611 of file memory.c.
References debugMessage, and garbagecollectChkmem().
long long BMSgetChunkMemoryUsed_call | ( | const BMS_CHKMEM * | chkmem | ) |
returns the number of allocated bytes in the chunk block
chkmem | chunk block |
Definition at line 1621 of file memory.c.
References checkBlkmem, checkChkmem, and CHKHASH_SIZE.
BMS_BLKMEM* BMScreateBlockMemory_call | ( | int | initchunksize, |
int | garbagefactor, | ||
const char * | filename, | ||
int | line | ||
) |
creates a block memory allocation data structure
initchunksize | number of elements in the first chunk of each chunk block |
garbagefactor | garbage collector is called, if at least garbagefactor * avg. chunksize elements are free (-1: disable garbage collection) |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1719 of file memory.c.
References BMSallocMemory, CHKHASH_SIZE, printError, and printErrorHeader.
void BMSclearBlockMemory_call | ( | BMS_BLKMEM * | blkmem, |
const char * | filename, | ||
int | line | ||
) |
frees all chunk blocks in the block memory
blkmem | block memory |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1753 of file memory.c.
References CHKHASH_SIZE, destroyChkmem(), printError, and printErrorHeader.
Referenced by BMSdestroyBlockMemory_call().
void BMSdestroyBlockMemory_call | ( | BMS_BLKMEM ** | blkmem, |
const char * | filename, | ||
int | line | ||
) |
clears and deletes block memory
blkmem | pointer to block memory |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1787 of file memory.c.
References BMSclearBlockMemory_call(), BMSfreeMemory, INLINE, printError, and printErrorHeader.
void* BMSallocBlockMemory_call | ( | BMS_BLKMEM * | blkmem, |
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
allocates memory in the block memory pool
blkmem | block memory |
size | size of memory element to allocate |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1873 of file memory.c.
References BMSallocBlockMemory_work(), MAXMEMSIZE, printError, and printErrorHeader.
Referenced by BMSduplicateBlockMemory_call(), and BMSreallocBlockMemory_call().
void* BMSallocBlockMemoryArray_call | ( | BMS_BLKMEM * | blkmem, |
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates array in the block memory pool
blkmem | block memory |
num | size of array to be allocated |
typesize | size of each component |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1893 of file memory.c.
References BMSallocBlockMemory_work(), MAXMEMSIZE, printError, and printErrorHeader.
Referenced by BMSallocClearBlockMemoryArray_call(), BMSduplicateBlockMemoryArray_call(), and BMSreallocBlockMemoryArray_call().
void* BMSallocClearBlockMemoryArray_call | ( | BMS_BLKMEM * | blkmem, |
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates array in the block memory pool and clears it
blkmem | block memory |
num | size of array to be allocated |
typesize | size of each component |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1914 of file memory.c.
References BMSallocBlockMemoryArray_call(), and BMSclearMemorySize.
void* BMSreallocBlockMemory_call | ( | BMS_BLKMEM * | blkmem, |
void * | ptr, | ||
size_t | oldsize, | ||
size_t | newsize, | ||
const char * | filename, | ||
int | line | ||
) |
resizes memory element in the block memory pool and copies the data
blkmem | block memory |
ptr | memory element to reallocated |
oldsize | old size of memory element |
newsize | new size of memory element |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1932 of file memory.c.
References BMSallocBlockMemory_call(), BMScopyMemorySize, BMSfreeBlockMemory_call(), MAXMEMSIZE, printError, and printErrorHeader.
void* BMSreallocBlockMemoryArray_call | ( | BMS_BLKMEM * | blkmem, |
void * | ptr, | ||
size_t | oldnum, | ||
size_t | newnum, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
resizes array in the block memory pool and copies the data
blkmem | block memory |
ptr | memory element to reallocated |
oldnum | old size of array |
newnum | new size of array |
typesize | size of each component |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 1972 of file memory.c.
References BMSallocBlockMemoryArray_call(), BMScopyMemorySize, BMSfreeBlockMemory_call(), MAXMEMSIZE, printError, and printErrorHeader.
void* BMSduplicateBlockMemory_call | ( | BMS_BLKMEM * | blkmem, |
const void * | source, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
duplicates memory element in the block memory pool and copies the data
blkmem | block memory |
source | memory element to duplicate |
size | size of memory elements |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2011 of file memory.c.
References BMSallocBlockMemory_call(), and BMScopyMemorySize.
void* BMSduplicateBlockMemoryArray_call | ( | BMS_BLKMEM * | blkmem, |
const void * | source, | ||
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
duplicates array in the block memory pool and copies the data
blkmem | block memory |
source | memory element to duplicate |
num | size of array to be duplicated |
typesize | size of each component |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2031 of file memory.c.
References BMSallocBlockMemoryArray_call(), BMScopyMemorySize, and INLINE.
void BMSfreeBlockMemory_call | ( | BMS_BLKMEM * | blkmem, |
void ** | ptr, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
frees memory element in the block memory pool and sets pointer to NULL
blkmem | block memory |
ptr | pointer to pointer to memory element to free |
size | size of memory element |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2101 of file memory.c.
References BMSfreeBlockMemory_work(), checkBlkmem, printError, and printErrorHeader.
Referenced by BMSreallocBlockMemory_call(), and BMSreallocBlockMemoryArray_call().
void BMSfreeBlockMemoryNull_call | ( | BMS_BLKMEM * | blkmem, |
void ** | ptr, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
frees memory element in the block memory pool if pointer is not NULL and sets pointer to NULL
blkmem | block memory |
ptr | pointer to pointer to memory element to free |
size | size of memory element |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2123 of file memory.c.
References BMSfreeBlockMemory_work(), and checkBlkmem.
void BMSgarbagecollectBlockMemory_call | ( | BMS_BLKMEM * | blkmem | ) |
calls garbage collection of block memory, frees chunks without allocated memory elements, and frees chunk blocks without any chunks
blkmem | block memory |
Definition at line 2144 of file memory.c.
References checkBlkmem, CHKHASH_SIZE, destroyChkmem(), and garbagecollectChkmem().
long long BMSgetBlockMemoryAllocated_call | ( | const BMS_BLKMEM * | blkmem | ) |
long long BMSgetBlockMemoryUsed_call | ( | const BMS_BLKMEM * | blkmem | ) |
long long BMSgetBlockMemoryUnused_call | ( | const BMS_BLKMEM * | blkmem | ) |
long long BMSgetBlockMemoryUsedMax_call | ( | const BMS_BLKMEM * | blkmem | ) |
long long BMSgetBlockMemoryUnusedMax_call | ( | const BMS_BLKMEM * | blkmem | ) |
long long BMSgetBlockMemoryAllocatedMax_call | ( | const BMS_BLKMEM * | blkmem | ) |
size_t BMSgetBlockPointerSize_call | ( | const BMS_BLKMEM * | blkmem, |
const void * | ptr | ||
) |
returns the size of the given memory element; returns 0, if the element is not member of the block memory
blkmem | block memory |
ptr | memory element |
Definition at line 2238 of file memory.c.
References findChkmem().
void BMSdisplayBlockMemory_call | ( | const BMS_BLKMEM * | blkmem | ) |
outputs allocation diagnostics of block memory
blkmem | block memory |
Definition at line 2258 of file memory.c.
References CHKHASH_SIZE, FOR_EACH_NODE, LONGINT_FORMAT, and printInfo.
long long BMScheckEmptyBlockMemory_call | ( | const BMS_BLKMEM * | blkmem | ) |
outputs error messages, if there are allocated elements in the block memory and returns number of unfreed bytes
blkmem | block memory |
Definition at line 2382 of file memory.c.
References CHKHASH_SIZE, errorMessage, FOR_EACH_NODE, and LONGINT_FORMAT.
BMS_BUFMEM* BMScreateBufferMemory_call | ( | double | arraygrowfac, |
int | arraygrowinit, | ||
unsigned int | clean, | ||
const char * | filename, | ||
int | line | ||
) |
creates memory buffer storage
arraygrowfac | memory growing factor for dynamically allocated arrays |
arraygrowinit | initial size of dynamically allocated arrays |
clean | should the memory blocks in the buffer be initialized to zero? |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2476 of file memory.c.
References BMS_BufMem::arraygrowfac, BMS_BufMem::arraygrowinit, BMSallocMemory, BMS_BufMem::clean, BMS_BufMem::data, BMS_BufMem::firstfree, BMS_BufMem::ndata, printError, printErrorHeader, BMS_BufMem::size, BMS_BufMem::totalmem, and BMS_BufMem::used.
void BMSdestroyBufferMemory_call | ( | BMS_BUFMEM ** | buffer, |
const char * | filename, | ||
int | line | ||
) |
destroys buffer memory
buffer | pointer to memory buffer storage |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2512 of file memory.c.
References BMSfreeMemory, BMSfreeMemoryArrayNull, printError, and printErrorHeader.
void BMSsetBufferMemoryArraygrowfac | ( | BMS_BUFMEM * | buffer, |
double | arraygrowfac | ||
) |
set arraygrowfac
buffer | pointer to memory buffer storage |
arraygrowfac | memory growing factor for dynamically allocated arrays |
Definition at line 2545 of file memory.c.
References BMS_BufMem::arraygrowfac.
void BMSsetBufferMemoryArraygrowinit | ( | BMS_BUFMEM * | buffer, |
int | arraygrowinit | ||
) |
set arraygrowinit
buffer | pointer to memory buffer storage |
arraygrowinit | initial size of dynamically allocated arrays |
Definition at line 2557 of file memory.c.
References BMS_BufMem::arraygrowinit.
Referenced by SCIP_DECL_PARAMCHGD().
void* BMSallocBufferMemory_call | ( | BMS_BUFMEM * | buffer, |
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
allocates the next unused buffer
buffer | memory buffer storage |
size | minimal required size of the buffer |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2750 of file memory.c.
References BMSallocBufferMemory_work(), MAXMEMSIZE, printError, and printErrorHeader.
Referenced by BMSduplicateBufferMemory_call(), and BMSreallocBufferMemory_work().
void* BMSallocBufferMemoryArray_call | ( | BMS_BUFMEM * | buffer, |
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates the next unused buffer array
buffer | memory buffer storage |
num | size of array to be allocated |
typesize | size of components |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2770 of file memory.c.
References BMSallocBufferMemory_work(), MAXMEMSIZE, printError, and printErrorHeader.
Referenced by BMSallocClearBufferMemoryArray_call(), and BMSduplicateBufferMemoryArray_call().
void* BMSallocClearBufferMemoryArray_call | ( | BMS_BUFMEM * | buffer, |
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates the next unused buffer and clears it
buffer | memory buffer storage |
num | size of array to be allocated |
typesize | size of components |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2791 of file memory.c.
References BMSallocBufferMemoryArray_call(), BMSclearMemorySize, and INLINE.
void* BMSreallocBufferMemory_call | ( | BMS_BUFMEM * | buffer, |
void * | ptr, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
reallocates the buffer to at least the given size
buffer | memory buffer storage |
ptr | pointer to the allocated memory buffer |
size | minimal required size of the buffer |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2882 of file memory.c.
References BMSreallocBufferMemory_work(), MAXMEMSIZE, printError, and printErrorHeader.
void* BMSreallocBufferMemoryArray_call | ( | BMS_BUFMEM * | buffer, |
void * | ptr, | ||
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
reallocates an array in the buffer to at least the given size
buffer | memory buffer storage |
ptr | pointer to the allocated memory buffer |
num | size of array to be allocated |
typesize | size of components |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2903 of file memory.c.
References BMSreallocBufferMemory_work(), MAXMEMSIZE, printError, and printErrorHeader.
void* BMSduplicateBufferMemory_call | ( | BMS_BUFMEM * | buffer, |
const void * | source, | ||
size_t | size, | ||
const char * | filename, | ||
int | line | ||
) |
allocates the next unused buffer and copies the given memory into the buffer
buffer | memory buffer storage |
source | memory block to copy into the buffer |
size | minimal required size of the buffer |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2925 of file memory.c.
References BMSallocBufferMemory_call(), and BMScopyMemorySize.
void* BMSduplicateBufferMemoryArray_call | ( | BMS_BUFMEM * | buffer, |
const void * | source, | ||
size_t | num, | ||
size_t | typesize, | ||
const char * | filename, | ||
int | line | ||
) |
allocates an array in the next unused buffer and copies the given memory into the buffer
buffer | memory buffer storage |
source | memory block to copy into the buffer |
num | size of array to be allocated |
typesize | size of components |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 2948 of file memory.c.
References BMSallocBufferMemoryArray_call(), BMScopyMemorySize, and INLINE.
void BMSfreeBufferMemory_call | ( | BMS_BUFMEM * | buffer, |
void ** | ptr, | ||
const char * | filename, | ||
int | line | ||
) |
frees a buffer and sets pointer to NULL
buffer | memory buffer storage |
ptr | pointer to pointer to the allocated memory buffer |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 3045 of file memory.c.
References BMSfreeBufferMemory_work(), BMSfreeMemory, printError, and printErrorHeader.
void BMSfreeBufferMemoryNull_call | ( | BMS_BUFMEM * | buffer, |
void ** | ptr, | ||
const char * | filename, | ||
int | line | ||
) |
frees a buffer if pointer is not NULL and sets pointer to NULL
buffer | memory buffer storage |
ptr | pointer to pointer to the allocated memory buffer |
filename | source file of the function call |
line | line number in source file of the function call |
Definition at line 3068 of file memory.c.
References BMSfreeBufferMemory_work(), and BMSfreeMemory.
size_t BMSgetNUsedBufferMemory | ( | BMS_BUFMEM * | buffer | ) |
gets number of used buffers
buffer | memory buffer storage |
Definition at line 3088 of file memory.c.
References BMS_BufMem::firstfree.
Referenced by exitPresolve(), initPresolve(), presolve(), presolveRound(), priceAndCutLoop(), propagationRound(), propAndSolve(), SCIPprimalHeuristics(), SCIPsolveCIP(), separationRoundLP(), and solveNode().
long long BMSgetBufferMemoryUsed | ( | const BMS_BUFMEM * | buffer | ) |
returns the number of allocated bytes in the buffer memory
buffer | buffer memory |
Definition at line 3098 of file memory.c.
References BMS_BufMem::ndata, BMS_BufMem::size, and BMS_BufMem::totalmem.
Referenced by SCIPmemGetTotal(), and SCIPmemGetUsed().
void BMSprintBufferMemory | ( | BMS_BUFMEM * | buffer | ) |
outputs statistics about currently allocated buffers to the screen
buffer | memory buffer storage |
Definition at line 3116 of file memory.c.
References BMS_BufMem::data, BMS_BufMem::ndata, BMS_BufMem::size, and BMS_BufMem::used.
Referenced by SCIPprintMemoryDiagnostic().