Generated on Thu Jan 31 2019 20:56:52 for Gecode by doxygen 1.8.15
Gecode::Kernel::NaryWait< View > Class Template Reference

Wait propagator for several views. More...

#include <wait.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Perform copying during cloning. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Const function (defined as high unary) More...
 
virtual void reschedule (Space &home)
 Schedule function. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. 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...
 
virtual void advise (Space &home, Advisor &a)
 Run advisor a to be run on failure in failed space. More...
 
double afc (void) 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...
 
- Public Member Functions inherited from Gecode::Actor
virtual ~Actor (void)
 To avoid warnings. More...
 

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. 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

 NaryWait (Home home, ViewArray< View > &x, std::function< void(Space &home)> c0)
 Constructor for creation. More...
 
 NaryWait (Space &home, bool shared, NaryWait &p)
 Constructor for cloning p. 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

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

Detailed Description

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

Wait propagator for several views.

Requires

Definition at line 85 of file wait.hh.

Constructor & Destructor Documentation

◆ NaryWait() [1/2]

template<class View >
Gecode::Kernel::NaryWait< View >::NaryWait ( Home  home,
ViewArray< View > &  x,
std::function< void(Space &home)>  c0 
)
inlineprotected

Constructor for creation.

Definition at line 186 of file wait.hh.

◆ NaryWait() [2/2]

template<class View >
Gecode::Kernel::NaryWait< View >::NaryWait ( Space home,
bool  shared,
NaryWait< View > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 195 of file wait.hh.

Member Function Documentation

◆ copy()

template<class View >
Actor * Gecode::Kernel::NaryWait< View >::copy ( Space home,
bool  share 
)
virtual

Perform copying during cloning.

Implements Gecode::Actor.

Definition at line 202 of file wait.hh.

◆ cost()

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

Const function (defined as high unary)

Implements Gecode::Propagator.

Definition at line 212 of file wait.hh.

◆ reschedule()

template<class View >
void Gecode::Kernel::NaryWait< View >::reschedule ( Space home)
virtual

Schedule function.

Implements Gecode::Propagator.

Definition at line 217 of file wait.hh.

◆ propagate()

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 222 of file wait.hh.

◆ post()

template<class View >
ExecStatus Gecode::Kernel::NaryWait< View >::post ( Home  home,
ViewArray< View > &  x,
std::function< void(Space &home)>  c 
)
inlinestatic

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

Definition at line 243 of file wait.hh.

◆ dispose()

template<class View >
size_t Gecode::Kernel::NaryWait< View >::dispose ( Space home)
virtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 265 of file wait.hh.

Member Data Documentation

◆ x

template<class View >
ViewArray<View> Gecode::Kernel::NaryWait< View >::x
protected

Views to wait for becoming assigned.

Definition at line 88 of file wait.hh.

◆ c

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

Continuation to execute.

Definition at line 90 of file wait.hh.


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