Scippy

SCIP

Solving Constraint Integer Programs

memory.h File Reference

Detailed Description

memory allocation routines

Author
Tobias Achterberg
Gerald Gamrath
Marc Pfetsch

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 EXTERN   extern
 
#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 BMSgetBlockMemoryUsed(mem)    BMSgetBlockMemoryUsed_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_CHKMEMBMScreateChunkMemory_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_BLKMEMBMScreateBlockMemory_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 BMSgetBlockMemoryUsed_call (const BMS_BLKMEM *blkmem)
 
size_t BMSgetBlockPointerSize_call (const BMS_BLKMEM *blkmem, const void *ptr)
 
void BMSdisplayBlockMemory_call (const BMS_BLKMEM *blkmem)
 
void BMScheckEmptyBlockMemory_call (const BMS_BLKMEM *blkmem)
 
BMS_BUFMEMBMScreateBufferMemory_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)
 

Macro Definition Documentation

#define ASSIGN (   pointerstarstar,
  voidstarfunction 
)    (*(pointerstarstar) = (voidstarfunction))

Definition at line 43 of file memory.h.

#define EXTERN   extern

Definition at line 55 of file memory.h.

#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__ )

Definition at line 76 of file memory.h.

Referenced by SCIPlpiCreate().

#define BMSallocClearMemorySize (   ptr,
  size 
)    ASSIGN((ptr), BMSallocClearMemory_call((size_t)(1), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ))

Definition at line 77 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 78 of file memory.h.

