SCIP Doxygen Documentation
Loading...
Searching...
No Matches
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>
#include "scip/config.h"
#include "scip/scip_export.h"

Go to the source code of this file.

Macros

#define ASSIGN(pointerstarstar, voidstarfunction)
#define ASSIGNCHECK(pointerstarstar, voidstarfunction, origpointer)
#define SCIP_UNUSED(x)
#define BMSallocMemory(ptr)
#define BMSallocClearMemory(ptr)
#define BMSallocMemorySize(ptr, size)
#define BMSallocMemoryCPP(size)
#define BMSallocClearMemorySize(ptr, size)
#define BMSallocMemoryArray(ptr, num)
#define BMSallocMemoryArrayCPP(num, size)
#define BMSallocClearMemoryArray(ptr, num)
#define BMSreallocMemorySize(ptr, size)
#define BMSreallocMemoryArray(ptr, num)
#define BMSclearMemory(ptr)
#define BMSclearMemoryArray(ptr, num)
#define BMSclearMemorySize(ptr, size)
#define BMScopyMemory(ptr, source)
#define BMScopyMemoryArray(ptr, source, num)
#define BMScopyMemorySize(ptr, source, size)
#define BMSmoveMemory(ptr, source)
#define BMSmoveMemoryArray(ptr, source, num)
#define BMSmoveMemorySize(ptr, source, size)
#define BMSduplicateMemory(ptr, source)
#define BMSduplicateMemorySize(ptr, source, size)
#define BMSduplicateMemoryArray(ptr, source, num)
#define BMSfreeMemory(ptr)
#define BMSfreeMemoryNull(ptr)
#define BMSfreeMemoryArray(ptr)
#define BMSfreeMemoryArrayNull(ptr)
#define BMSfreeMemorySize(ptr)
#define BMSfreeMemorySizeNull(ptr)
#define BMSgetPointerSize(ptr)
#define BMSdisplayMemory()
#define BMScheckEmptyMemory()
#define BMSgetMemoryUsed()
#define BMScreateChunkMemory(sz, isz, gbf)
#define BMSclearChunkMemory(mem)
#define BMSdestroyChunkMemory(mem)
#define BMSallocChunkMemory(mem, ptr)
#define BMSduplicateChunkMemory(mem, ptr, source)
#define BMSfreeChunkMemory(mem, ptr)
#define BMSfreeChunkMemoryNull(mem, ptr)
#define BMSgarbagecollectChunkMemory(mem)
#define BMSgetChunkMemoryUsed(mem)
#define BMScreateBlockMemory(csz, gbf)
#define BMSclearBlockMemory(mem)
#define BMSdestroyBlockMemory(mem)
#define BMSallocBlockMemory(mem, ptr)
#define BMSallocClearBlockMemory(mem, ptr)
#define BMSallocBlockMemorySize(mem, ptr, size)
#define BMSallocBlockMemoryArray(mem, ptr, num)
#define BMSallocClearBlockMemoryArray(mem, ptr, num)
#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)
#define BMSfreeBlockMemoryNull(mem, ptr)
#define BMSfreeBlockMemoryArray(mem, ptr, num)
#define BMSfreeBlockMemoryArrayNull(mem, ptr, num)
#define BMSfreeBlockMemorySize(mem, ptr, size)
#define BMSfreeBlockMemorySizeNull(mem, ptr, size)
#define BMSgarbagecollectBlockMemory(mem)
#define BMSgetBlockMemoryAllocated(mem)
#define BMSgetBlockMemoryUsed(mem)
#define BMSgetBlockMemoryUnused(mem)
#define BMSgetBlockMemoryUsedMax(mem)
#define BMSgetBlockMemoryUnusedMax(mem)
#define BMSgetBlockMemoryAllocatedMax(mem)
#define BMSgetBlockPointerSize(mem, ptr)
#define BMSdisplayBlockMemory(mem)
#define BMSblockMemoryCheckEmpty(mem)
#define BMSallocBufferMemory(mem, ptr)
#define BMSallocBufferMemorySize(mem, ptr, size)
#define BMSreallocBufferMemorySize(mem, ptr, size)
#define BMSallocBufferMemoryArray(mem, ptr, num)
#define BMSallocClearBufferMemoryArray(mem, ptr, num)
#define BMSreallocBufferMemoryArray(mem, ptr, num)
#define BMSduplicateBufferMemory(mem, ptr, source, size)
#define BMSduplicateBufferMemoryArray(mem, ptr, source, num)
#define BMSfreeBufferMemory(mem, ptr)
#define BMSfreeBufferMemoryNull(mem, ptr)
#define BMSfreeBufferMemoryArray(mem, ptr)
#define BMSfreeBufferMemoryArrayNull(mem, ptr)
#define BMSfreeBufferMemorySize(mem, ptr)
#define BMSfreeBufferMemorySizeNull(mem, ptr)
#define BMScreateBufferMemory(fac, init, clean)
#define BMSdestroyBufferMemory(mem)

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 * BMSallocClearBlockMemory_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_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 *buffer)
void BMSprintBufferMemory (BMS_BUFMEM *buffer)

Macro Definition Documentation

◆ ASSIGN

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

Definition at line 80 of file memory.h.

◆ ASSIGNCHECK

#define ASSIGNCHECK ( pointerstarstar,
voidstarfunction,
origpointer )
Value:
(*(pointerstarstar) = (voidstarfunction))

Definition at line 81 of file memory.h.

◆ SCIP_UNUSED

#define SCIP_UNUSED ( x)
Value:
((void) (x))
SCIP_VAR ** x

Definition at line 102 of file memory.h.

◆ BMSallocMemory

#define BMSallocMemory ( ptr)
Value:
ASSIGN((ptr), BMSallocMemory_call( sizeof(**(ptr)), __FILE__, __LINE__ ))
void * BMSallocMemory_call(size_t size, const char *filename, int line)
Definition memory.c:389
#define ASSIGN(pointerstarstar, voidstarfunction)
Definition memory.h:80

Definition at line 118 of file memory.h.

Referenced by BMScreateBlockMemory_call(), BMScreateBufferMemory_call(), create_graph(), createChkmem(), createClique(), createCliquehash(), createJobQueue(), createThreadPool(), doBanditvtableCreate(), doBendersCreate(), doBenderscutCreate(), doBranchruleCreate(), doComprCreate(), doConcsolverTypeCreate(), doConflicthdlrCreate(), doConshdlrCreate(), doCutselCreate(), doDispCreate(), doEventhdlrCreate(), doHeurCreate(), doNodeselCreate(), doPresolCreate(), doPricerCreate(), doProfileCreate(), doPropCreate(), doReaderCreate(), doRelaxCreate(), doScipCreate(), doSepaCreate(), doTableCreate(), lpExactStoreSolVals(), lpStoreSolVals(), pushPstack(), SCIP_DECL_CONCSOLVERCREATEINST(), SCIPactivityCreate(), SCIPbendersActivate(), SCIPbranchcandCreate(), SCIPcertificateCreate(), SCIPcliquetableCreate(), SCIPclockCreate(), SCIPconcsolverCreateInstance(), SCIPconflictCreate(), SCIPconflictstoreCreate(), SCIPcreateMessagehdlrPbSolver(), SCIPcutpoolCreate(), SCIPdialogCreate(), SCIPdialoghdlrAddInputLine(), SCIPdialoghdlrCreate(), SCIPeventqueueCreate(), SCIPinterruptCreate(), SCIPlpCreate(), SCIPlpExactCreate(), SCIPlpiCreate(), SCIPlpiExactCreate(), SCIPmemCreate(), SCIPmessagehdlrCreate(), SCIPnlpCreate(), SCIPnodepqCreate(), SCIPparamsetCreate(), SCIPpqueueCreate(), SCIPpricestoreCreate(), SCIPprimalCreate(), SCIPprobCreate(), SCIPqueueCreate(), SCIPrationalCreate(), SCIPregForestFromFile(), SCIPregressionCreate(), SCIPrelaxationCreate(), SCIPreoptCreate(), SCIPsepastoreCreate(), SCIPsepastoreExactCreate(), SCIPsparseSolCreate(), SCIPstatCreate(), SCIPsyncstoreCreate(), SCIPtpiCreateJob(), SCIPtpiInitCondition(), SCIPtpiInitLock(), SCIPtreeCreate(), SCIPvisualCreate(), SCIPxmlNewAttr(), SCIPxmlNewNode(), and tcliqueCreate().

◆ BMSallocClearMemory

#define BMSallocClearMemory ( ptr)
Value:
ASSIGN((ptr), BMSallocClearMemory_call((size_t)(1), sizeof(**(ptr)), __FILE__, __LINE__ ))
void * BMSallocClearMemory_call(size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:350

Definition at line 119 of file memory.h.

Referenced by SCIPnlpiCreate().

◆ BMSallocMemorySize

#define BMSallocMemorySize ( ptr,
size )

◆ BMSallocMemoryCPP

