Scippy

SCIP

Solving Constraint Integer Programs

struct_mem.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2022 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file struct_mem.h
17  * @ingroup INTERNALAPI
18  * @brief datastructures for block memory pools and memory buffers
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_STRUCT_MEM_H__
25 #define __SCIP_STRUCT_MEM_H__
26 
27 
28 #include "scip/def.h"
29 #include "blockmemshell/memory.h"
30 #include "scip/type_mem.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /** various block memory buffers */
37 struct SCIP_Mem
38 {
39  BMS_BLKMEM* setmem; /**< memory blocks for parameter settings */
40  BMS_BLKMEM* probmem; /**< memory blocks for original problem and solution process: preprocessing, bab-tree, ... */
41  BMS_BUFMEM* buffer; /**< memory buffers for short living temporary objects */
42  BMS_BUFMEM* cleanbuffer; /**< memory buffers for short living temporary objects, initialized to all zero */
43 };
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
BMS_BUFMEM * cleanbuffer
Definition: struct_mem.h:42
BMS_BUFMEM * buffer
Definition: struct_mem.h:41
BMS_BLKMEM * setmem
Definition: struct_mem.h:39
type definitions for block memory pools and memory buffers
BMS_BLKMEM * probmem
Definition: struct_mem.h:40
common defines and data types used in all packages of SCIP
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:430
memory allocation routines