Dip-All  0.91.0
DecompMemPool.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the DIP Solver Framework. //
3 // //
4 // DIP is distributed under the Eclipse Public License as part of the //
5 // COIN-OR repository (http://www.coin-or.org). //
6 // //
7 // Author: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8 // //
9 // Conceptual Design: Matthew Galati, SAS Institute Inc. //
10 // Ted Ralphs, Lehigh University //
11 // //
12 // Copyright (C) 2002-2015, Lehigh University, Matthew Galati, Ted Ralphs //
13 // All Rights Reserved. //
14 //===========================================================================//
15 
16 //===========================================================================//
17 #ifndef DecompMemPool_h_
18 #define DecompMemPool_h_
19 
20 #include "CoinError.hpp"
21 
22 // --------------------------------------------------------------------- //
24 public:
25  double* dblArrNCoreCols;
26  double* dblArrNCoreRows;
27 
28 public:
29  void allocateMemory(const int nCoreCols,
30  const int nCoreRows) {
31  if (nCoreCols > 0) {
32  dblArrNCoreCols = new double[nCoreCols];
33  CoinAssertHint(dblArrNCoreCols, "Error: Out of Memory");
34  }
35 
36  if (nCoreRows > 0) {
37  dblArrNCoreRows = new double[nCoreRows];
38  CoinAssertHint(dblArrNCoreRows, "Error: Out of Memory");
39  }
40  }
41 
42 public:
44  dblArrNCoreCols(0),
45  dblArrNCoreRows(0) {
46  }
50  }
51 };
52 
53 #endif
#define UTIL_DELARR(x)
Definition: UtilMacros.h:29
#define CoinAssertHint(expression, hint)
Definition: CoinError.hpp:180
void allocateMemory(const int nCoreCols, const int nCoreRows)
Definition: DecompMemPool.h:29
double * dblArrNCoreRows
Definition: DecompMemPool.h:26
double * dblArrNCoreCols
Definition: DecompMemPool.h:25