#define BMSallocMemoryCPP ( size)
Value:
BMSallocMemory_call( (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ )

Definition at line 121 of file memory.h.

Referenced by SCIPlpiCreate(), and SCIPlpiExactCreate().

◆ BMSallocClearMemorySize

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

Definition at line 122 of file memory.h.

Referenced by BMSallocBufferMemory_work().

◆ BMSallocMemoryArray

#define BMSallocMemoryArray ( ptr,
num )
Value:
ASSIGN((ptr), BMSallocMemoryArray_call((size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ ))
void * BMSallocMemoryArray_call(size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:423

Definition at line 123 of file memory.h.

Referenced by allocDiveChgSideArrays(), branch(), create_graph(), createClique(), createCliquehash(), createJobQueue(), createThreadPool(), delRangeVars(), doCdata(), doProfileCreate(), ensureSoldirectionSize(), F77_FUNC(), getAttrval(), getIndicesFromDense(), getIndicesRange(), getName(), heurAddDiveset(), lpiStrongbranch(), lpiStrongbranches(), lpiStrongbranches(), main(), procPcdata(), SCIPbendersActivate(), SCIPcertificateInit(), SCIPcertificatePrintProblemRational(), SCIPcertificatePrintProofRational(), SCIPdialoghdlrCreate(), SCIPdigraphComputeDirectedComponents(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphGetArticulationPoints(), SCIPdigraphTopoSortComponents(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiClearState(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetColNames(), SCIPlpiGetRowNames(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPlpiReadLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPlpiSolvePrimal(), SCIPlpiWriteLP(), SCIPmessagehdlrCreate(), SCIPrationalCreateArray(), SCIPregForestFromFile(), SCIPreoptCreate(), SCIPsolveLinearEquationsIpopt(), SCIPsparseSolCreate(), SCIPtreeStoreRelaxSol(), SCIPxmlProcess(), tcliqueAddEdge(), tcliqueColoring(), tcliqueLoadFile(), and tcliqueMaxClique().

◆ BMSallocMemoryArrayCPP

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

Definition at line 124 of file memory.h.

◆ BMSallocClearMemoryArray

#define BMSallocClearMemoryArray ( ptr,
num )
Value:
ASSIGN((ptr), BMSallocClearMemory_call((size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ ))

Definition at line 125 of file memory.h.

Referenced by reoptSaveNewObj(), SCIPbendersActivate(), SCIPbendersInitpre(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphTopoSortComponents(), SCIPlpiSolvePrimal(), and SCIPsparseSolCreate().

◆ BMSreallocMemorySize

#define BMSreallocMemorySize ( ptr,
size )
Value:
ASSIGN((ptr), BMSreallocMemory_call((void*)(*(ptr)), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__ ))
void * BMSreallocMemory_call(void *ptr, size_t size, const char *filename, int line)
Definition memory.c:461

Definition at line 126 of file memory.h.

Referenced by BMSallocBufferMemory_work(), and BMSreallocBufferMemory_work().

◆ BMSreallocMemoryArray

#define BMSreallocMemoryArray ( ptr,
num )
Value:
ASSIGN((ptr), BMSreallocMemoryArray_call( *(ptr), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__ ))
void * BMSreallocMemoryArray_call(void *ptr, size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:497

Definition at line 127 of file memory.h.

Referenced by BMSallocBufferMemory_work(), cliquetableEnsureSize(), conflictClearResolution(), conflictEnsureConflictRowsMem(), conflictEnsureConflictsetsMem(), conflictEnsureProofsetsMem(), conflictEnsureTmpbdchginfosMem(), conshdlrEnsureCheckconssMem(), conshdlrEnsureConssMem(), conshdlrEnsureEnfoconssMem(), conshdlrEnsureInitconssMem(), conshdlrEnsurePropconssMem(), conshdlrEnsureSepaconssMem(), conshdlrEnsureUpdateconssMem(), cutpoolEnsureCutsMem(), doCdata(), ensureAptreMem(), ensureBkcMem(), ensureBkxMem(), ensureBoundchgMem(), ensureBoundchgMem(), ensureChgcolsSize(), ensureChgcolsSize(), ensureChgrowsSize(), ensureChgrowsSizeExact(), ensureCliquehashSize(), ensureColexsSize(), ensureColMem(), ensureColsSize(), ensureCstatMem(), ensureCstatMem(), ensureCstatMem(), ensureCstatMem(), ensureCstatMem(), ensureCstatMem(), ensureCstatMem(), ensureExistingsolsSize(), ensureExterncandsSize(), ensureLazycolsSize(), ensureLpcandsSize(), ensureLpicolsSize(), ensureLpiExactcolsSize(), ensureLpirowexactsSize(), ensureLpirowsSize(), ensurePartialsolsSize(), ensureProfileSize(), ensurePropagationStorage(), ensurePseudocandsSize(), ensureRngrowmapMem(), ensureRngrowsMem(), ensureRowexsSize(), ensureRowMem(), ensureRowsSize(), ensureRstatMem(), ensureRstatMem(), ensureRstatMem(), ensureRstatMem(), ensureRstatMem(), ensureRstatMem(), ensureRstatMem(), ensureRunSize(), ensureSidechgMem(), ensureSidechgMem(), ensureSidechgMem(), ensureSolsSize(), ensureStateMem(), ensureSubdialogMem(), ensureTabMem(), ensureValMem(), ensureValMem(), ensureValMem(), eventqueueEnsureEventsMem(), getAttrval(), getName(), heurAddDiveset(), main(), nodepqResize(), paramsetAdd(), pqueueResize(), pricestoreEnsureBdviolvarsMem(), pricestoreEnsureVarsMem(), probEnsureConssMem(), probEnsureDeletedvarsMem(), probEnsureFixedvarsMem(), probEnsureVarsMem(), procPcdata(), queueResize(), reallocDiveChgSideArrays(), reoptSaveNewObj(), SCIPbendersIncludeBenderscut(), SCIPrationalReallocArray(), SCIPtreeStoreRelaxSol(), sepastoreEnsureCutsMem(), sepastoreExactEnsureCutsMem(), storeSubproblemMasterVar(), tcliqueEnsureSizeCachedEdges(), tcliqueEnsureSizeEdges(), tcliqueEnsureSizeNodes(), treeEnsureChildrenMem(), treeEnsurePathMem(), and treeEnsurePendingbdchgsMem().

◆ BMSclearMemory

#define BMSclearMemory ( ptr)
Value:
BMSclearMemory_call( (void*)(ptr), sizeof(*(ptr)) )
void BMSclearMemory_call(void *ptr, size_t size)
Definition memory.c:536

Definition at line 129 of file memory.h.

Referenced by createBoundRays(), createPattern(), createRays(), doBanditvtableCreate(), doBendersCreate(), doBranchruleCreate(), doComprCreate(), doConcsolverTypeCreate(), doConflicthdlrCreate(), doConshdlrCreate(), doCutselCreate(), doDispCreate(), doEventhdlrCreate(), doHeurCreate(), doNodeselCreate(), doPresolCreate(), doPricerCreate(), doProfileCreate(), doPropCreate(), doReaderCreate(), doRelaxCreate(), doScipCreate(), doSepaCreate(), doTableCreate(), initBounds(), probdataCreate(), resetTreeProfileStats(), SCIPcreateRowprep(), SCIPincludeBenderscutFeasalt(), SCIPincludeBenderscutInt(), SCIPincludeBendersDefault(), SCIPincludeConshdlrBenderslp(), SCIPincludeConshdlrRpa(), SCIPincludeCutselDynamic(), SCIPincludeCutselEnsemble(), SCIPincludeCutselHybrid(), SCIPincludeEventHdlrEstim(), SCIPincludeHeurAlns(), SCIPincludeHeurDualval(), SCIPincludeHeurMpec(), SCIPincludeHeurMultistart(), SCIPincludeHeurScheduler(), SCIPincludeHeurSubNlp(), SCIPincludeIISfinderGreedy(), SCIPincludeNlhdlrBilinear(), SCIPincludeNlhdlrPerspective(), SCIPincludeNlhdlrQuadratic(), SCIPincludeNlhdlrSignomial(), SCIPincludePricerRpa(), SCIPincludePropNlobbt(), SCIPincludePropObbt(), SCIPincludeSepaConvexproj(), SCIPincludeSepaGauge(), SCIPincludeSepaInterminor(), SCIPincludeSepaMinor(), SCIPincludeSepaZerohalf(), SCIPnlpiOracleCreate(), SCIPregForestFromFile(), SCIPxmlNewAttr(), SCIPxmlNewNode(), sepadataCreate(), and sepadataCreate().

◆ BMSclearMemoryArray

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

Definition at line 130 of file memory.h.

Referenced by addCliques(), addNegatedCliques(), addRelaxation(), alnsFixMoreVariables(), alnsUnfixVariables(), applyOptcumulative(), applyOptcumulativeFixings(), branch(), branch(), branchruledataEnsureNlcount(), calcCliquePartitionGreedy(), checkForOverlapping(), checkSolution(), checkSystemGF2(), checkViolations(), cleanupNetwork(), cliquePresolve(), computeCut(), computeGradient(), computeMinDistance(), computeRestrictionToLine(), computeRestrictionToRay(), computeRowJacobianSparsity(), conflictAnalyzeLP(), conflictsetCalcInsertDepth(), consCatchAllEvents(), consCatchAllEvents(), countNonlinearities(), createCGMIPprimalsols(), createCipFormulation(), createCoveringProblem(), createIntervalRelaxation(), createMipCpFormulation(), createSubSCIP(), createTcliqueGraph(), dataReset(), detectImpliedBounds(), detectParallelCols(), ensureClearBoolArraySize(), ensureMemorySize(), evalFunctionGradient(), extendMemoryTreeProfile(), extractCapacityRows(), extractCliques(), extractFlow(), extractNodes(), fillDigraph(), filterPatterns(), findAggregation(), fullDualPresolve(), generateAverageRay(), generateClusterCuts(), getFlowCover(), getGMIFromRow(), getGMIFromRow(), getInputString(), getLiftingSequenceGUB(), getMaxactImplicObjchg(), getNextLine(), getNextLine(), getNextLine(), getNextLine(), getNextLine(), getNLPVarsNonConvexity(), getNodeIdx(), getNVarsIndicators(), heurStatsReset(), identifySourcesTargets(), improvePoint(), initBounds(), initData(), initPropdata(), insertSortedRootNeighbors(), intercutsComputeCommonQuantities(), isPatternDominating(), LNSFixMoreVariables(), LNSUnfixVariables(), lpbdchgsCreate(), lpbdchgsReset(), lpCleanupCols(), lpCleanupRows(), lpRemoveObsoleteCols(), lpRemoveObsoleteRows(), matrixSetColumnMajor(), mcfnetworkExtract(), mcfnetworkFill(), neighborhoodStatsReset(), nlpSolve(), nodepartitionCreate(), preprocessCliques(), presolveConsEffectiveHorizon(), presolveCumulativeCondition(), presolvePropagateCons(), probdataCreate(), processNlRow(), propagateCons(), propagateCons(), readFile(), readFile(), ReadMatrix(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeRedundantConssAndNonzeros(), resolvePropagationCoretimes(), SCIP_DECL_BANDITRESET(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHINIT(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_EXPRESTIMATE(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLHDLRINITSEPA(), SCIP_DECL_NLPISOLVE(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRICERFARKAS(), SCIP_DECL_PROPEXEC(), SCIP_DECL_PROPPRESOL(), SCIP_DECL_PROPPRESOL(), SCIPaggrRowCreate(), SCIPbendersRemoveSubproblems(), SCIPboolarrayClear(), SCIPboundstoreClear(), SCIPcomputeFacetVertexPolyhedralNonlinear(), SCIPcreateNlpiProblemFromNlRows(), SCIPdigraphComputeUndirectedComponents(), SCIPgetBinvarRepresentatives(), SCIPgetFarkasProof(), SCIPhashmapRemoveAll(), SCIPhashsetRemoveAll(), SCIPhashtableRemoveAll(), SCIPintarrayClear(), SCIPlinConsStatsReset(), SCIPlpComputeRelIntPoint(), SCIPlpExactGetSol(), SCIPlpGetDualfarkas(), SCIPlpGetSol(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpRemoveRedundantRows(), SCIPmatrixCreate(), SCIPmatrixGetParallelCols(), SCIPmatrixGetParallelRows(), SCIPnlpGetVarsNonlinearity(), SCIPnlpiInit(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleDelConsSet(), SCIPnlpiOracleEvalHessianLag(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPpackCirclesGreedy(), SCIPprimalTransformSol(), SCIPprintSolutionStatistics(), SCIPprobdataEnumeratePatterns(), SCIPptrarrayClear(), SCIPrealarrayClear(), SCIPreoptAddCons(), SCIPrunBoundHeuristic(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPsnprintfProbingStats(), SCIPwritePbm(), scoreContainterResetBestSortedCands(), searchEcAggrWithCliques(), separateCuts(), separateGLS(), separateHeur(), sequentialUpAndDownLifting(), sequentialUpAndDownLiftingGUB(), setColumnMajorFormat(), setupAggregationData(), shortenConss(), singletonColumnStuffing(), Solution(), stableSort(), superadditiveUpLifting(), tcliqueAddEdge(), tcliqueColoring(), tcliquegraphConstructCliqueTable(), tightenWeightsLift(), tryUpgradingXor(), updatePartition(), and updatePrimalRay().

◆ BMSclearMemorySize

#define BMSclearMemorySize ( ptr,
size )

◆ BMScopyMemory

#define BMScopyMemory ( ptr,
source )
Value:
BMScopyMemory_call( (void*)(ptr), (const void*)(source), sizeof(*(ptr)) )
void BMScopyMemory_call(void *ptr, const void *source, size_t size)
Definition memory.c:549

Definition at line 133 of file memory.h.

◆ BMScopyMemoryArray

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

Definition at line 134 of file memory.h.

Referenced by addSymmetryInformation(), calcMIRSafely(), computeConsAndDataChanges(), computeRowJacobianSparsity(), conflictRowCopy(), conflictRowReplace(), conflictsetCopy(), createSolTuple(), cutsRoundMIRSafely(), DECL_VARFIXINGS(), DECL_VARFIXINGS(), determineVariableFixings(), evaluateWorhpRun(), extendCliqueZeroWeight(), F77_FUNC(), F77_FUNC(), filterPatterns(), heurExec(), initWorhp(), mod2rowAddRow(), newSolution(), AMPLProblemHandler::OnHeader(), ReadMatrix(), removeConstraintsDueToNegCliques(), rollingHorizonStoreDistances(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_EXPRESTIMATE(), SCIP_DECL_EXPRINITESTIMATES(), SCIP_DECL_EXPRREVERSEPROP(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLPIDELCONSSET(), SCIP_DECL_NLPIDELVARSET(), SCIP_DECL_NLPISETINITIALGUESS(), SCIP_DECL_NLPISETINITIALGUESS(), SCIP_DECL_NLPISETINITIALGUESS(), SCIP_DECL_NLPISETINITIALGUESS(), SCIP_DECL_NLPISOLVE(), SCIP_DECL_NLPISOLVE(), SCIP_DECL_PROPEXITPRE(), SCIPaddRowprepTerms(), SCIPboolarrayExtend(), SCIPcalcKnapsackCover(), SCIPcalcMIR(), SCIPcalcStrongCG(), SCIPcertificateInit(), SCIPconshdlrsStorePropagationStatus(), SCIPcreateConsPseudobooleanWithConss(), SCIPcutGenerationHeuristicCMIR(), SCIPdigraphComputeUndirectedComponents(), SCIPgetBinvarRepresentatives(), SCIPheurPassIndicator(), SCIPintarrayExtend(), SCIPintervalPropagateWeightedSum(), SCIPlapackSolveLinearEquations(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiGetBInvARow(), SCIPlpiGetBounds(), SCIPlpiGetCols(), SCIPlpiGetObj(), SCIPlpiGetPrimalRay(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPnlpiOracleAddVars(), SCIPnlpiOracleEvalJacobian(), SCIPnlpSetInitialGuess(), SCIPptrarrayExtend(), SCIPrandomGetSubset(), SCIPrealarrayExtend(), SCIPsolveLinearEquationsIpopt(), SCIPvarsGetActiveVars(), SCIPxmlProcess(), selectVarRecursive(), Solution(), solveLinearProb3(), tabooListFind(), tcliqueColoring(), and tryToInsert().

◆ BMScopyMemorySize

#define BMScopyMemorySize ( ptr,
source,
size )

◆ BMSmoveMemory

#define BMSmoveMemory ( ptr,
source )
Value:
BMSmoveMemory_call( (void*)(ptr), (const void*)(source), sizeof(*(ptr)) )
void BMSmoveMemory_call(void *ptr, const void *source, size_t size)
Definition memory.c:566

Definition at line 137 of file memory.h.

◆ BMSmoveMemoryArray

#define BMSmoveMemoryArray ( ptr,
source,
num )
Value:
BMSmoveMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(num) * sizeof(*(ptr)) )

Definition at line 138 of file memory.h.

Referenced by cutsTransformKnapsackCover(), mod2rowUnlinkCol(), queueCheckSize(), SCIPboolarrayExtend(), SCIPcliqueAddVar(), SCIPcliquelistAdd(), SCIPcliquelistDel(), SCIPimplicsAdd(), and SCIPimplicsDel().

◆ BMSmoveMemorySize

#define BMSmoveMemorySize ( ptr,
source,
size )
Value:
BMSmoveMemory_call( (void*)(ptr), (const void*)(source), (size_t)(ptrdiff_t)(size) )

Definition at line 139 of file memory.h.

◆ BMSduplicateMemory

#define BMSduplicateMemory ( ptr,
source )
Value:
ASSIGN((ptr), BMSduplicateMemory_call( (const void*)(source), sizeof(**(ptr)), __FILE__, __LINE__ ))
void * BMSduplicateMemory_call(const void *source, size_t size, const char *filename, int line)
Definition memory.c:581

Definition at line 141 of file memory.h.

◆ BMSduplicateMemorySize

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

Definition at line 142 of file memory.h.

◆ BMSduplicateMemoryArray

#define BMSduplicateMemoryArray ( ptr,
source,
num )
Value:
ASSIGNCHECK((ptr), BMSduplicateMemoryArray_call( (const void*)(source), (size_t)(ptrdiff_t)(num), \
sizeof(**(ptr)), __FILE__, __LINE__ ), source)
void * BMSduplicateMemoryArray_call(const void *source, size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:600
#define ASSIGNCHECK(pointerstarstar, voidstarfunction, origpointer)
Definition memory.h:81

Definition at line 143 of file memory.h.

Referenced by alnsIncludeNeighborhood(), BMSallocBlockMemory_work(), doBanditvtableCreate(), doBendersCreate(), doBenderscutCreate(), doBranchruleCreate(), doComprCreate(), doConcsolverTypeCreate(), doConflicthdlrCreate(), doConshdlrCreate(), doCutselCreate(), doDispCreate(), doEventhdlrCreate(), doHeurCreate(), doNodeselCreate(), doPresolCreate(), doPricerCreate(), doPropCreate(), doReaderCreate(), doRelaxCreate(), doSepaCreate(), doTableCreate(), handleDecl(), paramCreate(), paramCreateChar(), paramCreateString(), procPcdata(), schedulerIncludeNeighborhood(), SCIPconcsolverCreateInstance(), SCIPdialogCreate(), SCIPdialoghdlrAddInputLine(), SCIPdispAutoActivate(), SCIPdivesetCreate(), SCIPexprhdlrCreate(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPlpiReadLP(), SCIPlpiWriteLP(), SCIPnlpiCreate(), SCIPparamSetDefaultString(), SCIPparamSetString(), SCIPprobCreate(), SCIPprobSetName(), SCIPprobSortConssCheck(), SCIPrationalCopyArray(), SCIPsolveLinearEquationsIpopt(), SCIPsparseSolCreate(), SCIPxmlNewAttr(), SCIPxmlNewNode(), timeSeriesCreate(), and writeProblem().

◆ BMSfreeMemory

#define BMSfreeMemory ( ptr)
Value:
BMSfreeMemory_call( (void**)(ptr), __FILE__, __LINE__ )
void BMSfreeMemory_call(void **ptr, const char *filename, int line)
Definition memory.c:620

Definition at line 145 of file memory.h.

Referenced by BMSdestroyBlockMemory_call(), BMSdestroyBufferMemory_call(), BMSfreeBufferMemory_call(), BMSfreeBufferMemoryNull_call(), create_graph(), destroyChkmem(), destroyChunk(), dialogFree(), free_graph(), freeClique(), freeCliquehash(), freeJobQueue(), freeJobQueue(), freeReoptTree(), freeSolTree(), freeThreadPool(), linelistFree(), messagehdlrFree(), popPstack(), SCIP_DECL_CONCSOLVERDESTROYINST(), SCIP_DECL_CONCSOLVERTYPEFREEDATA(), SCIP_DECL_MESSAGEHDLRFREE(), SCIPactivityFree(), SCIPbanditvtableFree(), SCIPbenderscutFree(), SCIPbendersDeactivate(), SCIPbendersFree(), SCIPbranchcandFree(), SCIPbranchruleFree(), SCIPcertificateFree(), SCIPcliquetableFree(), SCIPclockFree(), SCIPcomprFree(), SCIPconcsolverDestroyInstance(), SCIPconcsolverTypeFree(), SCIPconflictFree(), SCIPconflicthdlrFree(), SCIPconshdlrFree(), SCIPcutpoolFree(), SCIPcutselFree(), SCIPdialogCreate(), SCIPdialoghdlrAddInputLine(), SCIPdialoghdlrFree(), SCIPdispFree(), SCIPeventhdlrFree(), SCIPeventqueueFree(), SCIPfree(), SCIPheurFree(), SCIPinterruptFree(), SCIPlpExactFree(), SCIPlpFree(), SCIPlpiExactFree(), SCIPlpiFree(), SCIPmemFree(), SCIPmessageVFPrintDialog(), SCIPmessageVFPrintInfo(), SCIPmessageVFPrintVerbInfo(), SCIPmessageVFPrintWarning(), SCIPmessageVPrintError(), SCIPnlpFree(), SCIPnlpiCreate(), SCIPnlpiFree(), SCIPnlpiOracleFree(), SCIPnodepqDestroy(), SCIPnodeselFree(), SCIPparamsetFree(), SCIPpqueueFree(), SCIPpresolFree(), SCIPpricerFree(), SCIPpricestoreFree(), SCIPprimalFree(), SCIPprobFree(), SCIPprofileFree(), SCIPpropFree(), SCIPqueueFree(), SCIPrationalFree(), SCIPreaderFree(), SCIPregForestFree(), SCIPregressionFree(), SCIPrelaxationFree(), SCIPrelaxFree(), SCIPreoptFree(), SCIPsepaFree(), SCIPsepastoreExactFree(), SCIPsepastoreFree(), SCIPsparseSolFree(), SCIPstatFree(), SCIPsyncstoreRelease(), SCIPtableFree(), SCIPtpiCollectJobs(), SCIPtpiDestroyCondition(), SCIPtpiDestroyLock(), SCIPtpiInitLock(), SCIPtreeFree(), SCIPvisualFree(), SCIPxmlFreeNode(), tcliqueFree(), and xmlFreeAttr().

◆ BMSfreeMemoryNull

#define BMSfreeMemoryNull ( ptr)
Value:
BMSfreeMemoryNull_call( (void**)(ptr), __FILE__, __LINE__ )
void BMSfreeMemoryNull_call(void **ptr, const char *filename, int line)
Definition memory.c:642

Definition at line 146 of file memory.h.

Referenced by SCIPconflictstoreFree(), SCIPlpExactFree(), and SCIPlpFree().

◆ BMSfreeMemoryArray

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

Definition at line 147 of file memory.h.

Referenced by alnsFreeNeighborhood(), branch(), create_graph(), delRangeVars(), divesetFree(), doCdata(), F77_FUNC(), freeClique(), freeCliquehash(), freeJobQueue(), freeThreadPool(), getAttrval(), getName(), handleDecl(), handleEndtag(), handleStarttag(), linelistFree(), lpiStrongbranch(), lpiStrongbranches(), lpiStrongbranches(), paramFree(), probingnodeFree(), procInTag(), procPcdata(), schedulerFreeNeighborhood(), SCIPbenderscutFree(), SCIPbendersDeactivate(), SCIPbendersFree(), SCIPcertificateExit(), SCIPcertificatePrintProblemRational(), SCIPcertificatePrintProofRational(), SCIPconcsolverDestroyInstance(), SCIPdialoghdlrFree(), SCIPdispAutoActivate(), SCIPexprhdlrFree(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiClearState(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiFree(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPlpiSolvePrimal(), SCIPnlpiCreate(), SCIPnlpiFree(), SCIPparamSetDefaultString(), SCIPpqueueFree(), SCIPprobDelCons(), SCIPprobFree(), SCIPprobSetName(), SCIPqueueFree(), SCIPreoptFree(), SCIPsolveLinearEquationsIpopt(), SCIPsparseSolFree(), SCIPxmlFreeNode(), SCIPxmlProcess(), tcliqueColoring(), tcliqueFlush(), tcliqueFree(), tcliqueMaxClique(), timeSeriesFree(), writeProblem(), and xmlFreeAttr().

◆ BMSfreeMemoryArrayNull

#define BMSfreeMemoryArrayNull ( ptr)

◆ BMSfreeMemorySize

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

Definition at line 149 of file memory.h.

◆ BMSfreeMemorySizeNull

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

Definition at line 150 of file memory.h.

◆ BMSgetPointerSize

#define BMSgetPointerSize ( ptr)
Value:
size_t BMSgetPointerSize_call(const void *ptr)
Definition memory.c:316

Definition at line 153 of file memory.h.

◆ BMSdisplayMemory

#define BMSdisplayMemory ( )
Value:
void BMSdisplayMemory_call(void)
Definition memory.c:325

Definition at line 154 of file memory.h.

Referenced by SCIPprintMemoryDiagnostic().

◆ BMScheckEmptyMemory

#define BMScheckEmptyMemory ( )
Value:
void BMScheckEmptyMemory_call(void)
Definition memory.c:333

Definition at line 155 of file memory.h.

Referenced by execmain(), main(), runSCIP(), runSCIP(), runShell(), runShell(), runShell(), SCIPrunColoringShell(), SCIPrunCyc(), and SCIPrunShell().

◆ BMSgetMemoryUsed

#define BMSgetMemoryUsed ( )
Value:
long long BMSgetMemoryUsed_call(void)
Definition memory.c:340

Definition at line 156 of file memory.h.

Referenced by branch().

◆ BMScreateChunkMemory

#define BMScreateChunkMemory ( sz,
isz,
gbf )
Value:
BMScreateChunkMemory_call( (sz), (isz), (gbf), __FILE__, __LINE__ )
BMS_CHKMEM * BMScreateChunkMemory_call(size_t size, int initchunksize, int garbagefactor, const char *filename, int line)
Definition memory.c:1497

Definition at line 307 of file memory.h.

Referenced by tcliqueMaxClique().

◆ BMSclearChunkMemory

#define BMSclearChunkMemory ( mem)
Value:
BMSclearChunkMemory_call( (mem), __FILE__, __LINE__ )
void BMSclearChunkMemory_call(BMS_CHKMEM *chkmem, const char *filename, int line)
Definition memory.c:1521

Definition at line 308 of file memory.h.

Referenced by tcliqueColoring().

◆ BMSdestroyChunkMemory

#define BMSdestroyChunkMemory ( mem)
Value:
BMSdestroyChunkMemory_call( (mem), __FILE__, __LINE__ )
void BMSdestroyChunkMemory_call(BMS_CHKMEM **chkmem, const char *filename, int line)
Definition memory.c:1540

Definition at line 309 of file memory.h.

Referenced by tcliqueMaxClique().

◆ BMSallocChunkMemory

#define BMSallocChunkMemory ( mem,
ptr )
Value:
ASSIGN((ptr), BMSallocChunkMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocChunkMemory_call(BMS_CHKMEM *chkmem, size_t size, const char *filename, int line)
Definition memory.c:1561

Definition at line 311 of file memory.h.

Referenced by tcliqueColoring(), and updateNeighbor().

◆ BMSduplicateChunkMemory

#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:1588

Definition at line 312 of file memory.h.

◆ BMSfreeChunkMemory

#define BMSfreeChunkMemory ( mem,
ptr )
Value:
BMSfreeChunkMemory_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ )
void BMSfreeChunkMemory_call(BMS_CHKMEM *chkmem, void **ptr, size_t size, const char *filename, int line)
Definition memory.c:1610

Definition at line 314 of file memory.h.

Referenced by tcliqueColoring(), and updateNeighbor().

◆ BMSfreeChunkMemoryNull

#define BMSfreeChunkMemoryNull ( mem,
ptr )
Value:
BMSfreeChunkMemoryNull_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ )
void BMSfreeChunkMemoryNull_call(BMS_CHKMEM *chkmem, void **ptr, size_t size, const char *filename, int line)
Definition memory.c:1639

Definition at line 315 of file memory.h.

◆ BMSgarbagecollectChunkMemory

#define BMSgarbagecollectChunkMemory ( mem)
Value:
void BMSgarbagecollectChunkMemory_call(BMS_CHKMEM *chkmem)
Definition memory.c:1663

Definition at line 316 of file memory.h.

◆ BMSgetChunkMemoryUsed

#define BMSgetChunkMemoryUsed ( mem)
Value:
long long BMSgetChunkMemoryUsed_call(const BMS_CHKMEM *chkmem)
Definition memory.c:1673

Definition at line 317 of file memory.h.

Referenced by branch().

◆ BMScreateBlockMemory

#define BMScreateBlockMemory ( csz,
gbf )
Value:
BMScreateBlockMemory_call( (csz), (gbf), __FILE__, __LINE__ )
BMS_BLKMEM * BMScreateBlockMemory_call(int initchunksize, int garbagefactor, const char *filename, int line)
Definition memory.c:1770

Definition at line 447 of file memory.h.

Referenced by SCIPmemCreate().

◆ BMSclearBlockMemory

#define BMSclearBlockMemory ( mem)
Value:
BMSclearBlockMemory_call( (mem), __FILE__, __LINE__ )
void BMSclearBlockMemory_call(BMS_BLKMEM *blkmem, const char *filename, int line)
Definition memory.c:1804

Definition at line 448 of file memory.h.

◆ BMSdestroyBlockMemory

#define BMSdestroyBlockMemory ( mem)
Value:
BMSdestroyBlockMemory_call( (mem), __FILE__, __LINE__ )
void BMSdestroyBlockMemory_call(BMS_BLKMEM **blkmem, const char *filename, int line)
Definition memory.c:1838

Definition at line 449 of file memory.h.

Referenced by SCIPmemFree().

◆ BMSallocBlockMemory

#define BMSallocBlockMemory ( mem,
ptr )
Value:
ASSIGN((ptr), BMSallocBlockMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocBlockMemory_call(BMS_BLKMEM *blkmem, size_t size, const char *filename, int line)
Definition memory.c:1937

Definition at line 451 of file memory.h.

Referenced by addGlobalCut(), btnodeCreateEmpty(), checkMemDualCons(), cliqueCreateWithData(), cliquelistCreate(), colExactStoreSolVals(), collectDualInformation(), colStoreSolVals(), conflictRowCopy(), conflictRowCreate(), conflictsetCopy(), conssetchgCreate(), createReoptnode(), createSolTree(), cutCreate(), forkCreate(), holelistCreate(), implicsCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), mod2MatrixAddOrigRow(), multihashlistAppend(), netcoladdCreate(), netMatDecDataCreate(), netrowaddCreate(), nodeCreate(), paramCreate(), probingnodeCreate(), proofsetCreate(), pseudoforkCreate(), rowExactStoreSolVals(), rowStoreSolVals(), saveLocalConssData(), SCIPbanditCreate(), SCIPbanditCreateEpsgreedy(), SCIPbanditCreateExp3(), SCIPbanditCreateExp3IX(), SCIPbanditCreateUcb(), SCIPbdchginfoCreate(), SCIPboolarrayCreate(), SCIPbtCreate(), SCIPcertificateNewNodeData(), SCIPcertificateSetAndPrintObjective(), SCIPcolCreate(), SCIPcolExactCreate(), SCIPconflictsetCreate(), SCIPconsCreate(), SCIPdatatreeCreate(), SCIPdecompCreate(), SCIPdecompstoreCreate(), SCIPdigraphCopy(), SCIPdigraphCreate(), SCIPdisjointsetCreate(), SCIPdivesetCreate(), SCIPeventCreateGholeAdded(), SCIPeventCreateGholeRemoved(), SCIPeventCreateGlbChanged(), SCIPeventCreateGubChanged(), SCIPeventCreateImplAdded(), SCIPeventCreateImplTypeChanged(), SCIPeventCreateLbChanged(), SCIPeventCreateLholeAdded(), SCIPeventCreateLholeRemoved(), SCIPeventCreateObjChanged(), SCIPeventCreateRowAddedLP(), SCIPeventCreateRowAddedSepa(), SCIPeventCreateRowCoefChanged(), SCIPeventCreateRowConstChanged(), SCIPeventCreateRowDeletedLP(), SCIPeventCreateRowDeletedSepa(), SCIPeventCreateRowSideChanged(), SCIPeventCreateSync(), SCIPeventCreateTypeChanged(), SCIPeventCreateUbChanged(), SCIPeventCreateVarAdded(), SCIPeventCreateVarDeleted(), SCIPeventCreateVarFixed(), SCIPeventCreateVarUnlocked(), SCIPeventfilterCreate(), SCIPexprPrintDotInit(), SCIPhashmapCreate(), SCIPhashsetCreate(), SCIPhashtableCreate(), SCIPhistoryCreate(), SCIPhypergraphCreate(), SCIPiisCreate(), SCIPintarrayCreate(), SCIPlpiGetNorms(), SCIPlpiGetState(), SCIPlpPsdataCreate(), SCIPmultihashCreate(), SCIPnetmatdecCreate(), SCIPnlrowCreate(), SCIPptrarrayCreate(), SCIPrandomCreate(), SCIPrationalarrayCreate(), SCIPrationalCreateBlock(), SCIPrealarrayCreate(), SCIPreoptnodeAddCons(), SCIPreoptSplitRoot(), SCIProwCreate(), SCIProwExactCreate(), SCIPsolCopy(), SCIPsolCreate(), SCIPsolCreateExact(), SCIPsolCreateOriginal(), SCIPsolCreateOriginalExact(), SCIPsolCreatePartial(), SCIPsolCreateUnknown(), SCIPsolMakeExact(), SCIPvalsExactCopy(), SCIPvaluehistoryCreate(), SCIPvarAddExactData(), SCIPvarCopyExactData(), solnodeAddChild(), varCreate(), and vboundsCreate().

◆ BMSallocClearBlockMemory

#define BMSallocClearBlockMemory ( mem,
ptr )
Value:
ASSIGN((ptr), BMSallocClearBlockMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocClearBlockMemory_call(BMS_BLKMEM *blkmem, size_t size, const char *filename, int line)
Definition memory.c:1957

Definition at line 452 of file memory.h.

Referenced by doIISfinderCreate(), SCIPexprCheckQuadratic(), SCIPexprCreate(), SCIPexprhdlrCreate(), and SCIPexpriterCreate().

◆ BMSallocBlockMemorySize

#define BMSallocBlockMemorySize ( mem,
ptr,
size )
Value:
ASSIGN((ptr), BMSallocBlockMemory_call((mem), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__))

Definition at line 453 of file memory.h.

Referenced by domchgCreate().

◆ BMSallocBlockMemoryArray

#define BMSallocBlockMemoryArray ( mem,
ptr,
num )
Value:
ASSIGN((ptr), BMSallocBlockMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocBlockMemoryArray_call(BMS_BLKMEM *blkmem, size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:1974

Definition at line 454 of file memory.h.

Referenced by addGlobalCut(), checkMemDualCons(), checkMemGlbCons(), conflictRowAddSemiSparseData(), conflictRowClear(), conflictRowCopy(), conflictsetCopy(), conflictstoreAddOrigConflict(), conflictstoreEnsureMem(), createReopttree(), createSolTree(), decompositionGetFundamentalCycleRows(), ensureNumEdges(), ensureNumOverlaps(), ensureSuccessorsSize(), hashmapCheckLoad(), hashtableCheckLoad(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), lpistateCreate(), netMatDecDataCreate(), netMatDecDataCreateDiGraph(), nlpCalcFracVars(), quadDetectGetQuadexprterm(), reoptnodeCheckMemory(), saveAfterDualBranchings(), saveConsLinear(), SCIPbanditCreateEpsgreedy(), SCIPbanditCreateExp3(), SCIPbanditCreateExp3IX(), SCIPbanditCreateUcb(), SCIPbendersInit(), SCIPboolarrayExtend(), SCIPcolCreate(), SCIPcolExactCreate(), SCIPconflictstoreAddDualraycons(), SCIPconflictstoreAddDualsolcons(), SCIPdatatreeCreate(), SCIPdatatreeInsertStringArray(), SCIPdecompCreate(), SCIPdecompstoreCreate(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphGetArticulationPoints(), SCIPdigraphSetSizes(), SCIPdisjointsetCreate(), SCIPexprCheckQuadratic(), SCIPexprComputeQuadraticCurvature(), SCIPhashmapCreate(), SCIPhashtableCreate(), SCIPhypergraphComputeOverlaps(), SCIPhypergraphComputeOverlapsEdges(), SCIPhypergraphComputeVerticesEdges(), SCIPhypergraphComputeVerticesOverlaps(), SCIPhypergraphIntersectEdges(), SCIPhypergraphIsValid(), SCIPhypergraphIterInit(), SCIPintarrayExtend(), SCIPlpiGetNorms(), SCIPnlpSetInitialGuess(), SCIPptrarrayExtend(), SCIPrationalCreateBlockArray(), SCIPrealarrayExtend(), SCIPreoptAddRun(), SCIPreoptCreate(), SCIPreoptUpdateVarHistory(), SCIProwCreate(), SCIProwExactCreate(), SCIPtreeCreate(), SCIPvaluehistoryCreate(), SCIPvarMultiaggregateExact(), and transformDualredsToLinear().

◆ BMSallocClearBlockMemoryArray

#define BMSallocClearBlockMemoryArray ( mem,
ptr,
num )
Value:
ASSIGN((ptr), BMSallocClearBlockMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocClearBlockMemoryArray_call(BMS_BLKMEM *blkmem, size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:1995

Definition at line 455 of file memory.h.

Referenced by hashmapCheckLoad(), hashsetCheckLoad(), hashtableCheckLoad(), multihashResize(), netMatDecDataCreateDiGraph(), SCIPdigraphCopy(), SCIPdigraphCreate(), SCIPexprCheckQuadratic(), SCIPexprComputeQuadraticCurvature(), SCIPhashmapCreate(), SCIPhashsetCreate(), SCIPhashtableCreate(), SCIPmultihashCreate(), and SCIPreoptAddCons().

◆ BMSreallocBlockMemorySize

#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:2013

Definition at line 456 of file memory.h.

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

◆ BMSreallocBlockMemoryArray

#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:2053

Definition at line 458 of file memory.h.

Referenced by addGlobalCut(), allocateRigidSearchMemory(), allocateTreeSearchMemory(), checkMemDualCons(), checkMemGlbCons(), cliqueEnsureSize(), cliquelistEnsureSize(), colEnsureSize(), colExactEnsureSize(), computeLeafMembers(), conflictRowAddSemiSparseData(), conflictRowReplace(), conflictsetEnsureBdchginfosMem(), conflictstoreAddOrigConflict(), conflictstoreEnsureMem(), conssetchgEnsureAddedconssSize(), conssetchgEnsureDisabledconssSize(), constructReducedDecomposition(), constructRowReducedDecomposition(), createArc(), createMember(), createNode(), createPathArcs(), createReducedDecompositionCutArcs(), datatreeExpand(), determineLeafReducedMembers(), domchgEnsureBoundchgsSize(), domchgEnsureHolechgsSize(), ensureActiveconssSize(), ensureElemSize(), ensureNumEdges(), ensureNumEdgesVertices(), ensureNumOverlaps(), ensureNumOverlapsVertices(), ensureNumVertices(), ensureRunSize(), ensureSolsSize(), ensureStackSize(), ensureSuccessorsSize(), eventfilterEnsureMem(), implicsEnsureSize(), newColUpdateColInformation(), newRowUpdateRowInformation(), nlpCalcFracVars(), nlpEnsureNlRowsSolverSize(), nlpEnsureVarsSolverSize(), proofsetAddSparseData(), reoptnodeCheckMemory(), reopttreeCheckMemory(), rescaleAndResolve(), saveAfterDualBranchings(), SCIP_DECL_NLPISOLVE(), SCIPbendersStoreCut(), SCIPdigraphComputeUndirectedComponents(), SCIPdigraphResize(), SCIPdomchgMakeStatic(), SCIPexprAppendChild(), SCIPhypergraphComputeOverlaps(), SCIPhypergraphComputeOverlapsEdges(), SCIPhypergraphComputeVerticesEdges(), SCIPhypergraphComputeVerticesOverlaps(), SCIPhypergraphIterNext(), SCIPnlpEnsureNlRowsSize(), SCIPnlpEnsureVarsSize(), SCIPnlrowEnsureLinearSize(), SCIPrationalReallocBlockArray(), SCIPreoptAddCons(), SCIProwEnsureSize(), SCIProwExactEnsureSize(), SCIPtreeAddDiveBoundChange(), SCIPvaluehistoryFind(), SCIPvarFlattenAggregationGraph(), SCIPvarMultiaggregate(), SCIPvarMultiaggregateExact(), varEnsureLbchginfosSize(), varEnsureParentvarsSize(), varEnsureUbchginfosSize(), and vboundsEnsureSize().

◆ BMSduplicateBlockMemory

#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:2092

Definition at line 460 of file memory.h.

◆ BMSduplicateBlockMemoryArray

◆ BMSfreeBlockMemory

#define BMSfreeBlockMemory ( mem,
ptr )
Value:
BMSfreeBlockMemory_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ )
void BMSfreeBlockMemory_call(BMS_BLKMEM *blkmem, void **ptr, size_t size, const char *filename, int line)
Definition memory.c:2183

Definition at line 465 of file memory.h.

Referenced by btnodeFreeLeaf(), certificateFreeNodeData(), cliqueFree(), cutFree(), divesetFree(), forkFree(), freeExpr(), holelistFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), multihashlistFree(), multihashlistRemove(), netcoladdFree(), netMatDecDataFree(), netrowaddFree(), nodeReleaseParent(), paramFree(), probingnodeFree(), pseudoforkFree(), reoptnodeDelete(), reoptnodeReset(), reoptnodeResetDualConss(), reoptnodeUpdateDualConss(), SCIP_DECL_BANDITFREE(), SCIP_DECL_BANDITFREE(), SCIP_DECL_BANDITFREE(), SCIP_DECL_BANDITFREE(), SCIPbanditFree(), SCIPbdchginfoFree(), SCIPboolarrayFree(), SCIPbtFree(), SCIPcertificateClearMirinfo(), SCIPcertificateExit(), SCIPcertificateFreeAggrInfo(), SCIPcertificateFreeMirInfo(), SCIPcliquelistFree(), SCIPcolExactFree(), SCIPcolFree(), SCIPconflictRowFree(), SCIPconflictsetFree(), SCIPconsFree(), SCIPconssetchgFree(), SCIPdatatreeFree(), SCIPdecompFree(), SCIPdecompstoreFree(), SCIPdigraphFree(), SCIPdisjointsetFree(), SCIPeventfilterFree(), SCIPeventFree(), SCIPexprFreeQuadratic(), SCIPexprhdlrFree(), SCIPexpriterFree(), SCIPexprPrintDotFinal(), SCIPhashmapFree(), SCIPhashsetFree(), SCIPhashtableFree(), SCIPhistoryFree(), SCIPhypergraphFree(), SCIPiisfinderFree(), SCIPiisFree(), SCIPimplicsFree(), SCIPintarrayFree(), SCIPlpiFreeNorms(), SCIPlpiGetNorms(), SCIPmultihashFree(), SCIPnetmatdecFree(), SCIPnlrowRelease(), SCIPproofsetFree(), SCIPptrarrayFree(), SCIPrandomFree(), SCIPrationalarrayFree(), SCIPrationalFreeBlock(), SCIPrealarrayFree(), SCIPreoptApplyCuts(), SCIPreoptFree(), SCIProwExactFree(), SCIProwFree(), SCIPsolFree(), SCIPsolMakeReal(), SCIPvaluehistoryFree(), SCIPvboundsFree(), subrootFree(), treeCreateProbingNode(), valsExactFree(), varFree(), and varFreeExactData().

◆ BMSfreeBlockMemoryNull

#define BMSfreeBlockMemoryNull ( mem,
ptr )
Value:
BMSfreeBlockMemoryNull_call( (mem), (void**)(ptr), sizeof(**(ptr)), __FILE__, __LINE__ )
void BMSfreeBlockMemoryNull_call(BMS_BLKMEM *blkmem, void **ptr, size_t size, const char *filename, int line)
Definition memory.c:2205

Definition at line 466 of file memory.h.

Referenced by colExactRestoreSolVals(), colRestoreSolVals(), freeSolTree(), rowExactRestoreSolVals(), rowRestoreSolVals(), SCIPcolExactFree(), SCIPcolFree(), SCIPlpExactProjectShiftFree(), SCIProwExactFree(), SCIProwFree(), and soltreefreeNode().

◆ BMSfreeBlockMemoryArray

#define BMSfreeBlockMemoryArray ( mem,
ptr,
num )
Value:
BMSfreeBlockMemory_call( (mem), (void**)(ptr), (num)*sizeof(**(ptr)), __FILE__, __LINE__ )

Definition at line 467 of file memory.h.

Referenced by changeAncestorBranchings(), decompositionGetFundamentalCycleRows(), deinit(), freeReoptTree(), freeSolTree(), hashmapCheckLoad(), hashsetCheckLoad(), hashtableCheckLoad(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), lpistateFree(), multihashResize(), netcoladdFree(), netMatDecDataCreateDiGraph(), netMatDecDataFree(), netrowaddFree(), reoptnodeDelete(), reoptnodeReset(), reoptnodeResetDualConss(), reoptnodeUpdateDualConss(), SCIP_DECL_BANDITFREE(), SCIP_DECL_BANDITFREE(), SCIP_DECL_BANDITFREE(), SCIP_DECL_BANDITFREE(), SCIPbendersExit(), SCIPcertificateClearAggrinfo(), SCIPcertificateClearMirinfo(), SCIPcertificateFreeAggrInfo(), SCIPcertificateFreeMirInfo(), SCIPcliquelistDel(), SCIPcolExactFree(), SCIPconsChgName(), SCIPconsFree(), SCIPdatatreeFree(), SCIPdecompFree(), SCIPdecompstoreFree(), SCIPdigraphFree(), SCIPdigraphFreeComponents(), SCIPdigraphGetArticulationPoints(), SCIPdisjointsetFree(), SCIPexprFreeQuadratic(), SCIPhashmapFree(), SCIPhashsetFree(), SCIPhashtableFree(), SCIPhypergraphComputeOverlaps(), SCIPhypergraphFree(), SCIPhypergraphIntersectEdges(), SCIPhypergraphIsValid(), SCIPhypergraphIterClear(), SCIPlpiFreeNorms(), SCIPlpiGetNorms(), SCIPmultihashFree(), SCIPnlpFree(), SCIPnlrowRelease(), SCIPreoptApplyCuts(), SCIPreoptFree(), SCIPreoptReleaseData(), SCIProwFree(), SCIPtreeFree(), SCIPvaluehistoryFree(), SCIPvarChgName(), SCIPvarMultiaggregate(), SCIPvarMultiaggregateExact(), and varFree().

◆ BMSfreeBlockMemoryArrayNull

◆ BMSfreeBlockMemorySize

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

Definition at line 469 of file memory.h.

Referenced by SCIPdomchgFree().

◆ BMSfreeBlockMemorySizeNull

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

Definition at line 470 of file memory.h.

◆ BMSgarbagecollectBlockMemory

#define BMSgarbagecollectBlockMemory ( mem)
Value:
void BMSgarbagecollectBlockMemory_call(BMS_BLKMEM *blkmem)
Definition memory.c:2226

Definition at line 472 of file memory.h.

Referenced by SCIPcollectMemoryGarbage().

◆ BMSgetBlockMemoryAllocated

#define BMSgetBlockMemoryAllocated ( mem)
Value:
long long BMSgetBlockMemoryAllocated_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2260

Definition at line 473 of file memory.h.

Referenced by SCIPmemGetTotal().

◆ BMSgetBlockMemoryUsed

#define BMSgetBlockMemoryUsed ( mem)
Value:
long long BMSgetBlockMemoryUsed_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2270

Definition at line 474 of file memory.h.

Referenced by SCIPmemGetUsed().

◆ BMSgetBlockMemoryUnused

#define BMSgetBlockMemoryUnused ( mem)
Value:
long long BMSgetBlockMemoryUnused_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2280

Definition at line 475 of file memory.h.

◆ BMSgetBlockMemoryUsedMax

#define BMSgetBlockMemoryUsedMax ( mem)
Value:
long long BMSgetBlockMemoryUsedMax_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2290

Definition at line 476 of file memory.h.

Referenced by SCIPmemGetUsedBlockmemoryMax().

◆ BMSgetBlockMemoryUnusedMax

#define BMSgetBlockMemoryUnusedMax ( mem)
Value:
long long BMSgetBlockMemoryUnusedMax_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2300

Definition at line 477 of file memory.h.

Referenced by SCIPmemGetUnusedBlockmemoryMax().

◆ BMSgetBlockMemoryAllocatedMax

#define BMSgetBlockMemoryAllocatedMax ( mem)
Value:
long long BMSgetBlockMemoryAllocatedMax_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2310

Definition at line 478 of file memory.h.

Referenced by SCIPmemGetAllocatedBlockmemoryMax().

◆ BMSgetBlockPointerSize

#define BMSgetBlockPointerSize ( mem,
ptr )
Value:
size_t BMSgetBlockPointerSize_call(const BMS_BLKMEM *blkmem, const void *ptr)
Definition memory.c:2320

Definition at line 479 of file memory.h.

◆ BMSdisplayBlockMemory

#define BMSdisplayBlockMemory ( mem)
Value:
void BMSdisplayBlockMemory_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2340

Definition at line 480 of file memory.h.

Referenced by SCIPprintMemoryDiagnostic().

◆ BMSblockMemoryCheckEmpty

#define BMSblockMemoryCheckEmpty ( mem)
Value:
long long BMScheckEmptyBlockMemory_call(const BMS_BLKMEM *blkmem)
Definition memory.c:2464

Definition at line 481 of file memory.h.

Referenced by SCIPmemFree().

◆ BMSallocBufferMemory

#define BMSallocBufferMemory ( mem,
ptr )
Value:
ASSIGN((ptr), BMSallocBufferMemory_call((mem), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocBufferMemory_call(BMS_BUFMEM *buffer, size_t size, const char *filename, int line)
Definition memory.c:2825

Definition at line 727 of file memory.h.

Referenced by SCIPrationalCreateBuffer().

◆ BMSallocBufferMemorySize

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

Definition at line 728 of file memory.h.

◆ BMSreallocBufferMemorySize

#define BMSreallocBufferMemorySize ( mem,
ptr,
size )
Value:
ASSIGN((ptr), BMSreallocBufferMemory_call((mem), (void*)(*(ptr)), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__))
void * BMSreallocBufferMemory_call(BMS_BUFMEM *buffer, void *ptr, size_t size, const char *filename, int line)
Definition memory.c:2957

Definition at line 729 of file memory.h.

◆ BMSallocBufferMemoryArray

#define BMSallocBufferMemoryArray ( mem,
ptr,
num )
Value:
ASSIGN((ptr), BMSallocBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocBufferMemoryArray_call(BMS_BUFMEM *buffer, size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:2845

Definition at line 731 of file memory.h.

Referenced by hashExpr(), netMatDecDataVerifyCycle(), SCIPexprComputeQuadraticCurvature(), SCIPexprhdlrBwDiffExpr(), SCIPexprhdlrEvalExpr(), SCIPexprhdlrEvalFwDiffExpr(), SCIPlapackSolveLinearEquations(), and SCIPrationalCreateBufferArray().

◆ BMSallocClearBufferMemoryArray

#define BMSallocClearBufferMemoryArray ( mem,
ptr,
num )
Value:
ASSIGN((ptr), BMSallocClearBufferMemoryArray_call((mem), (size_t)(ptrdiff_t)(num), sizeof(**(ptr)), __FILE__, __LINE__))
void * BMSallocClearBufferMemoryArray_call(BMS_BUFMEM *buffer, size_t num, size_t typesize, const char *filename, int line)
Definition memory.c:2866

Definition at line 732 of file memory.h.

Referenced by SCIPexprComputeQuadraticCurvature().

◆ BMSreallocBufferMemoryArray

#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:2978

Definition at line 733 of file memory.h.

Referenced by hashExpr(), and SCIPrationalReallocBufferArray().

◆ BMSduplicateBufferMemory

#define BMSduplicateBufferMemory ( mem,
ptr,
source,
size )
Value:
ASSIGN((ptr), BMSduplicateBufferMemory_call((mem), (const void*)(source), (size_t)(ptrdiff_t)(size), __FILE__, __LINE__))
void * BMSduplicateBufferMemory_call(BMS_BUFMEM *buffer, const void *source, size_t size, const char *filename, int line)
Definition memory.c:3000

Definition at line 735 of file memory.h.

◆ BMSduplicateBufferMemoryArray

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

Definition at line 737 of file memory.h.

Referenced by dataReset(), SCIPlapackSolveLinearEquations(), and SCIPrationalCopyBufferArray().

◆ BMSfreeBufferMemory

#define BMSfreeBufferMemory ( mem,
ptr )
Value:
BMSfreeBufferMemory_call((mem), (void**)(ptr), __FILE__, __LINE__)
void BMSfreeBufferMemory_call(BMS_BUFMEM *buffer, void **ptr, const char *filename, int line)
Definition memory.c:3113

Definition at line 740 of file memory.h.

Referenced by SCIPrationalFreeBuffer().

◆ BMSfreeBufferMemoryNull

#define BMSfreeBufferMemoryNull ( mem,
ptr )
Value:
BMSfreeBufferMemoryNull_call((mem), (void**)(ptr), __FILE__, __LINE__)
void BMSfreeBufferMemoryNull_call(BMS_BUFMEM *buffer, void **ptr, const char *filename, int line)
Definition memory.c:3136

Definition at line 741 of file memory.h.

◆ BMSfreeBufferMemoryArray

#define BMSfreeBufferMemoryArray ( mem,
ptr )

