Dip-All
0.91.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
coin
svn-release
Dip-0.91.6
Dip
src
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
// --------------------------------------------------------------------- //
23
class
DecompMemPool
{
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
:
43
DecompMemPool
() :
44
dblArrNCoreCols
(0),
45
dblArrNCoreRows
(0) {
46
}
47
~DecompMemPool
() {
48
UTIL_DELARR
(
dblArrNCoreCols
);
49
UTIL_DELARR
(
dblArrNCoreRows
);
50
}
51
};
52
53
#endif
CoinError.hpp
DecompMemPool
Definition:
DecompMemPool.h:23
UTIL_DELARR
#define UTIL_DELARR(x)
Definition:
UtilMacros.h:29
CoinAssertHint
#define CoinAssertHint(expression, hint)
Definition:
CoinError.hpp:180
DecompMemPool::allocateMemory
void allocateMemory(const int nCoreCols, const int nCoreRows)
Definition:
DecompMemPool.h:29
DecompMemPool::DecompMemPool
DecompMemPool()
Definition:
DecompMemPool.h:43
DecompMemPool::dblArrNCoreRows
double * dblArrNCoreRows
Definition:
DecompMemPool.h:26
DecompMemPool::~DecompMemPool
~DecompMemPool()
Definition:
DecompMemPool.h:47
DecompMemPool::dblArrNCoreCols
double * dblArrNCoreCols
Definition:
DecompMemPool.h:25
Generated by
1.8.5