Generated on Thu Mar 16 2017 03:24:32 for Gecode by doxygen 1.8.13
Gecode::Int::Distinct::EqIte Class Reference

Equal-if-then-else domain-consistent propagator. More...

#include <distinct.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as high ternary) More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
- Public Member Functions inherited from Gecode::BinaryPropagator< IntView, PC_INT_DOM >
virtual void reschedule (Space &home)
 Schedule function. More...
 
virtual size_t dispose (Space &home)
 Delete propagator and return its size. More...
 
- Public Member Functions inherited from Gecode::Propagator
ModEventDelta modeventdelta (void) const
 Return the modification event delta. More...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function. More...
 
double afc (const Space &home) const
 Return the accumlated failure count. More...
 
unsigned int id (void) const
 Return propagator id. More...
 
PropagatorGroup group (void) const
 Return group propagator belongs to. More...
 
void group (PropagatorGroup g)
 Add propagator to group g. More...
 
bool disabled (void) const
 Whether propagator is currently disabled. More...
 
void kill (Space &home)
 Kill propagator. More...
 
void disable (void)
 Disable propagator. More...
 
void enable (void)
 Enable propagator. More...
 
- Public Member Functions inherited from Gecode::Actor
virtual ~Actor (void)
 To avoid warnings. More...
 

Static Public Member Functions

static ExecStatus post (Home home, IntView x0, IntView x1, int c0, int c1)
 Post if-then-else propagator. More...
 
- Static Public Member Functions inherited from Gecode::Actor
static void * operator new (size_t s)
 Not used. More...
 
static void operator delete (void *p)
 Not used. More...
 
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *p, Space &home)
 No-op for exceptions. More...
 

Protected Member Functions

 EqIte (Space &home, bool share, EqIte &p)
 Constructor for cloning p. More...
 
 EqIte (Home home, IntView x0, IntView x1, int c0, int c1)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::BinaryPropagator< IntView, PC_INT_DOM >
 BinaryPropagator (Space &home, bool share, BinaryPropagator &p)
 Constructor for cloning p. More...
 
 BinaryPropagator (Home home, IntView x0, IntView x1)
 Constructor for creation. More...
 
 BinaryPropagator (Space &home, bool share, Propagator &p, IntView x0, IntView x1)
 Constructor for rewriting p during cloning. More...
 
- Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting. More...
 
 Propagator (Space &home, bool share, Propagator &p)
 Constructor for cloning p. More...
 
Propagatorfwd (void) const
 Return forwarding pointer during copying. More...
 
GPI::Infogpi (void)
 Provide access to global propagator information. More...
 

Protected Attributes

int c0
 The integer constant. More...
 
int c1
 
- Protected Attributes inherited from Gecode::BinaryPropagator< IntView, PC_INT_DOM >
IntView x0
 Two views. More...
 
IntView x1
 

Detailed Description

Equal-if-then-else domain-consistent propagator.

Implements the propagator $x_1=(x_0 = c_0) ? c_1 : x_0$.

Requires

Definition at line 312 of file distinct.hh.

Constructor & Destructor Documentation

◆ EqIte() [1/2]

Gecode::Int::Distinct::EqIte::EqIte ( Space home,
bool  share,
EqIte p 
)
inlineprotected

Constructor for cloning p.

Definition at line 47 of file eqite.hpp.

◆ EqIte() [2/2]

Gecode::Int::Distinct::EqIte::EqIte ( Home  home,
IntView  x0,
IntView  x1,
int  c0,
int  c1 
)
inlineprotected

Constructor for creation.

Definition at line 43 of file eqite.hpp.

Member Function Documentation

◆ copy()

Actor * Gecode::Int::Distinct::EqIte::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 50 of file eqite.cpp.

◆ cost()

PropCost Gecode::Int::Distinct::EqIte::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as high ternary)

Reimplemented from Gecode::BinaryPropagator< IntView, PC_INT_DOM >.

Definition at line 45 of file eqite.cpp.

◆ propagate()

ExecStatus Gecode::Int::Distinct::EqIte::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 55 of file eqite.cpp.

◆ post()

ExecStatus Gecode::Int::Distinct::EqIte::post ( Home  home,
IntView  x0,
IntView  x1,
int  c0,
int  c1 
)
inlinestatic

Post if-then-else propagator.

Definition at line 53 of file eqite.hpp.

Member Data Documentation

◆ c0

int Gecode::Int::Distinct::EqIte::c0
protected

The integer constant.

Definition at line 317 of file distinct.hh.

◆ c1

int Gecode::Int::Distinct::EqIte::c1
protected

Definition at line 317 of file distinct.hh.


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