Referenced by allocDiveChgSideArrays(), branch(), createClique(), createCliquehash(), doCdata(), ensureSuccessorsSize(), eval(), exprgraphNodeEval(), exprgraphNodeUpdateBounds(), getASlice(), getAttrval(), getEndptrs(), getIndicesFromDense(), getIndicesRange(), getName(), heurAddDiveset(), lpiGetBInvVec(), lpiStrongbranch(), lpiStrongbranches(), printstr(), procPcdata(), reoptSaveNewObj(), SCIPdialoghdlrCreate(), SCIPdigraphComputeDirectedComponents(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphSetSizes(), SCIPdigraphTopoSortComponents(), SCIPexprCheckCurvature(), SCIPexprEval(), SCIPexprEvalInt(), SCIPexprgraphGetNodePolynomialMonomialCurvature(), SCIPexprgraphSimplify(), SCIPexprgraphUpdateNodeBoundsCurvature(), SCIPexprtreePrintWithNames(), SCIPexprtreeSimplify(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgSides(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetColNames(), SCIPlpiGetRowNames(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPmessagehdlrCreate(), SCIPprofileCreate(), SCIPreaderWrite(), SCIPreoptCreate(), SCIPsetModifiedDefaultSettingsIpopt(), SCIPsolveLinearProb(), SCIPsparseSolCreate(), tcliqueAddEdge(), tcliqueColoring(), tcliqueLoadFile(), tcliqueMaxClique(), and xmlProcess().

#define BMSallocMemoryArrayCPP (   num,
  size 
)    BMSallocMemoryArray_call( (size_t)(ptrdiff_t)(num), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )

Definition at line 79 of file memory.h.

#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__ ))

Definition at line 81 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 82 of file memory.h.

Referenced by BMSallocBufferMemory_work(), cliquetableEnsureSize(), conflictEnsureConflictsetsMem(), conflictEnsureTmpbdchginfosMem(), conshdlrEnsureCheckconssMem(), conshdlrEnsureConssMem(), conshdlrEnsureEnfoconssMem(), conshdlrEnsureInitconssMem(), conshdlrEnsurePropconssMem(), conshdlrEnsureSepaconssMem(), conshdlrEnsureUpdateconssMem(), cutpoolEnsureCutsMem(), doCdata(), ensureBoundchgMem(), ensureChgcolsSize(), ensureChgrowsSize(), ensureCliquehashSize(), ensureColMem(), ensureColsSize(), ensureCstatMem(), ensureExistingsolsSize(), ensureExterncandsSize(), ensureLazycolsSize(), ensureLpcandsSize(), ensureLpicolsSize(), ensureLpirowsSize(), ensureProfileSize(), ensurePropagationStorage(), ensurePseudocandsSize(), ensureRowMem(), ensureRowsSize(), ensureRstatMem(), ensureRunSize(), ensureSidechgMem(), ensureSolsSize(), ensureStateMem(), ensureSubdialogMem(), ensureSuccessorsSize(), ensureTabMem(), ensureValMem(), eventqueueEnsureEventsMem(), getAttrval(), getName(), heurAddDiveset(), linkChunk(), nodepqResize(), paramsetAdd(), pqueueResize(), pricestoreEnsureBdviolvarsMem(), pricestoreEnsureVarsMem(), probEnsureConssMem(), probEnsureDeletedvarsMem(), probEnsureFixedvarsMem(), probEnsureVarsMem(), procPcdata(), queueResize(), reallocDiveChgSideArrays(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphResize(), SCIPsetFindBranchrule(), SCIPsetFindCompr(), SCIPsetFindConflicthdlr(), SCIPsetFindHeur(), SCIPsetFindNlpi(), SCIPsetFindNodesel(), SCIPsetFindPresol(), SCIPsetFindPricer(), SCIPsetFindRelax(), SCIPsetFindSepa(), SCIPsetIncludeDialog(), SCIPsetIncludeDisp(), SCIPsetSetPresolving(), sepastoreEnsureCutsMem(), tcliqueEnsureSizeCachedEdges(), tcliqueEnsureSizeEdges(), tcliqueEnsureSizeNodes(), treeEnsureChildrenMem(), treeEnsurePathMem(), and treeEnsurePendingbdchgsMem().

#define BMSclearMemoryArray (   ptr,
  num 
)    BMSclearMemory_call( (void*)(ptr), (size_t)(ptrdiff_t)(num)*sizeof(*(ptr)) )

Definition at line 85 of file memory.h.

Referenced by aggregation(), branch(), branchruledataEnsureNlcount(), calcTwoRowBnds(), checkCurvature(), checkFactorable(), checkForOverlapping(), checkSolution(), checkSystemGF2(), checkViolations(), cleanupNetwork(), cliquePresolve(), computeCut(), computeMinDistance(), conflictsetCalcInsertDepth(), constructSNFRelaxation(), countNonlinearities(), createCoveringProblem(), createSubproblem(), createSubSCIP(), createTcliqueGraph(), detectImpliedBounds(), detectParallelCols(), ensureMemorySize(), evalFunctionGradient(), exprgraphEnsureDepth(), exprgraphNodeAddChildren(), exprgraphNodeSimplify(), exprsimplifyAddChildren(), exprsimplifyRemovePolynomialUnusedChildren(), exprsimplifySeparateLinearFromPolynomial(), exprUnconvertPolynomial(), extractCapacityRows(), extractFlow(), extractNodes(), fillDigraph(), findAggregation(), generateAverageRay(), generateClusterCuts(), generateCutConvex(), generateCutNonConvex(), getFlowCover(), getInputString(), getLiftingSequenceGUB(), getMaxactImplicObjchg(), getNextLine(), getNodeIdx(), getZerohalfWeightvectorFromSelectedRowsBitarray(), identifySourcesTargets(), initData(), initPropdata(), insertSortedRootNeighbors(), isCandidate(), lpbdchgsCreate(), lpbdchgsReset(), lpCleanupCols(), lpCleanupRows(), lpRemoveObsoleteCols(), lpRemoveObsoleteRows(), mcfnetworkExtract(), mcfnetworkFill(), nlpSolve(), nlrowRemoveFixedQuadVars(), nodepartitionCreate(), preprocessCliques(), preprocessColumns(), preprocessRows(), preprocessTrivialZerohalfCuts(), presolveConsEffectiveHorizon(), presolvePropagateCons(), presolveRemoveFixedVariables(), printPseudobooleanCons(), process(), processNlRow(), propagateCons(), readOPBFile(), reformulate(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeRedundantConssAndNonzeros(), resolvePropagationCoretimes(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_QUADCONSUPGD(), SCIPboolarrayClear(), SCIPcreateConsSOC(), SCIPdigraphComputeUndirectedComponents(), SCIPexprgraphGetSubtreeVarsUsage(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprtreeCreate(), SCIPexprtreeGetVarsUsage(), SCIPexprtreeRemoveFixedVars(), SCIPgetBinvarRepresentatives(), SCIPintarrayClear(), SCIPlpComputeRelIntPoint(), SCIPlpGetSol(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpRemoveRedundantRows(), SCIPmatrixCreate(), SCIPmatrixGetParallelCols(), SCIPmatrixGetParallelRows(), SCIPnlpGetVarsNonlinearity(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPprimalTransformSol(), SCIPptrarrayClear(), SCIPrealarrayClear(), SCIPseparateRelaxedKnapsack(), SCIPsetModifiedDefaultSettingsIpopt(), SCIPshrinkDisjunctiveVarSet(), SCIPwritePbm(), searchEcAggrWithCliques(), separateCuts(), separateGLS(), separateHeur(), sequentialUpAndDownLifting(), sequentialUpAndDownLiftingGUB(), setColumnMajorFormat(), shortenConss(), singletonColumnStuffing(), stableSort(), stableSortBinvars(), sumMIRRow(), sumStrongCGRow(), superadditiveUpLifting(), tcliqueAddEdge(), tcliqueColoring(), tcliquegraphConstructCliqueTable(), topologicalSort(), tryUpgradingXor(), undoBdchgsDualfarkas(), undoBdchgsDualsol(), updatePrimalRay(), and updateVariableDegrees().

#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)) )

Definition at line 88 of file memory.h.

#define BMScopyMemoryArray (   ptr,
  source,
  num 
)    BMScopyMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(num)*sizeof(*(ptr)) )

Definition at line 89 of file memory.h.

Referenced by addConcaveEstimatorMultivariate(), computeConsAndDataChanges(), conflictsetCopy(), createSolTuple(), cutGenerationHeuristic(), extendCliqueZeroWeight(), mergeAndCleanQuadVarTerms(), newSolution(), nlrowaggrCreate(), nlrowaggrStoreLinearTerms(), nlrowaggrStoreQuadraticVars(), polynomialdataAddMonomials(), presolComponents(), removeConstraintsDueToNegCliques(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSTRANS(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLPISETINITIALGUESS(), SCIPboolarrayExtend(), SCIPconshdlrsStorePropagationStatus(), SCIPcreateConsPseudobooleanWithConss(), SCIPdigraphComputeUndirectedComponents(), SCIPexprAddMonomialFactors(), SCIPexprAddToLinear(), SCIPexprCreateLinear(), SCIPexprgraphAddExprtreeSum(), SCIPexprgraphCreateNodeLinear(), SCIPexprgraphReplaceVarByLinearSum(), SCIPexprgraphSetVarsBounds(), SCIPexprtreeAddVars(), SCIPexprtreeSetParams(), SCIPexprtreeSetVars(), SCIPgetBinvarRepresentatives(), SCIPgetRandomSubset(), SCIPheurPassIndicator(), SCIPintarrayExtend(), SCIPlpCalcMIR(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiGetBounds(), SCIPlpiGetCols(), SCIPlpiGetDualfarkas(), SCIPlpiGetObj(), SCIPlpiGetPrimalRay(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlpSetInitialGuess(), SCIPptrarrayExtend(), SCIPrealarrayExtend(), SCIPsetModifiedDefaultSettingsIpopt(), SCIPsolveLinearProb(), SCIPsolveLinearProb3(), SCIPvarsGetActiveVars(), separateByEnumerationHeuristics(), stableSortBinvars(), tcliqueColoring(), tcliqueLoadFile(), tryToInsert(), and xmlProcess().

#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)) )

Definition at line 92 of file memory.h.

#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) )

Definition at line 94 of file memory.h.

#define BMSduplicateMemory (   ptr,
  source 
)    ASSIGN((ptr), BMSduplicateMemory_call( (const void*)(source), sizeof(**(ptr)), __FILE__, __LINE__ ))

Definition at line 96 of file memory.h.

#define BMSduplicateMemorySize (   ptr,
  source,
  size 
)    ASSIGN((ptr), BMSduplicateMemory_call( (const void*)(source), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ))

Definition at line 97 of file memory.h.

#define BMSfreeMemory (   ptr)    BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ )

Definition at line 100 of file memory.h.

Referenced by BMSdestroyBlockMemory_call(), BMSdestroyBufferMemory_call(), BMSfreeBufferMemory_call(), BMSfreeBufferMemoryNull_call(), destroyChkmem(), destroyChunk(), dialogFree(), divesetFree(), freeClique(), freeCliquehash(), freeReoptTree(), freeSolTree(), hashmaplistFree(), hashmaplistRemove(), linelistFree(), messagehdlrFree(), popPstack(), resetVarname(), SCIPactivityFree(), SCIPbranchcandFree(), SCIPbranchruleFree(), SCIPbtFree(), SCIPcliquetableFree(), SCIPclockFree(), SCIPcomprFree(), SCIPconflictFree(), SCIPconflicthdlrFree(), SCIPconshdlrFree(), SCIPcutpoolFree(), SCIPdialoghdlrFree(), SCIPdigraphFree(), SCIPdispFree(), SCIPeventhdlrFree(), SCIPeventqueueFree(), SCIPexprintFree(), SCIPfree(), SCIPhashmapFree(), SCIPhashtableFree(), SCIPheurFree(), SCIPinterruptFree(), SCIPlpFree(), SCIPlpiFree(), SCIPmemFree(), SCIPmessageVFPrintDialog(), SCIPmessageVFPrintInfo(), SCIPmessageVFPrintVerbInfo(), SCIPmessageVFPrintWarning(), SCIPmessageVPrintError(), SCIPnlpFree(), SCIPnlpiFree(), SCIPnlpiOracleFree(), SCIPnlpStatisticsFree(), SCIPnodepqDestroy(), SCIPnodeselFree(), SCIPparamsetFree(), SCIPpqueueFree(), SCIPpresolFree(), SCIPpricerFree(), SCIPpricestoreFree(), SCIPprimalFree(), SCIPprobFree(), SCIPprofileFree(), SCIPpropFree(), SCIPqueueFree(), SCIPreaderFree(), SCIPreaderWrite(), SCIPrelaxationFree(), SCIPrelaxFree(), SCIPreoptFree(), SCIPsepaFree(), SCIPsepastoreFree(), SCIPsparseSolFree(), SCIPstatFree(), SCIPtreeFree(), SCIPvisualFree(), tcliqueFree(), xmlFreeAttr(), and xmlFreeNode().

#define BMSfreeMemoryNull (   ptr)    BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ )

Definition at line 101 of file memory.h.

Referenced by SCIPlpFree().

#define BMSfreeMemoryArray (   ptr)    BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ )

Definition at line 102 of file memory.h.

Referenced by branch(), divesetFree(), doCdata(), exprgraphNodeEval(), exprgraphNodeUpdateBounds(), freeClique(), freeCliquehash(), getASlice(), getAttrval(), getName(), handleDecl(), handleEndtag(), handleStarttag(), hashtableResize(), linelistFree(), lpiGetBInvVec(), lpiStrongbranch(), lpiStrongbranches(), paramFree(), printstr(), probingnodeFree(), procInTag(), procPcdata(), SCIPbranchruleFree(), SCIPcomprFree(), SCIPconflicthdlrFree(), SCIPconshdlrFree(), SCIPdialoghdlrFree(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphFree(), SCIPdigraphFreeComponents(), SCIPdigraphTopoSortComponents(), SCIPdispAutoActivate(), SCIPdispFree(), SCIPeventhdlrFree(), SCIPexprCheckCurvature(), SCIPexprEval(), SCIPexprEvalInt(), SCIPexprgraphGetNodePolynomialMonomialCurvature(), SCIPexprgraphSimplify(), SCIPexprgraphUpdateNodeBoundsCurvature(), SCIPexprtreePrintWithNames(), SCIPexprtreeSimplify(), SCIPhashmapFree(), SCIPhashtableFree(), SCIPheurFree(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgSides(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiFree(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPnlpiFree(), SCIPnodeselFree(), SCIPpqueueFree(), SCIPpresolFree(), SCIPpricerFree(), SCIPprobFree(), SCIPprobSetName(), SCIPprofileFree(), SCIPpropFree(), SCIPqueueFree(), SCIPreaderFree(), SCIPreaderWrite(), SCIPrelaxFree(), SCIPreoptFree(), SCIPsepaFree(), SCIPsolveLinearProb(), SCIPsparseSolFree(), SCIPtransformMinUC(), tcliqueColoring(), tcliqueFlush(), tcliqueFree(), tcliqueLoadFile(), tcliqueMaxClique(), writeProblem(), xmlFreeAttr(), xmlFreeNode(), and xmlProcess().

#define BMSfreeMemorySize (   ptr)    BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ )

Definition at line 104 of file memory.h.

#define BMSfreeMemorySizeNull (   ptr)    BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ )

Definition at line 105 of file memory.h.

#define BMSgetPointerSize (   ptr)    BMSgetPointerSize_call(ptr)

Definition at line 108 of file memory.h.

#define BMSdisplayMemory ( )    BMSdisplayMemory_call()

Definition at line 109 of file memory.h.

Referenced by SCIPprintMemoryDiagnostic().

#define BMScheckEmptyMemory ( )    BMScheckEmptyMemory_call()

Definition at line 110 of file memory.h.

Referenced by SCIPrunShell().

#define BMSgetMemoryUsed ( )    BMSgetMemoryUsed_call()

Definition at line 111 of file memory.h.

Referenced by branch().

#define BMScreateChunkMemory (   sz,
  isz,
  gbf 
)    BMScreateChunkMemory_call( (sz), (isz), (gbf), __FILE__, __LINE__ )

Definition at line 262 of file memory.h.

Referenced by tcliqueMaxClique().

#define BMSclearChunkMemory (   mem)    BMSclearChunkMemory_call( (mem), __FILE__, __LINE__ )

Definition at line 263 of file memory.h.

Referenced by tcliqueColoring().

#define BMSdestroyChunkMemory (   mem)    BMSdestroyChunkMemory_call( (mem), __FILE__, __LINE__ )

Definition at line 264 of file memory.h.

Referenced by tcliqueMaxClique().

#define BMSallocChunkMemory (   mem,
  ptr 
)    ASSIGN((ptr), BMSallocChunkMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__))

Definition at line 266 of file memory.h.

Referenced by tcliqueColoring(), and updateNeighbor().

#define BMSduplicateChunkMemory (   mem,
  ptr,
  source 
)
Value:
ASSIGN((ptr), BMSduplicateChunkMemory_call((mem), (const void*)(source), \
sizeof(**(ptr)), __FILE__, __LINE__ ))
void * BMSduplicateChunkMemory_call(BMS_CHKMEM *chkmem, const void *source, size_t size, const char *filename, int line)
Definition: memory.c:1551
#define ASSIGN(pointerstarstar, voidstarfunction)
Definition: memory.h:43

Definition at line 267 of file memory.h.

#define BMSfreeChunkMemory (   mem,
  ptr 
)    BMSfreeChunkMemory_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ )

Definition at line 269 of file memory.h.

Referenced by tcliqueColoring(), and updateNeighbor().

#define BMSfreeChunkMemoryNull (   mem,
  ptr 
)    BMSfreeChunkMemoryNull_call( (mem), (void**)(ptr) )

Definition at line 270 of file memory.h.

#define BMSgarbagecollectChunkMemory (   mem)    BMSgarbagecollectChunkMemory_call(mem)

Definition at line 271 of file memory.h.

#define BMSgetChunkMemoryUsed (   mem)    BMSgetChunkMemoryUsed_call(mem)

Definition at line 272 of file memory.h.

Referenced by branch().

#define BMScreateBlockMemory (   csz,
  gbf 
)    BMScreateBlockMemory_call( (csz), (gbf), __FILE__, __LINE__ )

Definition at line 402 of file memory.h.

Referenced by SCIPmemCreate().

#define BMSclearBlockMemory (   mem)    BMSclearBlockMemory_call( (mem), __FILE__, __LINE__ )

Definition at line 403 of file memory.h.

#define BMSdestroyBlockMemory (   mem)    BMSdestroyBlockMemory_call( (mem), __FILE__, __LINE__ )

Definition at line 404 of file memory.h.

Referenced by SCIPmemFree().

#define BMSallocBlockMemory (   mem,
  ptr 
)    ASSIGN((ptr), BMSallocBlockMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__))

Definition at line 406 of file memory.h.

Referenced by btnodeCreateEmpty(), checkMemDualCons(), cliqueCreateWithData(), cliquelistCreate(), collectDualInformation(), colStoreSolVals(), conflictsetCopy(), conflictsetCreate(), conssetchgCreate(), createConstraint(), createReoptnode(), createSolTree(), cutCreate(), exprCreate(), exprgraphCreateNode(), exprUnconvertPolynomial(), forkCreate(), forkFree(), hashmaplistAppend(), hashtablelistAppend(), holelistCreate(), implicsCreate(), lpistateCreate(), nodeCreate(), paramCreate(), polynomialdataCreate(), probingnodeCreate(), pseudoforkCreate(), quadraticdataCreate(), rowStoreSolVals(), saveGlobalCons(), saveLocalConssData(), SCIPbdchginfoCreate(), SCIPboolarrayCreate(), SCIPcolCreate(), SCIPconsCreate(), SCIPeventCreateGholeAdded(), SCIPeventCreateGholeRemoved(), SCIPeventCreateGlbChanged(), SCIPeventCreateGubChanged(), SCIPeventCreateImplAdded(), SCIPeventCreateLbChanged(), SCIPeventCreateLholeAdded(), SCIPeventCreateLholeRemoved(), SCIPeventCreateObjChanged(), SCIPeventCreateRowAddedLP(), SCIPeventCreateRowAddedSepa(), SCIPeventCreateRowCoefChanged(), SCIPeventCreateRowConstChanged(), SCIPeventCreateRowDeletedLP(), SCIPeventCreateRowDeletedSepa(), SCIPeventCreateRowSideChanged(), SCIPeventCreateUbChanged(), SCIPeventCreateVarAdded(), SCIPeventCreateVarDeleted(), SCIPeventCreateVarFixed(), SCIPeventCreateVarUnlocked(), SCIPeventfilterCreate(), SCIPexprCreateMonomial(), SCIPexprCreateUser(), SCIPexprgraphCreate(), SCIPexprgraphCreateNodeUser(), SCIPexprtreeCreate(), SCIPhistoryCreate(), SCIPintarrayCreate(), SCIPlpiGetNorms(), SCIPlpiGetState(), SCIPnlrowCreate(), SCIPptrarrayCreate(), SCIPrealarrayCreate(), SCIPreoptAddGlbCons(), SCIPreoptnodeAddCons(), SCIPreoptSplitRoot(), SCIProwCreate(), SCIPsolCopy(), SCIPsolCreate(), SCIPsolCreateOriginal(), 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 407 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 408 of file memory.h.

Referenced by checkMemDualCons(), checkMemGlbCons(), conflictsetCopy(), createReopttree(), createSolTree(), evalFunctionGradient(), evalFunctionValue(), exprgraphAddExpr(), exprgraphFindParentByOperator(), exprgraphNodeCreateExpr(), exprgraphNodePropagateBounds(), exprgraphNodeRemovePolynomialDuplicateChildren(), exprgraphNodeRemovePolynomialNullChildren(), exprgraphNodeSimplify(), exprsimplifyRemoveDuplicatePolynomialChildren(), exprsimplifyRemovePolynomialNullChildren(), exprsimplifyRemovePolynomialUnusedChildren(), exprsimplifySeparateLinearFromPolynomial(), exprUnconvertPolynomial(), hessLagAddExprtree(), hessLagSparsitySetNzFlagForExprtree(), lpistateCreate(), nlpCalcFracVars(), polynomialdataCopy(), polynomialdataCreate(), printFunction(), reoptnodeCheckMemory(), saveAfterDualBranchings(), saveGlobalCons(), saveLocalConssData(), SCIPboolarrayExtend(), SCIPcliquetableAdd(), SCIPcolCreate(), SCIPexprCopyDeep(), SCIPexprCreate(), SCIPexprCreateLinear(), SCIPexprCreateMonomial(), SCIPexprgraphAddExprtreeSum(), SCIPexprgraphCreateNodeLinear(), SCIPexprgraphGetSeparableTrees(), SCIPexprgraphGetSumTrees(), SCIPexprgraphGetTree(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprgraphReplaceVarByLinearSum(), SCIPexprtreeCreate(), SCIPexprtreeRemoveFixedVars(), SCIPintarrayExtend(), SCIPlpiGetNorms(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPptrarrayExtend(), SCIPrealarrayExtend(), SCIPreoptAddRun(), SCIPreoptCreate(), SCIProwCreate(), SCIPtreeCreate(), and SCIPvaluehistoryCreate().

#define BMSallocClearBlockMemoryArray (   mem,
  ptr,
  num 
)    ASSIGN((ptr), BMSallocClearBlockMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))

Definition at line 409 of file memory.h.

#define BMSreallocBlockMemorySize (   mem,
  ptr,
  oldsize,
  newsize 
)
Value:
ASSIGN((ptr), BMSreallocBlockMemory_call((mem), (void*)(*(ptr)), \
(size_t)(ptrdiff_t)(oldsize), (size_t)(ptrdiff_t)(newsize), __FILE__, __LINE__))
void * BMSreallocBlockMemory_call(BMS_BLKMEM *blkmem, void *ptr, size_t oldsize, size_t newsize, const char *filename, int line)
Definition: memory.c:1946
#define ASSIGN(pointerstarstar, voidstarfunction)
Definition: memory.h:43

Definition at line 410 of file memory.h.

Referenced by domchgMakeDynamic(), SCIPdomchgMakeStatic(), and SCIPensureBlockMemoryArray_call().

#define BMSreallocBlockMemoryArray (   mem,
  ptr,
  oldnum,
  newnum 
)
Value:
ASSIGN((ptr), BMSreallocBlockMemoryArray_call((mem), (void*)(*(ptr)), \
(size_t)(ptrdiff_t)(oldnum), (size_t)(ptrdiff_t)(newnum), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSreallocBlockMemoryArray_call(BMS_BLKMEM *blkmem, void *ptr, size_t oldnum, size_t newnum, size_t typesize, const char *filename, int line)
Definition: memory.c:1986
#define ASSIGN(pointerstarstar, voidstarfunction)
Definition: memory.h:43

Definition at line 412 of file memory.h.

Referenced by checkMemDualCons(), checkMemGlbCons(), cliqueEnsureSize(), cliquelistEnsureSize(), colEnsureSize(), conflictsetEnsureBdchginfosMem(), conssetchgEnsureAddedconssSize(), conssetchgEnsureDisabledconssSize(), domchgEnsureBoundchgsSize(), domchgEnsureHolechgsSize(), ensureConsLinSize(), ensureConsQuadSize(), ensureConssSize(), ensureIntArraySize(), ensureRunSize(), ensureSolsSize(), ensureVarsSize(), eventfilterEnsureMem(), exprgraphNodeAddChildren(), exprgraphNodeRemovePolynomialNullChildren(), exprsimplifyAddChildren(), exprsimplifyFlattenPolynomials(), exprsimplifyRemovePolynomialNullChildren(), implicsEnsureSize(), monomialdataEnsureFactorsSize(), nlpCalcFracVars(), nlpEnsureNlRowsSolverSize(), nlpEnsureVarsSolverSize(), reoptnodeCheckMemory(), reopttreeCheckMemory(), saveAfterDualBranchings(), saveGlobalCons(), SCIPdomchgMakeStatic(), SCIPexprAddToLinear(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprtreeAddVars(), SCIPexprtreeRemoveFixedVars(), SCIPexprtreeSetParams(), SCIPexprtreeSetVars(), SCIPnlpEnsureNlRowsSize(), SCIPnlpEnsureVarsSize(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlrowEnsureLinearSize(), SCIPnlrowEnsureQuadElementsSize(), SCIPnlrowEnsureQuadVarsSize(), SCIProwEnsureSize(), SCIPtreeAddDiveBoundChange(), SCIPvaluehistoryFind(), SCIPvarFlattenAggregationGraph(), SCIPvarMultiaggregate(), varEnsureLbchginfosSize(), varEnsureParentvarsSize(), varEnsureUbchginfosSize(), and vboundsEnsureSize().

#define BMSduplicateBlockMemory (   mem,
  ptr,
  source 
)
Value:
ASSIGN((ptr), BMSduplicateBlockMemory_call((mem), (const void*)(source), \
sizeof(**(ptr)), __FILE__, __LINE__ ))
void * BMSduplicateBlockMemory_call(BMS_BLKMEM *blkmem, const void *source, size_t size, const char *filename, int line)
Definition: memory.c:2025
#define ASSIGN(pointerstarstar, voidstarfunction)
Definition: memory.h:43

Definition at line 414 of file memory.h.

Referenced by polynomialdataCopy(), SCIP_DECL_EXPRCOPYDATA(), SCIPexprCopyDeep(), and SCIPexprtreeCopy().

#define BMSduplicateBlockMemoryArray (   mem,
  ptr,
  source,
  num 
)
#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__ )

Definition at line 421 of file memory.h.

Referenced by changeAncestorBranchings(), evalFunctionGradient(), evalFunctionValue(), exprgraphAddExpr(), exprgraphFindParentByOperator(), exprgraphNodePropagateBounds(), exprgraphNodeRemovePolynomialDuplicateChildren(), exprgraphNodeRemovePolynomialNullChildren(), exprgraphNodeSimplify(), exprsimplifyFlattenPolynomials(), exprsimplifyRemoveDuplicatePolynomialChildren(), exprsimplifyRemovePolynomialNullChildren(), exprsimplifyRemovePolynomialUnusedChildren(), exprsimplifySeparateLinearFromPolynomial(), freeReoptTree(), freeSolTree(), freeVariables(), hessLagAddExprtree(), hessLagSparsitySetNzFlagForExprtree(), invalidateHessianLagSparsity(), invalidateJacobiSparsity(), lpistateFree(), nlrowRemoveFixedQuadVars(), polynomialdataFree(), printFunction(), reoptnodeDelete(), reoptnodeReset(), reoptnodeResetDualConss(), reoptnodeUpdateDualConss(), SCIP_DECL_EXPRFREEDATA(), SCIPcliquelistDel(), SCIPcliquetableAdd(), SCIPconsChgName(), SCIPconsFree(), SCIPexprFreeDeep(), SCIPexprFreeMonomial(), SCIPexprgraphAddExprtreeSum(), SCIPexprgraphFree(), SCIPexprgraphGetSeparableTrees(), SCIPexprgraphGetSumTrees(), SCIPexprgraphGetTree(), SCIPexprgraphNodeSplitOffLinear(), SCIPexprtreeRemoveFixedVars(), SCIPlpiFreeNorms(), SCIPlpiGetNorms(), SCIPnlpFree(), SCIPnlpiOracleChgExprtree(), SCIPnlpiOracleDelVarSet(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlpiOracleSetProblemName(), SCIPnlrowFree(), SCIPreoptFree(), SCIProwFree(), SCIPtreeFree(), SCIPvaluehistoryFree(), SCIPvarChgName(), SCIPvarMultiaggregate(), and varFree().

#define BMSfreeBlockMemorySize (   mem,
  ptr,
  size 
)    BMSfreeBlockMemory_call( (mem), (void**)(ptr), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )

Definition at line 423 of file memory.h.

Referenced by SCIPdomchgFree().

#define BMSfreeBlockMemorySizeNull (   mem,
  ptr,
  size 
)    BMSfreeBlockMemory_call( (mem), (void**)(ptr), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )

Definition at line 424 of file memory.h.

#define BMSgarbagecollectBlockMemory (   mem)    BMSgarbagecollectBlockMemory_call(mem)

Definition at line 426 of file memory.h.

Referenced by SCIPtransformProb().

#define BMSgetBlockMemoryUsed (   mem)    BMSgetBlockMemoryUsed_call(mem)

Definition at line 427 of file memory.h.

Referenced by SCIPmemGetUsed().

#define BMSgetBlockPointerSize (   mem,
  ptr 
)    BMSgetBlockPointerSize_call((mem), (ptr))

