Generated on for Gecode by doxygen 1.17.0
Gecode::FlatZinc::LastVal< View, SetLastVal > Class Template Reference

#include <gecode/flatzinc/lastval.hh>

Public Member Functions

virtual Actorcopy (Space &home)
 Copy propagator during cloning.
virtual void reschedule (Space &home)
 Schedule function.
virtual PropCost cost (const Space &, const ModEventDelta &) const
 Cost function.
virtual ExecStatus propagate (Space &home, const ModEventDelta &)
 Perform propagation.
ModEventDelta modeventdelta (void) const
 Return the modification event delta.
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function.
virtual void advise (Space &home, Advisor &a)
 Run advisor a to be run on failure in failed space.
double afc (void) const
 Return the accumulated failure count.
unsigned int id (void) const
 Return propagator id.
PropagatorGroup group (void) const
 Return group propagator belongs to.
void group (PropagatorGroup g)
 Add propagator to group g.
bool disabled (void) const
 Whether propagator is currently disabled.
virtual size_t dispose (Space &home)
 Delete actor and return its size.
virtual ~Actor (void)
 To avoid warnings.

Static Public Member Functions

static void record_assigned (FlatZincSpace &home, IdxViewArray< View > &x)
 Record (and forget) the values of any assigned views in x in the right position in last_val.
static ExecStatus post (FlatZincSpace &home, const typename ViewToVarArg< View >::argtype &x)
 Post propagator.
static void * operator new (size_t s, Space &home)
 Allocate memory from space.
static void operator delete (void *p, Space &home)
 No-op for exceptions.
static void * operator new (size_t s)
 Not used.
static void operator delete (void *p)
 Not used.

Protected Member Functions

 LastVal (Space &home, LastVal &p)
 Constructor for cloning p.
 LastVal (FlatZincSpace &home, IdxViewArray< View > x0)
 Constructor for posting.
Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting.
 Propagator (Space &home, Propagator &p)
 Constructor for cloning p.
Propagatorfwd (void) const
 Return forwarding pointer during copying.
Kernel::GPI::Infogpi (void)
 Provide access to global propagator information.

Protected Attributes

IdxViewArray< Viewx
 Array of views and their indices.

Detailed Description

template<class View, class SetLastVal>
class Gecode::FlatZinc::LastVal< View, SetLastVal >

Definition at line 67 of file lastval.hh.

Constructor & Destructor Documentation

◆ LastVal() [1/2]

template<class View, class SetLastVal>
Gecode::FlatZinc::LastVal< View, SetLastVal >::LastVal ( Space & home,
LastVal< View, SetLastVal > & p )
inlineprotected

Constructor for cloning p.

Definition at line 73 of file lastval.hh.

◆ LastVal() [2/2]

template<class View, class SetLastVal>
Gecode::FlatZinc::LastVal< View, SetLastVal >::LastVal ( FlatZincSpace & home,
IdxViewArray< View > x0 )
inlineprotected

Constructor for posting.

Definition at line 77 of file lastval.hh.

Member Function Documentation

◆ record_assigned()

template<class View, class SetLastVal>
void Gecode::FlatZinc::LastVal< View, SetLastVal >::record_assigned ( FlatZincSpace & home,
IdxViewArray< View > & x )
inlinestatic

Record (and forget) the values of any assigned views in x in the right position in last_val.

Definition at line 85 of file lastval.hh.

◆ copy()

template<class View, class SetLastVal>
virtual Actor * Gecode::FlatZinc::LastVal< View, SetLastVal >::copy ( Space & home)
inlinevirtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 97 of file lastval.hh.

◆ reschedule()

template<class View, class SetLastVal>
virtual void Gecode::FlatZinc::LastVal< View, SetLastVal >::reschedule ( Space & home)
inlinevirtual

Schedule function.

The function is executed when a propagator is enabled again. Note that a propagator should be scheduled with the right modification event delta and should only be scheduled if it is legal to execute the propagator.

Implements Gecode::Propagator.

Definition at line 98 of file lastval.hh.

◆ cost()

template<class View, class SetLastVal>
virtual PropCost Gecode::FlatZinc::LastVal< View, SetLastVal >::cost ( const Space & ,
const ModEventDelta &  ) const
inlinevirtual

Cost function.

Implements Gecode::Propagator.

Definition at line 102 of file lastval.hh.

◆ propagate()

template<class View, class SetLastVal>
virtual ExecStatus Gecode::FlatZinc::LastVal< View, SetLastVal >::propagate ( Space & home,
const ModEventDelta &  )
inlinevirtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 104 of file lastval.hh.

◆ post()

template<class View, class SetLastVal>
ExecStatus Gecode::FlatZinc::LastVal< View, SetLastVal >::post ( FlatZincSpace & home,
const typename ViewToVarArg< View >::argtype & x )
inlinestatic

Post propagator.

Definition at line 114 of file lastval.hh.

Member Data Documentation

◆ x

template<class View, class SetLastVal>
IdxViewArray<View> Gecode::FlatZinc::LastVal< View, SetLastVal >::x
protected

Array of views and their indices.

Definition at line 70 of file lastval.hh.


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