◆ BMSfreeBufferMemoryArrayNull

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

Definition at line 743 of file memory.h.

Referenced by SCIPrationalFreeBufferArray().

◆ BMSfreeBufferMemorySize

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

Definition at line 744 of file memory.h.

◆ BMSfreeBufferMemorySizeNull

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

Definition at line 745 of file memory.h.

◆ BMScreateBufferMemory

#define BMScreateBufferMemory ( fac,
init,
clean )
Value:
BMScreateBufferMemory_call((fac), (init), (clean), __FILE__, __LINE__)
BMS_BUFMEM * BMScreateBufferMemory_call(double arraygrowfac, int arraygrowinit, unsigned int clean, const char *filename, int line)
Definition memory.c:2559

Definition at line 747 of file memory.h.

Referenced by SCIPmemCreate().

◆ BMSdestroyBufferMemory

#define BMSdestroyBufferMemory ( mem)
Value:
BMSdestroyBufferMemory_call((mem), __FILE__, __LINE__)
void BMSdestroyBufferMemory_call(BMS_BUFMEM **buffer, const char *filename, int line)
Definition memory.c:2595

Definition at line 748 of file memory.h.

Referenced by SCIPmemFree().

Typedef Documentation

◆ BMS_CHKMEM

typedef struct BMS_ChkMem BMS_CHKMEM

