Generated on Thu Apr 11 13:59:47 2019 for Gecode by doxygen 1.6.3

Gecode::NaryWait< View > Class Template Reference
[Generic propagators]

Wait propagator for several views. More...

#include <wait.hpp>

List of all members.

Public Member Functions

virtual Actorcopy (Space &home)
 Perform copying during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Const function (defined as high unary).
virtual void reschedule (Space &home)
 Schedule function.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual size_t dispose (Space &home)
 Delete propagator and return its size.

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< View > &x, std::function< void(Space &home)> c)
 Post propagator that waits until x becomes assigned and then executes c.

Protected Member Functions

 NaryWait (Home home, ViewArray< View > &x, std::function< void(Space &home)> c0)
 Constructor for creation.
 NaryWait (Space &home, NaryWait &p)
 Constructor for cloning p.

Protected Attributes

ViewArray< View > x
 Views to wait for becoming assigned.
SharedData< std::function
< void(Space &home)> > 
c
 Continuation to execute.

Detailed Description

template<class View>
class Gecode::NaryWait< View >

Wait propagator for several views.

Requires

 #include <gecode/kernel/wait.hh> 

Definition at line 76 of file wait.hpp.


Constructor & Destructor Documentation

template<class View >
Gecode::NaryWait< View >::NaryWait ( Home  home,
ViewArray< View > &  x,
std::function< void(Space &home)>  c0 
) [inline, protected]

Constructor for creation.

Definition at line 176 of file wait.hpp.

template<class View >
Gecode::NaryWait< View >::NaryWait ( Space home,
NaryWait< View > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 185 of file wait.hpp.


Member Function Documentation

template<class View >
Actor * Gecode::NaryWait< View >::copy ( Space home  )  [inline, virtual]

Perform copying during cloning.

Implements Gecode::Actor.

Definition at line 191 of file wait.hpp.

template<class View >
PropCost Gecode::NaryWait< View >::cost ( const Space home,
const ModEventDelta med 
) const [inline, virtual]

Const function (defined as high unary).

Implements Gecode::Propagator.

Definition at line 201 of file wait.hpp.

template<class View >
void Gecode::NaryWait< View >::reschedule ( Space home  )  [inline, virtual]

Schedule function.

Implements Gecode::Propagator.

Definition at line 206 of file wait.hpp.

template<class View >
ExecStatus Gecode::NaryWait< View >::propagate ( Space home,
const ModEventDelta med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 211 of file wait.hpp.

template<class View >
ExecStatus Gecode::NaryWait< View >::post ( Home  home,
ViewArray< View > &  x,
std::function< void(Space &home)>  c 
) [inline, static]

Post propagator that waits until x becomes assigned and then executes c.

Definition at line 232 of file wait.hpp.

template<class View >
size_t Gecode::NaryWait< View >::dispose ( Space home  )  [inline, virtual]

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 254 of file wait.hpp.


Member Data Documentation

template<class View>
ViewArray<View> Gecode::NaryWait< View >::x [protected]

Views to wait for becoming assigned.

Definition at line 79 of file wait.hpp.

template<class View>
SharedData<std::function<void(Space& home)> > Gecode::NaryWait< View >::c [protected]

Continuation to execute.

Definition at line 81 of file wait.hpp.


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