Bcps
0.95.1
Loading...
Searching...
No Matches
src
BcpsSubTree.h
Go to the documentation of this file.
1
/*===========================================================================*
2
* This file is part of the Branch, Constrain and Price Software (BiCePS) *
3
* *
4
* BiCePS is distributed under the Eclipse Public License as part of the *
5
* COIN-OR repository (http://www.coin-or.org). *
6
* *
7
* Authors: *
8
* *
9
* Yan Xu, Lehigh University *
10
* Ted Ralphs, Lehigh University *
11
* *
12
* Conceptual Design: *
13
* *
14
* Yan Xu, Lehigh University *
15
* Ted Ralphs, Lehigh University *
16
* Laszlo Ladanyi, IBM T.J. Watson Research Center *
17
* Matthew Saltzman, Clemson University *
18
* *
19
* Copyright (C) 2001-2023, Lehigh University, Yan Xu, and Ted Ralphs. *
20
* All Rights Reserved. *
21
*===========================================================================*/
22
23
#ifndef BcpsSubTree_h_
24
#define BcpsSubTree_h_
25
26
#include <vector>
27
#include "AlpsSubTree.h"
28
#include "
BcpsConfig.h
"
29
#include "
BcpsObjectPool.h
"
30
31
//#############################################################################
32
33
//#############################################################################
40
// *FIXME* : Implement hashing for object storage.
41
//#############################################################################
42
43
class
BCPSLIB_EXPORT
BcpsSubTree
:
public
virtual
AlpsSubTree {
44
private
:
46
BcpsConstraintPool
*constraintPool_;
47
BcpsVariablePool
*variablePool_;
48
49
public
:
50
BcpsSubTree
()
51
:
52
constraintPool_(new
BcpsConstraintPool
),
53
variablePool_(new
BcpsVariablePool
)
54
{}
55
virtual
~BcpsSubTree
()
56
{
57
delete
constraintPool_;
58
delete
variablePool_;
59
}
60
61
BcpsConstraintPool
*
getConstraintPool
()
const
62
{
63
return
constraintPool_;
64
}
65
66
BcpsVariablePool
*
getVariablePool
()
const
67
{
68
return
variablePool_;
69
}
70
};
71
72
73
//#############################################################################
74
//#############################################################################
75
76
#endif
BcpsConfig.h
BcpsObjectPool.h
BcpsConstraintPool
Definition
BcpsObjectPool.h:105
BcpsSubTree
This class is the data structure for storing a subtree within BCPS.
Definition
BcpsSubTree.h:43
BcpsSubTree::getConstraintPool
BcpsConstraintPool * getConstraintPool() const
Definition
BcpsSubTree.h:61
BcpsSubTree::getVariablePool
BcpsVariablePool * getVariablePool() const
Definition
BcpsSubTree.h:66
BcpsSubTree::BcpsSubTree
BcpsSubTree()
Definition
BcpsSubTree.h:50
BcpsSubTree::~BcpsSubTree
virtual ~BcpsSubTree()
Definition
BcpsSubTree.h:55
BcpsVariablePool
Definition
BcpsObjectPool.h:128
BCPSLIB_EXPORT
#define BCPSLIB_EXPORT
Definition
config.h:5
Generated by
1.12.0