collection of memory chunks of the same element size

Definition at line 302 of file memory.h.

◆ BMS_BLKMEM

typedef struct BMS_BlkMem BMS_BLKMEM

block memory: collection of chunk blocks

Definition at line 437 of file memory.h.

◆ BMS_BUFMEM

typedef struct BMS_BufMem BMS_BUFMEM

buffer memory for temporary objects

Definition at line 721 of file memory.h.

Function Documentation

◆ BMSallocClearMemory_call()

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 350 of file memory.c.

References addMemlistEntry, assert(), debugMessage, MAX, MAXMEMSIZE, NULL, printError, and printErrorHeader.

◆ BMSallocMemory_call()

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 389 of file memory.c.

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

Referenced by BMSduplicateMemory_call().

◆ BMSallocMemoryArray_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 423 of file memory.c.

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

Referenced by BMSduplicateMemoryArray_call().

◆ BMSreallocMemory_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 461 of file memory.c.

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

◆ BMSreallocMemoryArray_call()

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 497 of file memory.c.

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

◆ BMSclearMemory_call()

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 536 of file memory.c.

References assert(), and NULL.

◆ BMScopyMemory_call()

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 549 of file memory.c.

References assert(), and NULL.

Referenced by BMSduplicateMemory_call(), and BMSduplicateMemoryArray_call().

