12 #ifndef SingleVarTabuHppIncluded 13 #define SingleVarTabuHppIncluded 48 virtual void tabuVars(Dim
const VarCount,
Variable *
const * pVariables) = 0;
103 #if UseArrayForVarTabuOrLockStateInsteadOfHashMap 147 #if UseArrayForVarTabuOrLockStateInsteadOfHashMap 150 Index tIndex =
mTabuStates.insertIndexMem(pVariable, 0);
163 #if UseArrayForVarTabuOrLockStateInsteadOfHashMap 184 #if UseArrayForVarTabuOrLockStateInsteadOfHashMap 187 return mTabuStates.KeyExists(pVariable);
212 #if UseArrayForVarTabuOrLockStateInsteadOfHashMap 239 #endif // SingleVarTabuHppIncluded xhmr< Variable *, Dim, onehash > mTabuStates
Count/state of the variables.
Definition: singleVarTabu.hpp:106
Dim VarCount() const
Number of variables.
Definition: system1.hpp:100
#define openKangarooSpace
Open the project namespace.
Definition: project.hpp:74
Hash const ExprHash
Expression hash value is used in quick matching of a certain expression.
Definition: expression0.hpp:216
virtual void adjustMemAuto() override
Adjust memory automatically.
Definition: singleVarTabu.hpp:197
SingleVarTabu SvTabu
Shortcut for SingleVarTabu.
Definition: singleVarTabu.hpp:113
virtual void tabuExecVars()=0
Tabu the execution variables.
static Hash iof(Variable *const OneVar)
Calculate hash value.
Definition: singleVarTabu.hpp:226
Serial const VarSerial
Unique over all variables.
Definition: variable0.hpp:158
Tabu heuristic base class.
Definition: tabubase0.hpp:40
Abstract variable class.
Definition: variable0.hpp:86
Bool TabuState(Variable *const pVariable) const
Get the tabu state.
Definition: singleVarTabu.hpp:181
~SingleVarTabu()
Destructor.
Definition: singleVarTabu.hpp:132
Index for Library Frames.
virtual void setupComputation() overridefinal
Setup for computation.
Definition: singleVarTabu.hpp:209
Unique identifier of a class.
constexpr char const * kTabuInconsistent
Inconsistent tabu found.
Definition: messages.hpp:224
void setTabuFamily(Identifier const pFamily)
Set tabu family.
Definition: tabubase1.hpp:53
Bool unsetTabuState(Variable *const pVariable)
Unset tabu state.
Definition: singleVarTabu.hpp:160
Bool setTabuState(Variable *const pVariable)
Set tabu state.
Definition: singleVarTabu.hpp:144
virtual void tabuVars(Variable *const pVariable0, Variable *const pVariable1)=0
Tabu the given two variables.
Constraint-based local search systems.
Definition: system0.hpp:45
#define closeKangarooSpace
Close the project namespace.
Definition: project.hpp:75
virtual void resetTabuVars()=0
Reset the tabu states.
Hash function for single variables.
Definition: singleVarTabu.hpp:59
SingleVarTabu & operator=(SingleVarTabu &&that) noexcept=delete
Move assignment.
SingleVarTabu(System *const pSystem)
Param constructor.
Definition: singleVarTabu.hpp:120
virtual void tabuVar(Variable *const pVariable)=0
Tabu the given variable.
Single variable tabu family.
Definition: singleVarTabu.hpp:30
System * SysMaster
The system.
Definition: tabubase0.hpp:169