Generated on Fri Feb 10 2017 16:50:51 for Gecode by doxygen 1.8.13

Functions

void Gecode::wait (Home home, IntVar x, void(*c)(Space &home), IntConLevel icl=ICL_DEF)
 Execute c when x becomes assigned. More...
 
void Gecode::wait (Home home, BoolVar x, void(*c)(Space &home), IntConLevel icl=ICL_DEF)
 Execute c when x becomes assigned. More...
 
void Gecode::wait (Home home, const IntVarArgs &x, void(*c)(Space &home), IntConLevel icl=ICL_DEF)
 Execute c when all variables in x become assigned. More...
 
void Gecode::wait (Home home, const BoolVarArgs &x, void(*c)(Space &home), IntConLevel icl=ICL_DEF)
 Execute c when all variables in x become assigned. More...
 
void Gecode::when (Home home, BoolVar x, void(*t)(Space &home), void(*e)(Space &home)=NULL, IntConLevel icl=ICL_DEF)
 Execute t (then) when x is assigned one, and e (else) otherwise. More...
 

Detailed Description

Synchronized execution executes a function or a static member function when a certain event happends.

Function Documentation

◆ wait() [1/4]

void Gecode::wait ( Home  home,
IntVar  x,
void(*)(Space &home)  c,
IntConLevel   
)

Execute c when x becomes assigned.

Definition at line 44 of file exec.cpp.

◆ wait() [2/4]

void Gecode::wait ( Home  home,
BoolVar  x,
void(*)(Space &home)  c,
IntConLevel   
)

Execute c when x becomes assigned.

Definition at line 51 of file exec.cpp.

◆ wait() [3/4]

void Gecode::wait ( Home  home,
const IntVarArgs x,
void(*)(Space &home)  c,
IntConLevel   
)

Execute c when all variables in x become assigned.

Definition at line 58 of file exec.cpp.

◆ wait() [4/4]

void Gecode::wait ( Home  home,
const BoolVarArgs x,
void(*)(Space &home)  c,
IntConLevel   
)

Execute c when all variables in x become assigned.

Definition at line 66 of file exec.cpp.

◆ when()

void Gecode::when ( Home  home,
BoolVar  x,
void(*)(Space &home)  t,
void(*)(Space &home)  e,
IntConLevel   
)

Execute t (then) when x is assigned one, and e (else) otherwise.

Definition at line 74 of file exec.cpp.