Definition at line 428 of file memory.h.

#define BMSdisplayBlockMemory (   mem)    BMSdisplayBlockMemory_call(mem)

Definition at line 429 of file memory.h.

Referenced by SCIPprintMemoryDiagnostic().

#define BMSblockMemoryCheckEmpty (   mem)    BMScheckEmptyBlockMemory_call(mem)

Definition at line 430 of file memory.h.

#define BMSallocBufferMemory (   mem,
  ptr 
)    ASSIGN((ptr), BMSallocBufferMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__))

Definition at line 632 of file memory.h.

#define BMSallocBufferMemorySize (   mem,
  ptr,
  size 
)    ASSIGN((ptr), BMSallocBufferMemory_call((mem), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__))

Definition at line 633 of file memory.h.

#define BMSreallocBufferMemorySize (   mem,
  ptr,
  size 
)    ASSIGN((ptr), BMSreallocBufferMemory_call((mem), (void*)(*(ptr)), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__))

Definition at line 634 of file memory.h.

#define BMSallocBufferMemoryArray (   mem,
  ptr,
  num 
)    ASSIGN((ptr), BMSallocBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))

Definition at line 636 of file memory.h.

#define BMSallocClearBufferMemoryArray (   mem,
  ptr,
  num 
)    ASSIGN((ptr), BMSallocClearBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))

