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-2016 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 email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file struct_mem.h
17  * @brief datastructures for block memory pools and memory buffers
18  * @author Tobias Achterberg
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_STRUCT_MEM_H__
24 #define __SCIP_STRUCT_MEM_H__
25 
26 
27 #include "scip/def.h"
28 #include "blockmemshell/memory.h"
29 #include "scip/type_mem.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /** various block memory buffers */
36 struct SCIP_Mem
37 {
38  BMS_BLKMEM* setmem; /**< memory blocks for parameter settings */
39  BMS_BLKMEM* probmem; /**< memory blocks for original problem and solution process: preprocessing, bab-tree, ... */
40  BMS_BUFMEM* buffer; /**< memory buffers for short living temporary objects */
41  BMS_BUFMEM* cleanbuffer; /**< memory buffers for short living temporary objects, initialized to all zero */
42 };
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif
BMS_BUFMEM * cleanbuffer
Definition: struct_mem.h:41
BMS_BUFMEM * buffer
Definition: struct_mem.h:40
BMS_BLKMEM * setmem
Definition: struct_mem.h:38
type definitions for block memory pools and memory buffers
BMS_BLKMEM * probmem
Definition: struct_mem.h:39
common defines and data types used in all packages of SCIP
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:392
memory allocation routines