◆ BMSmoveMemory_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 566 of file memory.c.

References assert(), and NULL.

◆ BMSduplicateMemory_call()

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 581 of file memory.c.

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

◆ BMSduplicateMemoryArray_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

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 600 of file memory.c.

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

◆ BMSfreeMemory_call()

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 620 of file memory.c.

References assert(), NULL, printError, printErrorHeader, and removeMemlistEntry.

◆ BMSfreeMemoryNull_call()

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 642 of file memory.c.

References assert(), NULL, and removeMemlistEntry.

◆ BMSgetPointerSize_call()

size_t BMSgetPointerSize_call ( const void * ptr)

returns the size of an allocated memory element

Parameters
ptrpointer to allocated memory

Definition at line 316 of file memory.c.

◆ BMSdisplayMemory_call()

void BMSdisplayMemory_call ( void )

outputs information about currently allocated memory to the screen

Definition at line 325 of file memory.c.

References printInfo.

◆ BMScheckEmptyMemory_call()

void BMScheckEmptyMemory_call ( void )

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

Definition at line 333 of file memory.c.

◆ BMSgetMemoryUsed_call()

long long BMSgetMemoryUsed_call ( void )

returns total number of allocated bytes

Definition at line 340 of file memory.c.

◆ BMSalignMemsize()

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 768 of file memory.c.