Definition at line 637 of file memory.h.

#define BMSreallocBufferMemoryArray (   mem,
  ptr,
  num 
)
Value:
ASSIGN((ptr), BMSreallocBufferMemoryArray_call((mem), (void*)(*(ptr)), (size_t)(ptrdiff_t)(num), \
sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSreallocBufferMemoryArray_call(BMS_BUFMEM *buffer, void *ptr, size_t num, size_t typesize, const char *filename, int line)
Definition: memory.c:2853
#define ASSIGN(pointerstarstar, voidstarfunction)
Definition: memory.h:43

Definition at line 638 of file memory.h.

#define BMSduplicateBufferMemory (   mem,
  ptr,
  source,
  size 
)    ASSIGN((ptr), BMSduplicateBufferMemory_call((mem), (const void*)(source), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__))

Definition at line 640 of file memory.h.

#define BMSduplicateBufferMemoryArray (   mem,
  ptr,
  source,
  num 
)
Value:
(const void*)(source), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))
#define ASSIGN(pointerstarstar, voidstarfunction)
Definition: memory.h:43
void * BMSduplicateBufferMemoryArray_call(BMS_BUFMEM *buffer, const void *source, size_t num, size_t typesize, const char *filename, int line)
Definition: memory.c:2898

Definition at line 642 of file memory.h.

