Bcps 0.94.5
Loading...
Searching...
No Matches
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-2017, 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 "BcpsObjectPool.h"
29
30//#############################################################################
31
32//#############################################################################
39// *FIXME* : Implement hashing for object storage.
40//#############################################################################
41
42class BcpsSubTree : public virtual AlpsSubTree {
43 private:
45 BcpsConstraintPool *constraintPool_;
46 BcpsVariablePool *variablePool_;
47
48 public:
50 :
51 constraintPool_(new BcpsConstraintPool),
52 variablePool_(new BcpsVariablePool)
53 {}
54 virtual ~BcpsSubTree()
55 {
56 delete constraintPool_;
57 delete variablePool_;
58 }
59
61 {
62 return constraintPool_;
63 }
64
66 {
67 return variablePool_;
68 }
69};
70
71
72//#############################################################################
73//#############################################################################
74
75#endif
This class is the data structure for storing a subtree within BCPS.
Definition BcpsSubTree.h:42
BcpsConstraintPool * getConstraintPool() const
Definition BcpsSubTree.h:60
BcpsVariablePool * getVariablePool() const
Definition BcpsSubTree.h:65
virtual ~BcpsSubTree()
Definition BcpsSubTree.h:54