Dip-All  0.91.0
MMKP_MemPool.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the Decomp Solver Framework. //
3 // //
4 // Decomp is distributed under the Common Public License as part of the //
5 // COIN-OR repository (http://www.coin-or.org). //
6 // //
7 // Author: Matthew Galati, Lehigh University //
8 // //
9 // Copyright (C) 2002-2015, Lehigh University, Matthew Galati, and Ted Ralphs//
10 // All Rights Reserved. //
11 //===========================================================================//
12 
13 #ifndef MMKP_MEMPOOL_INCLUDED
14 #define MMKP_MEMPOOL_INCLUDED
15 
16 #include "CoinError.hpp"
17 
18 // --------------------------------------------------------------------- //
19 class MMKP_MemPool {
20  public:
21  double * dblArrNCoreCols;
22 
23  public:
24  void allocateMemory(const int nCoreCols) {
25 
26  if(nCoreCols > 0){
27  //intArrNCoreCols = new int[nCoreCols];
28  dblArrNCoreCols = new double[nCoreCols];
29  //pIntDblArrNCoreCols = new pair<int,double>[nCoreCols];
30  //CoinAssertHint(intArrNCoreCols &&
31  // dblArrNCoreCols &&
32  // pIntDblArrNCoreCols,
33  // "Error: Out of Memory");
34  }
35  }
36 
37  public:
40  {}
42  {
44  }
45 };
46 
47 #endif
void allocateMemory(const int nCoreCols)
Definition: MMKP_MemPool.h:24
#define UTIL_DELARR(x)
Definition: UtilMacros.h:29
double * dblArrNCoreCols
Definition: MMKP_MemPool.h:21