#define BMSfreeBufferMemory (   mem,
  ptr 
)    BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__)

Definition at line 645 of file memory.h.

#define BMSfreeBufferMemoryNull (   mem,
  ptr 
)    BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__)

Definition at line 646 of file memory.h.

#define BMSfreeBufferMemoryArray (   mem,
  ptr 
)    BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__)

Definition at line 647 of file memory.h.

#define BMSfreeBufferMemoryArrayNull (   mem,
  ptr 
)    BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__)

Definition at line 648 of file memory.h.

#define BMSfreeBufferMemorySize (   mem,
  ptr 
)    BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__);

Definition at line 649 of file memory.h.

#define BMSfreeBufferMemorySizeNull (   mem,
  ptr 
)    BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__)

Definition at line 650 of file memory.h.

#define BMScreateBufferMemory (   fac,
  init,
  clean 
)    BMScreateBufferMemory_call((fac), (init), (clean), __FILE__, __LINE__)

Definition at line 652 of file memory.h.

Referenced by SCIPmemCreate().

#define BMSdestroyBufferMemory (   mem)    BMSdestroyBufferMemory_call((mem), __FILE__, __LINE__)

Definition at line 653 of file memory.h.

Referenced by SCIPmemFree().

Typedef Documentation

typedef struct BMS_ChkMem BMS_CHKMEM

