Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

Value commit class for exclusion. More...

#include <branch.hh>

Public Member Functions

 ValCommitExc (Space &home, const ValBranch< Var > &vb)
 Constructor for initialization.
 
 ValCommitExc (Space &home, ValCommitExc &vc)
 Constructor for cloning.
 
ModEvent commit (Space &home, unsigned int a, SetView x, int i, int n)
 Commit view x at position i to value n for alternative a.
 
NGLngl (Space &home, unsigned int a, View x, int n) const
 Create no-good literal for alternative a.
 
void print (const Space &home, unsigned int a, SetView x, int i, int n, std::ostream &o) const
 Print on o the alternative with view x at position i and value n.
 
- Public Member Functions inherited from Gecode::ValCommit< SetView, int >
 ValCommit (Space &home, const ValBranch< Var > &vb)
 Constructor for initialization.
 
 ValCommit (Space &home, ValCommit< View, Val > &vs)
 Constructor for cloning.
 
bool notice (void) const
 Whether dispose must always be called (that is, notice is needed)
 
void dispose (Space &home)
 Delete value commit.
 

Additional Inherited Members

- Public Types inherited from Gecode::ValCommit< SetView, int >
typedef SetView View
 View type.
 
typedef View::VarType Var
 Corresponding variable type.
 
typedef int Val
 Value type.
 

Detailed Description

Value commit class for exclusion.

Requires

Definition at line 381 of file branch.hh.

Constructor & Destructor Documentation

◆ ValCommitExc() [1/2]

Gecode::Set::Branch::ValCommitExc::ValCommitExc ( Space & home,
const ValBranch< Var > & vb )
inline

Constructor for initialization.

Definition at line 67 of file val-commit.hpp.

◆ ValCommitExc() [2/2]

Gecode::Set::Branch::ValCommitExc::ValCommitExc ( Space & home,
ValCommitExc & vc )
inline

Constructor for cloning.

Definition at line 70 of file val-commit.hpp.

Member Function Documentation

◆ commit()

ModEvent Gecode::Set::Branch::ValCommitExc::commit ( Space & home,
unsigned int a,
SetView x,
int i,
int n )
inline

Commit view x at position i to value n for alternative a.

Definition at line 73 of file val-commit.hpp.

◆ ngl()

NGL * Gecode::Set::Branch::ValCommitExc::ngl ( Space & home,
unsigned int a,
View x,
int n ) const
inline

Create no-good literal for alternative a.

Definition at line 77 of file val-commit.hpp.

◆ print()

void Gecode::Set::Branch::ValCommitExc::print ( const Space & home,
unsigned int a,
SetView x,
int i,
int n,
std::ostream & o ) const
inline

Print on o the alternative with view x at position i and value n.

Definition at line 84 of file val-commit.hpp.


The documentation for this class was generated from the following files: