Class for value selection and commit. More...
#include <val-sel-commit.hpp>
Public Member Functions | |
ValSelCommit (Space &home, const ValBranch< Var > &vb) | |
Constructor for initialization. | |
ValSelCommit (Space &home, ValSelCommit< ValSel, ValCommit > &vsc) | |
Constructor for cloning. | |
virtual Val | val (const Space &home, View x, int i) |
Return value of view x at position i. | |
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. | |
virtual NGL * | ngl (Space &home, unsigned int a, View x, Val n) const |
Create no-good literal for choice c and alternative a. | |
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. | |
virtual ValSelCommit< ValSel, ValCommit > * | copy (Space &home) |
Perform cloning. | |
virtual bool | notice (void) const |
Whether dispose must always be called (that is, notice is needed) | |
virtual void | dispose (Space &home) |
Delete value selection. | |
![]() | |
ValSelCommitBase (Space &home, const ValBranch< Var > &vb) | |
Constructor for initialization. | |
ValSelCommitBase (Space &home, ValSelCommitBase< View, Val > &vsc) | |
Constructor for cloning. | |
virtual | ~ValSelCommitBase (void) |
Unused destructor. | |
Protected Types | |
typedef ValSelCommitBase< typenameValSel::View, typenameValSel::Val >::Var | Var |
typedef ValSelCommitBase< typenameValSel::View, typenameValSel::Val >::Val | Val |
typedef ValSelCommitBase< typenameValSel::View, typenameValSel::Val >::View | View |
Protected Attributes | |
ValSel | s |
The value selection object used. | |
ValCommit | c |
The commit object used. | |
Additional Inherited Members | |
![]() | |
typedef ValSel::View | View |
View type. | |
typedef View::VarType | Var |
Corresponding variable type. | |
typedef ValSel::Val | Val |
Value type. | |
![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. | |
static void | operator delete (void *p, Space &home) |
Return memory to space. | |
static void | operator delete (void *p) |
Needed for exceptions. | |
Class for value selection and commit.
Definition at line 90 of file val-sel-commit.hpp.
|
protected |
Definition at line 94 of file val-sel-commit.hpp.
|
protected |
Definition at line 96 of file val-sel-commit.hpp.
|
protected |
Definition at line 98 of file val-sel-commit.hpp.
|
inline |
Constructor for initialization.
Definition at line 157 of file val-sel-commit.hpp.
|
inline |
Constructor for cloning.
Definition at line 163 of file val-sel-commit.hpp.
|
virtual |
Return value of view x at position i.
Implements Gecode::ValSelCommitBase< ValSel::View, ValSel::Val >.
Definition at line 170 of file val-sel-commit.hpp.
|
virtual |
Commit view x at position i to value n for alternative a.
Implements Gecode::ValSelCommitBase< ValSel::View, ValSel::Val >.
Definition at line 176 of file val-sel-commit.hpp.
|
virtual |
Create no-good literal for choice c and alternative a.
Implements Gecode::ValSelCommitBase< ValSel::View, ValSel::Val >.
Definition at line 183 of file val-sel-commit.hpp.
|
virtual |
Print on o branch for alternative a, view x at position i, and value n.
Implements Gecode::ValSelCommitBase< ValSel::View, ValSel::Val >.
Definition at line 190 of file val-sel-commit.hpp.
|
virtual |
Perform cloning.
Implements Gecode::ValSelCommitBase< ValSel::View, ValSel::Val >.
Definition at line 198 of file val-sel-commit.hpp.
|
virtual |
Whether dispose must always be called (that is, notice is needed)
Implements Gecode::ValSelCommitBase< ValSel::View, ValSel::Val >.
Definition at line 204 of file val-sel-commit.hpp.
|
virtual |
Delete value selection.
Implements Gecode::ValSelCommitBase< ValSel::View, ValSel::Val >.
Definition at line 210 of file val-sel-commit.hpp.
|
protected |
The value selection object used.
Definition at line 100 of file val-sel-commit.hpp.
|
protected |
The commit object used.
Definition at line 102 of file val-sel-commit.hpp.