Dip-All
0.91.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
coin
svn-release
Dip-0.91.5
Dip
examples
MMKP
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
:
38
MMKP_MemPool
() :
39
dblArrNCoreCols
(0)
40
{}
41
~MMKP_MemPool
()
42
{
43
UTIL_DELARR
(
dblArrNCoreCols
);
44
}
45
};
46
47
#endif
MMKP_MemPool
Definition:
MMKP_MemPool.h:19
MMKP_MemPool::allocateMemory
void allocateMemory(const int nCoreCols)
Definition:
MMKP_MemPool.h:24
CoinError.hpp
UTIL_DELARR
#define UTIL_DELARR(x)
Definition:
UtilMacros.h:29
MMKP_MemPool::MMKP_MemPool
MMKP_MemPool()
Definition:
MMKP_MemPool.h:38
MMKP_MemPool::dblArrNCoreCols
double * dblArrNCoreCols
Definition:
MMKP_MemPool.h:21
MMKP_MemPool::~MMKP_MemPool
~MMKP_MemPool()
Definition:
MMKP_MemPool.h:41
Generated by
1.8.5