Generated on Thu Jul 25 2019 00:00:00 for Gecode by doxygen 1.8.15
Gecode::Set::RelOp::PartitionN< View0, View1 > Class Template Reference

Propagator for nary partition More...

#include <rel-op.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool)
 Copy propagator during cloning. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low linear) More...
 
- Public Member Functions inherited from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >
virtual void reschedule (Space &home)
 Schedule function. 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< View0 > &y, View1 x)
 Post propagator $ x = \biguplus_{i\in\{0,\dots,n-1\}} y_i $. More...
 
static ExecStatus post (Home home, ViewArray< View0 > &y, const IntSet &z, View1 x)
 Post propagator $ x = z\uplus\biguplus_{i\in\{0,\dots,n-1\}} y_i $. 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

 PartitionN (Space &home, bool share, PartitionN &p)
 Constructor for cloning p. More...
 
 PartitionN (Home home, ViewArray< View0 > &, View1)
 Constructor for posting. More...
 
 PartitionN (Home home, ViewArray< View0 > &, const IntSet &, View1)
 Constructor for posting. More...
 
- Protected Member Functions inherited from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >
 MixNaryOnePropagator (Space &home, bool share, MixNaryOnePropagator &p)
 Constructor for cloning p. More...
 
 MixNaryOnePropagator (Home home, ViewArray< View0 > &x, View1 y)
 Constructor for creation. More...
 
 MixNaryOnePropagator (Space &home, bool share, Propagator &p, ViewArray< View0 > &x, View1 y)
 Constructor for rewriting p during cloning. 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

bool shared
 Whether the any views share a variable implementation. More...
 
GLBndSet unionOfDets
 Union of the determined $x_i$ (which are dropped) More...
 
- Protected Attributes inherited from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >
ViewArray< View0 > x
 Array of views. More...
 
View1 y
 Single view. More...
 

Detailed Description

template<class View0, class View1>
class Gecode::Set::RelOp::PartitionN< View0, View1 >

Propagator for nary partition

Requires

Definition at line 257 of file rel-op.hh.

Constructor & Destructor Documentation

◆ PartitionN() [1/3]

template<class View0 , class View1 >
Gecode::Set::RelOp::PartitionN< View0, View1 >::PartitionN ( Space home,
bool  share,
PartitionN< View0, View1 > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 70 of file partition.hpp.

◆ PartitionN() [2/3]

template<class View0 , class View1 >
Gecode::Set::RelOp::PartitionN< View0, View1 >::PartitionN ( Home  home,
ViewArray< View0 > &  x,
View1  y 
)
inlineprotected

Constructor for posting.

Definition at line 53 of file partition.hpp.

◆ PartitionN() [3/3]

template<class View0 , class View1 >
Gecode::Set::RelOp::PartitionN< View0, View1 >::PartitionN ( Home  home,
ViewArray< View0 > &  x,
const IntSet z,
View1  y 
)
inlineprotected

Constructor for posting.

Definition at line 60 of file partition.hpp.

Member Function Documentation

◆ copy()

template<class View0 , class View1 >
Actor * Gecode::Set::RelOp::PartitionN< View0, View1 >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 78 of file partition.hpp.

◆ propagate()

template<class View0 , class View1 >
ExecStatus Gecode::Set::RelOp::PartitionN< View0, View1 >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 111 of file partition.hpp.

◆ cost()

template<class View0 , class View1 >
PropCost Gecode::Set::RelOp::PartitionN< View0, View1 >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as low linear)

Reimplemented from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >.

Definition at line 105 of file partition.hpp.

◆ post() [1/2]

template<class View0 , class View1 >
ExecStatus Gecode::Set::RelOp::PartitionN< View0, View1 >::post ( Home  home,
ViewArray< View0 > &  y,
View1  x 
)
static

Post propagator $ x = \biguplus_{i\in\{0,\dots,n-1\}} y_i $.

Definition at line 83 of file partition.hpp.

◆ post() [2/2]

template<class View0 , class View1 >
ExecStatus Gecode::Set::RelOp::PartitionN< View0, View1 >::post ( Home  home,
ViewArray< View0 > &  y,
const IntSet z,
View1  x 
)
static

Post propagator $ x = z\uplus\biguplus_{i\in\{0,\dots,n-1\}} y_i $.

Definition at line 98 of file partition.hpp.

Member Data Documentation

◆ shared

template<class View0 , class View1 >
bool Gecode::Set::RelOp::PartitionN< View0, View1 >::shared
protected

Whether the any views share a variable implementation.

Definition at line 263 of file rel-op.hh.

◆ unionOfDets

template<class View0 , class View1 >
GLBndSet Gecode::Set::RelOp::PartitionN< View0, View1 >::unionOfDets
protected

Union of the determined $x_i$ (which are dropped)

Definition at line 265 of file rel-op.hh.


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