collection of memory chunks of the same element size

Definition at line 257 of file memory.h.

typedef struct BMS_BlkMem BMS_BLKMEM

block memory: collection of chunk blocks

Definition at line 392 of file memory.h.

typedef struct BMS_BufMem BMS_BUFMEM

buffer memory for temporary objects

Definition at line 626 of file memory.h.

Function Documentation

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

Parameters
numnumber of memory element to allocate
typesizesize of one memory element to allocate
filenamesource file where the allocation is performed
lineline number in source file where the allocation is performed

Definition at line 311 of file memory.c.

References debugMessage, MAX, MAXMEMSIZE, NULL, printError, and printErrorHeader.

void* BMSallocMemory_call ( size_t  size,
const char *  filename,
int  line 
)

allocates memory; returns NULL if memory allocation failed

Parameters
sizesize of memory element to allocate
filenamesource file where the allocation is performed
lineline number in source file where the allocation is performed

Definition at line 350 of file memory.c.

References debugMessage, MAX, MAXMEMSIZE, NULL, 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

Parameters
numnumber of components of array to allocate
typesizesize of each component
filenamesource file where the allocation is performed
lineline number in source file where the allocation is performed

Definition at line 386 of file memory.c.

References debugMessage, MAX, MAXMEMSIZE, NULL, 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

Parameters
ptrpointer to memory to reallocate
sizenew size of memory element
filenamesource file where the reallocation is performed
lineline number in source file where the reallocation is performed

Definition at line 426 of file memory.c.

References MAX, MAXMEMSIZE, NULL, 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

Parameters
ptrpointer to memory to reallocate
numnumber of components of array to allocate
typesizesize of each component
filenamesource file where the reallocation is performed
lineline number in source file where the reallocation is performed

Definition at line 466 of file memory.c.

References MAX, MAXMEMSIZE, NULL, printError, and printErrorHeader.

void BMSclearMemory_call ( void *  ptr,
size_t  size 
)

clears a memory element (i.e. fills it with zeros)

Parameters
ptrpointer to memory element
sizesize of memory element

Definition at line 509 of file memory.c.

References NULL.

void BMScopyMemory_call ( void *  ptr,
const void *  source,
size_t  size 
)

copies the contents of one memory element into another memory element

Parameters
ptrpointer to target memory element
sourcepointer to source memory element
sizesize of memory element to copy

Definition at line 522 of file memory.c.

References NULL.

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

Parameters
ptrpointer to target memory element
sourcepointer to source memory element
sizesize of memory element to copy

Definition at line 539 of file memory.c.

References NULL.

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

Parameters
sourcepointer to source memory element
sizesize of memory element to copy
filenamesource file where the duplication is performed
lineline number in source file where the duplication is performed

Definition at line 554 of file memory.c.

References BMSallocMemory_call(), BMScopyMemory_call(), and NULL.

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

Parameters
sourcepointer to source memory element
numnumber of components of array to allocate
typesizesize of each component
filenamesource file where the duplication is performed
lineline number in source file where the duplication is performed

Definition at line 573 of file memory.c.

References BMSallocMemoryArray_call(), BMScopyMemory_call(), and NULL.

void BMSfreeMemory_call ( void **  ptr,
const char *  filename,
int  line 
)

frees an allocated memory element and sets pointer to NULL

Parameters
ptrpointer to pointer to memory element
filenamesource file where the deallocation is performed
lineline number in source file where the deallocation is performed

Definition at line 593 of file memory.c.

