Dip  0.92.4
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 // Authors: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8 // Ted Ralphs, Lehigh University (ted@lehigh.edu) //
9 // Jiadong Wang, Lehigh University (jiw408@lehigh.edu) //
10 // //
11 // Copyright (C) 2002-2019, Lehigh University, Matthew Galati, and Ted Ralphs//
12 // All Rights Reserved. //
13 //===========================================================================//
14 
15 #ifndef MMKP_MEMPOOL_INCLUDED
16 #define MMKP_MEMPOOL_INCLUDED
17 
18 #include "CoinError.hpp"
19 
20 // --------------------------------------------------------------------- //
21 class MMKP_MemPool {
22  public:
23  double * dblArrNCoreCols;
24 
25  public:
26  void allocateMemory(const int nCoreCols) {
27 
28  if(nCoreCols > 0){
29  //intArrNCoreCols = new int[nCoreCols];
30  dblArrNCoreCols = new double[nCoreCols];
31  //pIntDblArrNCoreCols = new pair<int,double>[nCoreCols];
32  //CoinAssertHint(intArrNCoreCols &&
33  // dblArrNCoreCols &&
34  // pIntDblArrNCoreCols,
35  // "Error: Out of Memory");
36  }
37  }
38 
39  public:
42  {}
44  {
46  }
47 };
48 
49 #endif
void allocateMemory(const int nCoreCols)
Definition: MMKP_MemPool.h:26
#define UTIL_DELARR(x)
Definition: UtilMacros.h:29
double * dblArrNCoreCols
Definition: MMKP_MemPool.h:23