Scippy

SCIP

Solving Constraint Integer Programs

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 mem.h
17  * @brief methods 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_MEM_H__
24 #define __SCIP_MEM_H__
25 
26 
27 #include "scip/def.h"
28 #include "scip/type_retcode.h"
29 #include "scip/type_mem.h"
30 #include "scip/struct_mem.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /** creates block and buffer memory structures */
37 extern
39  SCIP_MEM** mem /**< pointer to block and buffer memory structure */
40  );
41 
42 /** frees block and buffer memory structures */
43 extern
45  SCIP_MEM** mem /**< pointer to block and buffer memory structure */
46  );
47 
48 /** returns the total number of bytes used in block and buffer memory */
49 extern
51  SCIP_MEM* mem /**< pointer to block and buffer memory structure */
52  );
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif
SCIP_RETCODE SCIPmemFree(SCIP_MEM **mem)
Definition: mem.c:59
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
type definitions for return codes for SCIP methods
datastructures for block memory pools and memory buffers
type definitions for block memory pools and memory buffers
#define SCIP_Longint
Definition: def.h:112
common defines and data types used in all packages of SCIP
SCIP_Longint SCIPmemGetUsed(SCIP_MEM *mem)
Definition: mem.c:79
SCIP_RETCODE SCIPmemCreate(SCIP_MEM **mem)
Definition: mem.c:33