Generated on Sat Feb 7 2015 02:01:47 for Gecode by doxygen 1.8.9.1
Gecode::Int::Exec::When Class Reference

Conditional propagator. More...

#include <exec.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
- Public Member Functions inherited from Gecode::UnaryPropagator< BoolView, PC_BOOL_VAL >
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as PC_UNARY_LO) 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...
 
- Public Member Functions inherited from Gecode::Actor

Static Public Member Functions

static ExecStatus post (Home home, BoolView x, void(*t)(Space &), void(*e)(Space &))
 Post propagator. More...
 
- Static Public Member Functions inherited from Gecode::Actor
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

 When (Space &home, bool share, When &p)
 Constructor for cloning p. More...
 
 When (Home home, BoolView x, void(*t0)(Space &), void(*e0)(Space &))
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::UnaryPropagator< BoolView, PC_BOOL_VAL >
 UnaryPropagator (Space &home, bool share, UnaryPropagator &p)
 Constructor for cloning p. More...
 
 UnaryPropagator (Space &home, bool share, Propagator &p, BoolViewx0)
 Constructor for rewriting p during cloning. More...
 
 UnaryPropagator (Home home, BoolViewx0)
 Constructor for creation. 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...
 

Protected Attributes

void(* t )(Space &)
 Then function pointer. More...
 
void(* e )(Space &)
 Else function pointer. More...
 
- Protected Attributes inherited from Gecode::UnaryPropagator< BoolView, PC_BOOL_VAL >
BoolView x0
 Single view. More...
 

Detailed Description

Conditional propagator.

Requires

#include <gecode/int/exec.hh>

Definition at line 56 of file exec.hh.

Constructor & Destructor Documentation

Gecode::Int::Exec::When::When ( Space home,
bool  share,
When p 
)
inlineprotected

Constructor for cloning p.

Definition at line 45 of file when.hpp.

Gecode::Int::Exec::When::When ( Home  home,
BoolView  x,
void(*)(Space &)  t0,
void(*)(Space &)  e0 
)
inlineprotected

Constructor for creation.

Definition at line 41 of file when.hpp.

Member Function Documentation

Actor * Gecode::Int::Exec::When::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 57 of file when.cpp.

ExecStatus Gecode::Int::Exec::When::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 62 of file when.cpp.

ExecStatus Gecode::Int::Exec::When::post ( Home  home,
BoolView  x,
void(*)(Space &)  t,
void(*)(Space &)  e 
)
static

Post propagator.

Definition at line 43 of file when.cpp.

Member Data Documentation

void(* Gecode::Int::Exec::When::t) (Space &)
protected

Then function pointer.

Definition at line 60 of file exec.hh.

void(* Gecode::Int::Exec::When::e) (Space &)
protected

Else function pointer.

Definition at line 62 of file exec.hh.


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