val-sel-commit.hpp
Go to the documentation of this file.
virtual bool notice(void) const =0
Whether dispose must always be called (that is, notice is needed).
virtual NGL * ngl(Space &home, unsigned int a, View x, Val n) const =0
Create no-good literal for choice c and alternative a.
virtual ValSelCommitBase< View, Val > * copy(Space &home)=0
Perform cloning.
virtual Val val(const Space &home, View x, int i)=0
Return value of view x at position i.
virtual ModEvent commit(Space &home, unsigned int a, View x, int i, Val n)=0
Commit view x at position i to value n for alternative a.
virtual void print(const Space &home, unsigned int a, View x, int i, const Val &n, std::ostream &o) const =0
Print on o branch for alternative a, view x at position i, and value n.
ValSelCommitBase(Space &home, ValSelCommitBase< View, Val > &vsc)
Constructor for cloning.
Definition val-sel-commit.hpp:136
ValSelCommitBase(Space &home, const ValBranch< Var > &vb)
Constructor for initialization.
Definition val-sel-commit.hpp:131
virtual ValSelCommit< ValSel, ValCommit > * copy(Space &home)
Perform cloning.
Definition val-sel-commit.hpp:198
ValSelCommitBase< typenameValSel::View, typenameValSel::Val >::Val Val
Definition val-sel-commit.hpp:96
ValSelCommitBase< typenameValSel::View, typenameValSel::Val >::Var Var
Definition val-sel-commit.hpp:94
virtual void print(const Space &home, unsigned int a, View x, int i, const Val &n, std::ostream &o) const
Print on o branch for alternative a, view x at position i, and value n.
Definition val-sel-commit.hpp:190
virtual Val val(const Space &home, View x, int i)
Return value of view x at position i.
Definition val-sel-commit.hpp:170
virtual ModEvent commit(Space &home, unsigned int a, View x, int i, Val n)
Commit view x at position i to value n for alternative a.
Definition val-sel-commit.hpp:176
ValSelCommitBase< typenameValSel::View, typenameValSel::Val >::View View
Definition val-sel-commit.hpp:98
virtual bool notice(void) const
Whether dispose must always be called (that is, notice is needed).
Definition val-sel-commit.hpp:204
virtual NGL * ngl(Space &home, unsigned int a, View x, Val n) const
Create no-good literal for choice c and alternative a.
Definition val-sel-commit.hpp:183
ValSelCommit(Space &home, const ValBranch< Var > &vb)
Constructor for initialization.
Definition val-sel-commit.hpp:157
Gecode toplevel namespace