References NULL, printError, and printErrorHeader.

void BMSfreeMemoryNull_call ( void **  ptr,
const char *  filename,
int  line 
)

frees an allocated memory element if pointer is not NULL and sets pointer to NULL

Parameters
ptrpointer to pointer to memory element
filenamesource file where the deallocation is performed
lineline number in source file where the deallocation is performed

Definition at line 616 of file memory.c.

References NULL.

size_t BMSgetPointerSize_call ( const void *  ptr)

returns the size of an allocated memory element

Parameters
ptrpointer to allocated memory

Definition at line 273 of file memory.c.

void BMSdisplayMemory_call ( void  )

outputs information about currently allocated memory to the screen

Definition at line 281 of file memory.c.

References printInfo.

void BMScheckEmptyMemory_call ( void  )

displays a warning message on the screen, if allocated memory exists

Definition at line 291 of file memory.c.

References printInfo.

long long BMSgetMemoryUsed_call ( void  )

returns total number of allocated bytes

Definition at line 301 of file memory.c.

void BMSalignMemsize ( size_t *  size)

aligns the given byte size corresponding to the minimal alignment for chunk and block memory

Parameters
sizepointer to the size to align

Definition at line 715 of file memory.c.

References ALIGNMENT, and alignSize().

int BMSisAligned ( size_t  size)

checks whether the given size meets the alignment conditions for chunk and block memory

Parameters
sizesize to check for alignment

Definition at line 724 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

Parameters
sizeelement size of the chunk block
initchunksizenumber of elements in the first chunk of the chunk block
garbagefactorgarbage collector is called, if at least garbagefactor * avg. chunksize elements are free (-1: disable garbage collection)
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1462 of file memory.c.

References alignSize(), createChkmem(), debugMessage, NULL, printError, and printErrorHeader.

void BMSclearChunkMemory_call ( BMS_CHKMEM chkmem,
const char *  filename,
int  line 
)

clears a chunk block data structure

Parameters
chkmemchunk block
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1486 of file memory.c.

References clearChkmem(), debugMessage, NULL, printError, and printErrorHeader.

void BMSdestroyChunkMemory_call ( BMS_CHKMEM **  chkmem,
const char *  filename,
int  line 
)

destroys and frees a chunk block data structure

Parameters
chkmempointer to chunk block
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1504 of file memory.c.

References debugMessage, destroyChkmem(), NULL, 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

Parameters
chkmemchunk block
sizesize of memory element to allocate (only needed for sanity check)
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1524 of file memory.c.

References allocChkmemElement(), checkChkmem, debugMessage, NULL, 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

Parameters
chkmemchunk block
sourcesource memory element
sizesize of memory element to allocate (only needed for sanity check)
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1551 of file memory.c.

References BMSallocChunkMemory_call(), BMScopyMemorySize, and NULL.

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

Parameters
chkmemchunk block
ptrpointer to pointer to memory element to free
sizesize of memory element to allocate (only needed for sanity check)
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1573 of file memory.c.

References checkChkmem, debugMessage, freeChkmemElement(), NULL, 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

Parameters
chkmemchunk block
ptrpointer to pointer to memory element to free
sizesize of memory element to allocate (only needed for sanity check)
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1602 of file memory.c.

References checkChkmem, debugMessage, freeChkmemElement(), and NULL.

void BMSgarbagecollectChunkMemory_call ( BMS_CHKMEM chkmem)

calls garbage collection of chunk block and frees chunks without allocated memory elements

Parameters
chkmemchunk block

Definition at line 1626 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

Parameters
chkmemchunk block

Definition at line 1636 of file memory.c.

References NULL.

BMS_BLKMEM* BMScreateBlockMemory_call ( int  initchunksize,
int  garbagefactor,
const char *  filename,
int  line 
)

creates a block memory allocation data structure

Parameters
initchunksizenumber of elements in the first chunk of each chunk block
garbagefactorgarbage collector is called, if at least garbagefactor * avg. chunksize elements are free (-1: disable garbage collection)
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1746 of file memory.c.

References BMSallocMemory, CHKHASH_SIZE, NULL, printError, and printErrorHeader.

void BMSclearBlockMemory_call ( BMS_BLKMEM blkmem,
const char *  filename,
int  line 
)

frees all chunk blocks in the block memory

Parameters
blkmemblock memory
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1776 of file memory.c.

References CHKHASH_SIZE, destroyChkmem(), NULL, printError, and printErrorHeader.

Referenced by BMSdestroyBlockMemory_call().

void BMSdestroyBlockMemory_call ( BMS_BLKMEM **  blkmem,
const char *  filename,
int  line 
)

clears and deletes block memory

Parameters
blkmempointer to block memory
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1809 of file memory.c.

References BMSclearBlockMemory_call(), BMSfreeMemory, INLINE, NULL, printError, and printErrorHeader.

void* BMSallocBlockMemory_call ( BMS_BLKMEM blkmem,
size_t  size,
const char *  filename,
int  line 
)

allocates memory in the block memory pool

Parameters
blkmemblock memory
sizesize of memory element to allocate
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1887 of file memory.c.

References BMSallocBlockMemory_work(), MAXMEMSIZE, NULL, 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

Parameters
blkmemblock memory
numsize of array to be allocated
typesizesize of each component
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1907 of file memory.c.

References BMSallocBlockMemory_work(), MAXMEMSIZE, NULL, 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

Parameters
blkmemblock memory
numsize of array to be allocated
typesizesize of each component
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1928 of file memory.c.

References BMSallocBlockMemoryArray_call(), BMSclearMemorySize, and NULL.

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

Parameters
blkmemblock memory
ptrmemory element to reallocated
oldsizeold size of memory element
newsizenew size of memory element
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1946 of file memory.c.

References alignSize(), BMSallocBlockMemory_call(), BMScopyMemorySize, BMSfreeBlockMemory_call(), MAXMEMSIZE, MIN, NULL, 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

Parameters
blkmemblock memory
ptrmemory element to reallocated
oldnumold size of array
newnumnew size of array
typesizesize of each component
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 1986 of file memory.c.

References BMSallocBlockMemoryArray_call(), BMScopyMemorySize, BMSfreeBlockMemory_call(), MAXMEMSIZE, MIN, NULL, 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

Parameters
blkmemblock memory
sourcememory element to duplicate
sizesize of memory elements
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2025 of file memory.c.

References BMSallocBlockMemory_call(), BMScopyMemorySize, and NULL.

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

Parameters
blkmemblock memory
sourcememory element to duplicate
numsize of array to be duplicated
typesizesize of each component
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2045 of file memory.c.

References BMSallocBlockMemoryArray_call(), BMScopyMemorySize, INLINE, and NULL.

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

