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-2013, 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 
42 class BcpsSubTree : public virtual AlpsSubTree {
43  private:
47 
48  public:
50  :
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
BcpsVariablePool * variablePool_
Definition: BcpsSubTree.h:46
This class contains the data pertaining to a particular subtree in the search tree.
Definition: AlpsSubTree.h:47
BcpsConstraintPool * getConstraintPool() const
Definition: BcpsSubTree.h:60
BcpsVariablePool * getVariablePool() const
Definition: BcpsSubTree.h:65
BcpsConstraintPool * constraintPool_
This is the list of objects that exist in the subtree.
Definition: BcpsSubTree.h:45
virtual ~BcpsSubTree()
Definition: BcpsSubTree.h:54