Generated on Sat Feb 7 2015 02:01:51 for Gecode by doxygen 1.8.9.1
Gecode::Set::Channel::ChannelSorted< View > Class Template Reference

Propagator for the sorted channel constraint More...

#include <channel.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool)
 Copy propagator during cloning. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as PC_LINEAR_LO) More...
 
virtual size_t dispose (Space &home)
 Delete Propagator. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. 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, View s, ViewArray< Gecode::Int::IntView > &x)
 Post propagator that propagates that s contains the $x_i$, which are sorted in non-descending order. 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

 ChannelSorted (Space &home, bool share, ChannelSorted &p)
 Constructor for cloning p. More...
 
 ChannelSorted (Home home, View, ViewArray< Gecode::Int::IntView > &)
 Constructor for posting. 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

View x0
 SetView for the match. More...
 
ViewArray< Gecode::Int::IntViewxs
 IntViews that together form the set x0. More...
 

Detailed Description

template<class View>
class Gecode::Set::Channel::ChannelSorted< View >

Propagator for the sorted channel constraint

Requires

#include <gecode/set/int.hh>

Definition at line 64 of file channel.hh.

Constructor & Destructor Documentation

template<class View >
Gecode::Set::Channel::ChannelSorted< View >::ChannelSorted ( Space home,
bool  share,
ChannelSorted< View > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 61 of file sorted.hpp.

template<class View >
Gecode::Set::Channel::ChannelSorted< View >::ChannelSorted ( Home  home,
View  y0,
ViewArray< Gecode::Int::IntView > &  ys 
)
inlineprotected

Constructor for posting.

Definition at line 52 of file sorted.hpp.

Member Function Documentation

template<class View >
Actor * Gecode::Set::Channel::ChannelSorted< View >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 103 of file sorted.hpp.

template<class View >
PropCost Gecode::Set::Channel::ChannelSorted< View >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as PC_LINEAR_LO)

Implements Gecode::Propagator.

Definition at line 88 of file sorted.hpp.

template<class View >
size_t Gecode::Set::Channel::ChannelSorted< View >::dispose ( Space home)
inlinevirtual

Delete Propagator.

Reimplemented from Gecode::Actor.

Definition at line 94 of file sorted.hpp.

template<class View >
ExecStatus Gecode::Set::Channel::ChannelSorted< View >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 109 of file sorted.hpp.

template<class View >
ExecStatus Gecode::Set::Channel::ChannelSorted< View >::post ( Home  home,
View  s,
ViewArray< Gecode::Int::IntView > &  x 
)
inlinestatic

Post propagator that propagates that s contains the $x_i$, which are sorted in non-descending order.

Definition at line 69 of file sorted.hpp.

Member Data Documentation

template<class View >
View Gecode::Set::Channel::ChannelSorted< View >::x0
protected

SetView for the match.

Definition at line 67 of file channel.hh.

template<class View >
ViewArray<Gecode::Int::IntView> Gecode::Set::Channel::ChannelSorted< View >::xs
protected

IntViews that together form the set x0.

Definition at line 69 of file channel.hh.


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