Bcps 0.95.1
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-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
43class BCPSLIB_EXPORT BcpsSubTree : public virtual AlpsSubTree {
44 private:
46 BcpsConstraintPool *constraintPool_;
47 BcpsVariablePool *variablePool_;
48
49 public:
51 :
52 constraintPool_(new BcpsConstraintPool),
53 variablePool_(new BcpsVariablePool)
54 {}
55 virtual ~BcpsSubTree()
56 {
57 delete constraintPool_;
58 delete variablePool_;
59 }
60
62 {
63 return constraintPool_;
64 }
65
67 {
68 return variablePool_;
69 }
70};
71
72
73//#############################################################################
74//#############################################################################
75
76#endif
BcpsConstraintPool * getConstraintPool() const
Definition BcpsSubTree.h:61
BcpsVariablePool * getVariablePool() const
Definition BcpsSubTree.h:66
virtual ~BcpsSubTree()
Definition BcpsSubTree.h:55
#define BCPSLIB_EXPORT
Definition config.h:5