Parameters
blkmemblock memory
ptrpointer to pointer to memory element to free
sizesize of memory element
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2110 of file memory.c.

References BMSfreeBlockMemory_work(), checkBlkmem, NULL, 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

Parameters
blkmemblock memory
ptrpointer to pointer to memory element to free
sizesize of memory element
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2132 of file memory.c.

References BMSfreeBlockMemory_work(), checkBlkmem, and NULL.

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

Parameters
blkmemblock memory

Definition at line 2153 of file memory.c.

References CHKHASH_SIZE, destroyChkmem(), garbagecollectChkmem(), and NULL.

long long BMSgetBlockMemoryUsed_call ( const BMS_BLKMEM blkmem)

returns the number of allocated bytes in the block memory

Parameters
blkmemblock memory

Definition at line 2184 of file memory.c.

References NULL.

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

Parameters
blkmemblock memory
ptrmemory element

Definition at line 2194 of file memory.c.

References findChkmem(), and NULL.

void BMSdisplayBlockMemory_call ( const BMS_BLKMEM blkmem)

outputs allocation diagnostics of block memory

Parameters
blkmemblock memory

Definition at line 2214 of file memory.c.

References CHKHASH_SIZE, LONGINT_FORMAT, NULL, and printInfo.

void BMScheckEmptyBlockMemory_call ( const BMS_BLKMEM blkmem)

outputs warning messages, if there are allocated elements in the block memory

Parameters
blkmemblock memory

Definition at line 2337 of file memory.c.

References CHKHASH_SIZE, LONGINT_FORMAT, NULL, and printInfo.

BMS_BUFMEM* BMScreateBufferMemory_call ( double  arraygrowfac,
int  arraygrowinit,
unsigned int  clean,
const char *  filename,
int  line 
)

creates memory buffer storage

Parameters
arraygrowfacmemory growing factor for dynamically allocated arrays
arraygrowinitinitial size of dynamically allocated arrays
cleanshould the memory blocks in the buffer be initialized to zero?
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2430 of file memory.c.

References BMS_BufMem::arraygrowfac, BMS_BufMem::arraygrowinit, BMSallocMemory, BMS_BufMem::clean, BMS_BufMem::data, BMS_BufMem::firstfree, BMS_BufMem::ndata, NULL, 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

Parameters
bufferpointer to memory buffer storage
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2466 of file memory.c.

References BMSfreeMemory, BMSfreeMemoryArrayNull, NULL, printError, and printErrorHeader.

void BMSsetBufferMemoryArraygrowfac ( BMS_BUFMEM buffer,
double  arraygrowfac 
)

set arraygrowfac

Parameters
bufferpointer to memory buffer storage
arraygrowfacmemory growing factor for dynamically allocated arrays

Definition at line 2499 of file memory.c.

References BMS_BufMem::arraygrowfac, and NULL.

void BMSsetBufferMemoryArraygrowinit ( BMS_BUFMEM buffer,
int  arraygrowinit 
)

set arraygrowinit

Parameters
bufferpointer to memory buffer storage
arraygrowinitinitial size of dynamically allocated arrays

Definition at line 2511 of file memory.c.

References BMS_BufMem::arraygrowinit, and NULL.

void* BMSallocBufferMemory_call ( BMS_BUFMEM buffer,
size_t  size,
const char *  filename,
int  line 
)

allocates the next unused buffer

Parameters
buffermemory buffer storage
sizeminimal required size of the buffer
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2700 of file memory.c.

References BMSallocBufferMemory_work(), MAXMEMSIZE, NULL, 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

Parameters
buffermemory buffer storage
numsize of array to be allocated
typesizesize of components
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2720 of file memory.c.

References BMSallocBufferMemory_work(), MAXMEMSIZE, NULL, 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

Parameters
buffermemory buffer storage
numsize of array to be allocated
typesizesize of components
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2741 of file memory.c.

References BMSallocBufferMemoryArray_call(), BMSclearMemorySize, INLINE, and NULL.

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

Parameters
buffermemory buffer storage
ptrpointer to the allocated memory buffer
sizeminimal required size of the buffer
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2832 of file memory.c.

References BMSreallocBufferMemory_work(), MAXMEMSIZE, NULL, 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

Parameters
buffermemory buffer storage
ptrpointer to the allocated memory buffer
numsize of array to be allocated
typesizesize of components
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2853 of file memory.c.

References BMSreallocBufferMemory_work(), MAXMEMSIZE, NULL, 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

Parameters
buffermemory buffer storage
sourcememory block to copy into the buffer
sizeminimal required size of the buffer
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2875 of file memory.c.

References BMSallocBufferMemory_call(), BMScopyMemorySize, and NULL.

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

Parameters
buffermemory buffer storage
sourcememory block to copy into the buffer
numsize of array to be allocated
typesizesize of components
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2898 of file memory.c.

References BMSallocBufferMemoryArray_call(), BMScopyMemorySize, INLINE, and NULL.

void BMSfreeBufferMemory_call ( BMS_BUFMEM buffer,
void **  ptr,
const char *  filename,
int  line 
)

frees a buffer and sets pointer to NULL

Parameters
buffermemory buffer storage
ptrpointer to pointer to the allocated memory buffer
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 2988 of file memory.c.

References BMSfreeBufferMemory_work(), BMSfreeMemory, NULL, 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

Parameters
buffermemory buffer storage
ptrpointer to pointer to the allocated memory buffer
filenamesource file of the function call
lineline number in source file of the function call

Definition at line 3011 of file memory.c.

References BMSfreeBufferMemory_work(), BMSfreeMemory, and NULL.

size_t BMSgetNUsedBufferMemory ( BMS_BUFMEM buffer)

gets number of used buffers

Parameters
buffermemory buffer storage

Definition at line 3031 of file memory.c.

References BMS_BufMem::firstfree, and NULL.

Referenced by exitPresolve(), initPresolve(), presolve(), presolveRound(), priceAndCutLoop(), propAndSolve(), SCIPsolveCIP(), and solveNode().

long long BMSgetBufferMemoryUsed ( const BMS_BUFMEM buffer)

returns the number of allocated bytes in the buffer memory

Parameters
bufferbuffer memory

Definition at line 3041 of file memory.c.

References BMS_BufMem::ndata, NULL, BMS_BufMem::size, and BMS_BufMem::totalmem.

Referenced by SCIPmemGetUsed().

void BMSprintBufferMemory ( BMS_BUFMEM buffer)

outputs statistics about currently allocated buffers to the screen

Parameters
buffermemory buffer storage

Definition at line 3059 of file memory.c.

References BMS_BufMem::data, BMS_BufMem::ndata, NULL, BMS_BufMem::size, and BMS_BufMem::used.

Referenced by SCIPprintMemoryDiagnostic().