Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

conbranchrule.h
Go to the documentation of this file.
1 
34 #pragma once
35 
40 
41 #pragma GCC visibility push(default)
42 namespace abacus {
43 
46 public:
47 
49 
59  : BranchRule(master), poolSlotRef_(poolSlot) { }
60 
61 
62  virtual ~ConBranchRule() { }
63 
65 
71  friend OGDF_EXPORT std::ostream &operator<<(std::ostream &out, const ConBranchRule &rhs);
72 
73 
75 
83  virtual int extract(Sub *sub) override;
84 
85 
87 
90  virtual void extract(LpSub *lp) override;
91 
92  virtual void unExtract(LpSub *lp) override;
93 
94 
96 
99  virtual void initialize(Sub *sub) override;
100 
101 
104  return poolSlotRef_.conVar();
105  }
106 
108  const Constraint *constraint() const {
109  return poolSlotRef_.conVar();
110  }
111 
112 private:
115 
116  const ConBranchRule &operator=(const ConBranchRule &rhs);
117 };
118 
119 }
120 #pragma GCC visibility pop
branchrule.h
Base class for branching rules.
abacus::PoolSlotRef
Stores a pointer to a pool slot with version number.
Definition: active.h:41
abacus::BranchRule
Abstract base class for all branching rules.
Definition: branchrule.h:60
constraint.h
constraint.
abacus::operator<<
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
abacus::ConBranchRule::constraint
Constraint * constraint()
Returns a pointer to the branching constraint, or a 0-pointer if this constraint is not available.
Definition: conbranchrule.h:103
abacus
Definition: ILPClusterPlanarity.h:50
abacus::ConBranchRule::constraint
const Constraint * constraint() const
Returns a const pointer to the branching constraint, or a 0-pointer if this constraint is not availab...
Definition: conbranchrule.h:108
poolslotref.h
poolslotref
abacus::ConBranchRule::ConBranchRule
ConBranchRule(Master *master, PoolSlot< Constraint, Variable > *poolSlot)
Creates a branching constraint.
Definition: conbranchrule.h:58
abacus::ConBranchRule::~ConBranchRule
virtual ~ConBranchRule()
Definition: conbranchrule.h:62
abacus::ConBranchRule::poolSlotRef_
PoolSlotRef< Constraint, Variable > poolSlotRef_
A reference to the pool slot of the branching constraints.
Definition: conbranchrule.h:114
abacus::ConBranchRule
Implements the branching by adding a constraint to the set of active constraints.
Definition: conbranchrule.h:45
variable.h
variable.
abacus::LpSub
The linear program of a subproblem.
Definition: lpsub.h:62
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition: config.h:117
abacus::Sub
The subproblem.
Definition: sub.h:69
abacus::Constraint
Forms the virtual base class for all possible constraints given in pool format.
Definition: constraint.h:57
abacus::PoolSlot
Stores constraints and variables.
Definition: active.h:40
abacus::Master
The master of the optimization.
Definition: master.h:70