References ALIGNMENT, alignSize(), and assert().

◆ BMSisAligned()

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 777 of file memory.c.

References ALIGNMENT, and assert().

Referenced by createChkmem(), createChunk(), and getHashNumber().

◆ BMScreateChunkMemory_call()

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 1497 of file memory.c.

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

◆ BMSclearChunkMemory_call()

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 1521 of file memory.c.

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

◆ BMSdestroyChunkMemory_call()

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 1540 of file memory.c.

References assert(), debugMessage, destroyChkmem(), NULL, printError, and printErrorHeader.

◆ BMSallocChunkMemory_call()

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 1561 of file memory.c.

References allocChkmemElement(), assert(), checkChkmem, debugMessage, NULL, printError, and printErrorHeader.

Referenced by BMSduplicateChunkMemory_call().

◆ 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 1588 of file memory.c.

References assert(), BMSallocChunkMemory_call(), BMScopyMemorySize, and NULL.

◆ BMSfreeChunkMemory_call()

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 1610 of file memory.c.

References assert(), checkChkmem, debugMessage, freeChkmemElement(), NULL, printError, and printErrorHeader.

◆ BMSfreeChunkMemoryNull_call()

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 1639 of file memory.c.

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

◆ BMSgarbagecollectChunkMemory_call()

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 1663 of file memory.c.

