All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
buffer.c File Reference Detailed Descriptionmethods for memory buffers for temporary objects Definition in file buffer.c. #include <assert.h> #include "scip/def.h" #include "scip/pub_message.h" #include "blockmemshell/memory.h" #include "scip/set.h" #include "scip/buffer.h" #include "scip/struct_buffer.h" Go to the source code of this file.
Function Documentation
creates memory buffer storage
Definition at line 36 of file buffer.c. References BMSallocMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPsetCreate().
frees memory buffer
Definition at line 53 of file buffer.c. References BMSfreeMemory, BMSfreeMemoryArrayNull, and NULL. Referenced by SCIPsetFree().
allocates the next unused buffer
Definition at line 73 of file buffer.c. References BMSallocMemorySize, BMSreallocMemoryArray, BMSreallocMemorySize, SCIP_Buffer::data, FALSE, SCIP_Buffer::firstfree, SCIP_Buffer::ndata, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIPsetCalcMemGrowSize(), SCIP_Buffer::size, TRUE, and SCIP_Buffer::used. Referenced by SCIPbufferAllocMemSave(), SCIPbufferDuplicateMem(), and SCIPbufferReallocMem().
allocates the next unused buffer and copies the given memory into the buffer
Definition at line 142 of file buffer.c. References BMScopyMemorySize, NULL, SCIP_CALL, SCIP_OKAY, and SCIPbufferAllocMem(). Referenced by SCIPbufferDuplicateMemSave().
reallocates the buffer to at least the given size
Definition at line 162 of file buffer.c. References BMSreallocMemorySize, SCIP_Buffer::data, SCIP_Buffer::firstfree, SCIP_Buffer::ndata, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPbufferAllocMem(), SCIPdebugMessage, SCIPsetCalcMemGrowSize(), SCIP_Buffer::size, and SCIP_Buffer::used. Referenced by SCIPbufferReallocMemSave().
allocates the next unused buffer; checks for integer overflow
Definition at line 221 of file buffer.c. References NULL, SCIP_CALL, SCIP_NOMEMORY, SCIP_OKAY, and SCIPbufferAllocMem().
allocates the next unused buffer and copies the given memory into the buffer; checks for integer overflows
Definition at line 240 of file buffer.c. References NULL, SCIP_CALL, SCIP_NOMEMORY, SCIP_OKAY, and SCIPbufferDuplicateMem().
reallocates the buffer to at least the given size; checks for integer overflows
Definition at line 260 of file buffer.c. References NULL, SCIP_CALL, SCIP_NOMEMORY, SCIP_OKAY, and SCIPbufferReallocMem().
frees a buffer
Definition at line 280 of file buffer.c. References BMSfreeMemory, SCIP_Buffer::data, FALSE, SCIP_Buffer::firstfree, SCIP_Buffer::ndata, NULL, SCIPdebugMessage, SCIP_Buffer::size, and SCIP_Buffer::used.
gets number of used buffers
Definition at line 320 of file buffer.c. References SCIP_Buffer::firstfree, and NULL. Referenced by exitPresolve(), initPresolve(), presolve(), presolveRound(), priceAndCutLoop(), propAndSolve(), SCIPsolveCIP(), and solveNode().
outputs statistics about currently allocated buffers to the screen
Definition at line 330 of file buffer.c. References SCIP_Buffer::data, SCIP_Buffer::ndata, NULL, SCIP_Buffer::size, and SCIP_Buffer::used. Referenced by SCIPprintMemoryDiagnostic(). |