Generated on Wed Jul 21 2021 00:00:00 for Gecode by doxygen 1.9.1
count.cpp File Reference
#include <gecode/int/count.hh>
#include <gecode/int/rel.hh>

Go to the source code of this file.

Functions

void Gecode::count (Home home, const IntVarArgs &x, int n, IntRelType irt, int m, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=n\}\sim_{irt} m$. More...
 
void Gecode::count (Home home, const IntVarArgs &x, IntVar y, IntRelType irt, int m, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\sim_{irt} m$. More...
 
void Gecode::count (Home home, const IntVarArgs &x, const IntSet &y, IntRelType irt, int m, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i\in y\}\sim_{irt} m$. More...
 
void Gecode::count (Home home, const IntVarArgs &x, const IntArgs &y, IntRelType irt, int m, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y_i\}\sim_{irt} m$. More...
 
void Gecode::count (Home home, const IntVarArgs &x, int n, IntRelType irt, IntVar z, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=n\}\sim_{irt} z$. More...
 
void Gecode::count (Home home, const IntVarArgs &x, IntVar y, IntRelType irt, IntVar z, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\sim_{irt} z$. More...
 
void Gecode::count (Home home, const IntVarArgs &x, const IntSet &y, IntRelType irt, IntVar z, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i\in y\}\sim_{irt} z$. More...
 
void Gecode::count (Home home, const IntVarArgs &x, const IntArgs &y, IntRelType irt, IntVar z, IntPropLevel ipl=IPL_DEF)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y_i\}\sim_{irt} z$. More...
 

Function Documentation

◆ count() [1/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
int  n,
IntRelType  irt,
int  m,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=n\}\sim_{irt} m$.

Performs domain propagation but is not domain consistent.

Definition at line 40 of file count.cpp.

◆ count() [2/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
IntVar  y,
IntRelType  irt,
int  m,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\sim_{irt} m$.

Performs domain propagation (ipl = IPL_DOM, default) and slightly less domain propagation (all other values for ipl), where y is not pruned. Note that in both cases propagation is not domain consistent.

Definition at line 82 of file count.cpp.

◆ count() [3/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
const IntSet y,
IntRelType  irt,
int  m,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i\in y\}\sim_{irt} m$.

Performs domain propagation but is not domain consistent.

Definition at line 134 of file count.cpp.

◆ count() [4/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
const IntArgs y,
IntRelType  irt,
int  m,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y_i\}\sim_{irt} m$.

Performs domain propagation but is not domain consistent.

Throws an exception of type Int::ArgumentSizeMismatch, if x and y are of different size.

Definition at line 178 of file count.cpp.

◆ count() [5/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
int  n,
IntRelType  irt,
IntVar  z,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=n\}\sim_{irt} z$.

Performs domain propagation but is not domain consistent.

Definition at line 222 of file count.cpp.

◆ count() [6/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
IntVar  y,
IntRelType  irt,
IntVar  z,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\sim_{irt} z$.

Performs domain propagation (ipl = IPL_DOM, default) and slightly less domain propagation (all other values for ipl), where y is not pruned. Note that in both cases propagation is not domain consistent.

Definition at line 264 of file count.cpp.

◆ count() [7/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
const IntSet y,
IntRelType  irt,
IntVar  z,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i\in y\}\sim_{irt} z$.

Performs domain propagation but is not domain consistent.

Definition at line 316 of file count.cpp.

◆ count() [8/8]

void Gecode::count ( Home  home,
const IntVarArgs x,
const IntArgs y,
IntRelType  irt,
IntVar  z,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y_i\}\sim_{irt} z$.

Performs domain propagation but is not domain consistent.

Throws an exception of type Int::ArgumentSizeMismatch, if x and y are of different size.

Definition at line 365 of file count.cpp.