References debugMessage, garbagecollectChkmem(), and NULL.

◆ BMSgetChunkMemoryUsed_call()

long long BMSgetChunkMemoryUsed_call ( const BMS_CHKMEM * chkmem)

returns the number of allocated bytes in the chunk block

Parameters
chkmemchunk block

Definition at line 1673 of file memory.c.

References assert(), and NULL.

◆ BMScreateBlockMemory_call()

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 1770 of file memory.c.

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

◆ BMSclearBlockMemory_call()

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 1804 of file memory.c.

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

Referenced by BMSdestroyBlockMemory_call().

◆ 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 1838 of file memory.c.

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

◆ BMSallocBlockMemory_call()

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 1937 of file memory.c.

References BMSallocBlockMemory_work(), MAXMEMSIZE, NULL, printError, and printErrorHeader.

Referenced by BMSallocClearBlockMemory_call(), BMSduplicateBlockMemory_call(), and BMSreallocBlockMemory_call().

◆ BMSallocClearBlockMemory_call()

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

allocates memory in the block memory pool and clears it

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 1957 of file memory.c.

References BMSallocBlockMemory_call(), BMSclearMemorySize, and NULL.

◆ BMSallocBlockMemoryArray_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 1974 of file memory.c.

References BMSallocBlockMemory_work(), MAXMEMSIZE, NULL, printError, and printErrorHeader.

Referenced by BMSallocClearBlockMemoryArray_call(), BMSduplicateBlockMemoryArray_call(), and BMSreallocBlockMemoryArray_call().

◆ BMSallocClearBlockMemoryArray_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 1995 of file memory.c.

References BMSallocBlockMemoryArray_call(), BMSclearMemorySize, and NULL.

◆ BMSreallocBlockMemory_call()

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 2013 of file memory.c.

References alignSize(), assert(), BMSallocBlockMemory_call(), BMScopyMemorySize, BMSfreeBlockMemory_call(), MAXMEMSIZE, MIN, NULL, printError, and printErrorHeader.

◆ BMSreallocBlockMemoryArray_call()

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 2053 of file memory.c.

References assert(), BMSallocBlockMemoryArray_call(), BMScopyMemorySize, BMSfreeBlockMemory_call(), MAXMEMSIZE, MIN, NULL, printError, and printErrorHeader.

◆ BMSduplicateBlockMemory_call()

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 2092 of file memory.c.

References assert(), BMSallocBlockMemory_call(), BMScopyMemorySize, and NULL.

◆ BMSduplicateBlockMemoryArray_call()

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 2112 of file memory.c.

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

◆ BMSfreeBlockMemory_call()

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 2183 of file memory.c.

References assert(), BMSfreeBlockMemory_work(), checkBlkmem, NULL, printError, and printErrorHeader.

Referenced by BMSreallocBlockMemory_call(), and BMSreallocBlockMemoryArray_call().

◆ BMSfreeBlockMemoryNull_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 2205 of file memory.c.

References assert(), BMSfreeBlockMemory_work(), checkBlkmem, and NULL.

◆ BMSgarbagecollectBlockMemory_call()

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 2226 of file memory.c.

References assert(), checkBlkmem, CHKHASH_SIZE, destroyChkmem(), garbagecollectChkmem(), i, and NULL.

◆ BMSgetBlockMemoryAllocated_call()

long long BMSgetBlockMemoryAllocated_call ( const BMS_BLKMEM * blkmem)

returns the number of allocated bytes in the block memory

Parameters
blkmemblock memory

Definition at line 2260 of file memory.c.

References assert(), and NULL.

◆ BMSgetBlockMemoryUsed_call()

long long BMSgetBlockMemoryUsed_call ( const BMS_BLKMEM * blkmem)

returns the number of used bytes in the block memory

Parameters
blkmemblock memory

Definition at line 2270 of file memory.c.

References assert(), and NULL.

◆ BMSgetBlockMemoryUnused_call()

long long BMSgetBlockMemoryUnused_call ( const BMS_BLKMEM * blkmem)

returns the number of allocated but not used bytes in the block memory

Parameters
blkmemblock memory

Definition at line 2280 of file memory.c.

References assert(), and NULL.

◆ BMSgetBlockMemoryUsedMax_call()

long long BMSgetBlockMemoryUsedMax_call ( const BMS_BLKMEM * blkmem)

returns the maximal number of used bytes in the block memory

Parameters
blkmemblock memory

Definition at line 2290 of file memory.c.

References assert(), and NULL.

◆ BMSgetBlockMemoryUnusedMax_call()

long long BMSgetBlockMemoryUnusedMax_call ( const BMS_BLKMEM * blkmem)

returns the maximal number of allocated but not used bytes in the block memory

Parameters
blkmemblock memory

Definition at line 2300 of file memory.c.

References assert(), and NULL.

◆ BMSgetBlockMemoryAllocatedMax_call()

long long BMSgetBlockMemoryAllocatedMax_call ( const BMS_BLKMEM * blkmem)

returns the maximal number of allocated bytes in the block memory

Parameters
blkmemblock memory

Definition at line 2310 of file memory.c.

References assert(), and NULL.

◆ BMSgetBlockPointerSize_call()

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 2320 of file memory.c.

References assert(), findChkmem(), and NULL.

◆ BMSdisplayBlockMemory_call()

void BMSdisplayBlockMemory_call ( const BMS_BLKMEM * blkmem)

outputs allocation diagnostics of block memory

Parameters
blkmemblock memory

Definition at line 2340 of file memory.c.

References assert(), CHKHASH_SIZE, FOR_EACH_NODE, i, NULL, and printInfo.

◆ BMScheckEmptyBlockMemory_call()

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

Parameters
blkmemblock memory

Definition at line 2464 of file memory.c.

References assert(), CHKHASH_SIZE, errorMessage, FOR_EACH_NODE, i, LONGINT_FORMAT, NULL, and SCIP_UNUSED.

◆ BMScreateBufferMemory_call()

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 2559 of file memory.c.

References BMS_BufMem::arraygrowfac, BMS_BufMem::arraygrowinit, assert(), 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.

◆ BMSdestroyBufferMemory_call()

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 2595 of file memory.c.

References assert(), BMSfreeMemory, BMSfreeMemoryArrayNull, i, NULL, printError, and printErrorHeader.

◆ BMSsetBufferMemoryArraygrowfac()

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 2628 of file memory.c.

References BMS_BufMem::arraygrowfac, assert(), and NULL.

Referenced by SCIP_DECL_PARAMCHGD().

◆ BMSsetBufferMemoryArraygrowinit()

void BMSsetBufferMemoryArraygrowinit ( BMS_BUFMEM * buffer,
int arraygrowinit )

set arraygrowinit

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

Definition at line 2640 of file memory.c.

References BMS_BufMem::arraygrowinit, assert(), and NULL.

Referenced by SCIP_DECL_PARAMCHGD().

◆ BMSallocBufferMemory_call()

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 2825 of file memory.c.

References BMSallocBufferMemory_work(), MAXMEMSIZE, NULL, printError, and printErrorHeader.

Referenced by BMSduplicateBufferMemory_call(), and BMSreallocBufferMemory_work().

◆ BMSallocBufferMemoryArray_call()

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 2845 of file memory.c.

References BMSallocBufferMemory_work(), MAXMEMSIZE, NULL, printError, and printErrorHeader.

Referenced by BMSallocClearBufferMemoryArray_call(), and BMSduplicateBufferMemoryArray_call().

◆ BMSallocClearBufferMemoryArray_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 2866 of file memory.c.

References BMSallocBufferMemoryArray_call(), BMSclearMemorySize, and NULL.

◆ BMSreallocBufferMemory_call()

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 2957 of file memory.c.

References BMSreallocBufferMemory_work(), MAXMEMSIZE, NULL, printError, and printErrorHeader.

◆ BMSreallocBufferMemoryArray_call()

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 2978 of file memory.c.

References BMSreallocBufferMemory_work(), MAXMEMSIZE, NULL, printError, and printErrorHeader.

◆ BMSduplicateBufferMemory_call()

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 3000 of file memory.c.

References assert(), BMSallocBufferMemory_call(), BMScopyMemorySize, and NULL.

◆ BMSduplicateBufferMemoryArray_call()

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 3023 of file memory.c.

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

◆ BMSfreeBufferMemory_call()

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 3113 of file memory.c.

References assert(), BMSfreeBufferMemory_work(), BMSfreeMemory, NULL, printError, and printErrorHeader.

◆ BMSfreeBufferMemoryNull_call()

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 3136 of file memory.c.

References assert(), BMSfreeBufferMemory_work(), BMSfreeMemory, and NULL.

◆ BMSgetNUsedBufferMemory()

size_t BMSgetNUsedBufferMemory ( BMS_BUFMEM * buffer)

gets number of used buffers

Parameters
buffermemory buffer storage

Definition at line 3156 of file memory.c.

References assert(), BMS_BufMem::firstfree, and NULL.

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

◆ BMSgetBufferMemoryUsed()

long long BMSgetBufferMemoryUsed ( const BMS_BUFMEM * buffer)

returns the number of allocated bytes in the buffer memory

Parameters
bufferbuffer memory

Definition at line 3166 of file memory.c.

References assert(), i, BMS_BufMem::ndata, NULL, BMS_BufMem::size, and BMS_BufMem::totalmem.

Referenced by SCIPmemGetTotal(), and SCIPmemGetUsed().

◆ BMSprintBufferMemory()

void BMSprintBufferMemory ( BMS_BUFMEM * buffer)

outputs statistics about currently allocated buffers to the screen

Parameters
buffermemory buffer storage

Definition at line 3184 of file memory.c.

References assert(), BMS_BufMem::data, i, BMS_BufMem::ndata, NULL, BMS_BufMem::size, and BMS_BufMem::used.

Referenced by SCIPprintMemoryDiagnostic().