Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0

Boolean clause propagator (disjunctive, true) More...

#include <bool.hh>

Public Member Functions

virtual Actorcopy (Space &home)
 Copy propagator during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low binary)
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual size_t dispose (Space &home)
 Delete propagator and return its size.
Public Member Functions inherited from Gecode::MixBinaryPropagator< VX, PC_BOOL_VAL, VY, PC_BOOL_VAL >
virtual void reschedule (Space &home)
 Schedule function.
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 accumlated 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 ~Actor (void)
 To avoid warnings.

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< VX > &x, ViewArray< VY > &y)
 Post propagator $ \bigvee_{i=0}^{|x|-1} x_i \vee \bigvee_{i=0}^{|y|-1} y_i = 1$.
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

 ClauseTrue (Home home, ViewArray< VX > &x, ViewArray< VY > &y)
 Constructor for posting.
 ClauseTrue (Space &home, ClauseTrue< VX, VY > &p)
 Constructor for cloning p.
Protected Member Functions inherited from Gecode::MixBinaryPropagator< VX, PC_BOOL_VAL, VY, PC_BOOL_VAL >
 MixBinaryPropagator (Space &home, MixBinaryPropagator &p)
 Constructor for cloning.
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

ViewArray< VX > x
 Views not yet subscribed to.
ViewArray< VY > y
 Views not yet subscribed to (origin from negative variables)
Protected Attributes inherited from Gecode::MixBinaryPropagator< VX, PC_BOOL_VAL, VY, PC_BOOL_VAL >
VX x0
 View of type View0.
VY x1
 View of type View1.

Detailed Description

template<class VX, class VY>
class Gecode::Int::Bool::ClauseTrue< VX, VY >

Boolean clause propagator (disjunctive, true)

Requires

Definition at line 546 of file bool.hh.

Constructor & Destructor Documentation

◆ ClauseTrue() [1/2]

template<class VX, class VY>
Gecode::Int::Bool::ClauseTrue< VX, VY >::ClauseTrue ( Home home,
ViewArray< VX > & x,
ViewArray< VY > & y )
inlineprotected

Constructor for posting.

Definition at line 43 of file clause.hpp.

◆ ClauseTrue() [2/2]

template<class VX, class VY>
Gecode::Int::Bool::ClauseTrue< VX, VY >::ClauseTrue ( Space & home,
ClauseTrue< VX, VY > & p )
inlineprotected

Constructor for cloning p.

Definition at line 59 of file clause.hpp.

Member Function Documentation

◆ copy()

template<class VX, class VY>
Actor * Gecode::Int::Bool::ClauseTrue< VX, VY >::copy ( Space & home)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 67 of file clause.hpp.

◆ cost()

template<class VX, class VY>
PropCost Gecode::Int::Bool::ClauseTrue< VX, VY >::cost ( const Space & home,
const ModEventDelta & med ) const
virtual

Cost function (defined as low binary)

Reimplemented from Gecode::MixBinaryPropagator< VX, PC_BOOL_VAL, VY, PC_BOOL_VAL >.

Definition at line 53 of file clause.hpp.

◆ propagate()

template<class VX, class VY>
ExecStatus Gecode::Int::Bool::ClauseTrue< VX, VY >::propagate ( Space & home,
const ModEventDelta & med )
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 173 of file clause.hpp.

◆ post()

template<class VX, class VY>
ExecStatus Gecode::Int::Bool::ClauseTrue< VX, VY >::post ( Home home,
ViewArray< VX > & x,
ViewArray< VY > & y )
inlinestatic

Post propagator $ \bigvee_{i=0}^{|x|-1} x_i \vee \bigvee_{i=0}^{|y|-1} y_i = 1$.

Definition at line 106 of file clause.hpp.

◆ dispose()

template<class VX, class VY>
size_t Gecode::Int::Bool::ClauseTrue< VX, VY >::dispose ( Space & home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::MixBinaryPropagator< VX, PC_BOOL_VAL, VY, PC_BOOL_VAL >.

Definition at line 131 of file clause.hpp.

Member Data Documentation

◆ x

template<class VX, class VY>
ViewArray<VX> Gecode::Int::Bool::ClauseTrue< VX, VY >::x
protected

Views not yet subscribed to.

Definition at line 552 of file bool.hh.

◆ y

template<class VX, class VY>
ViewArray<VY> Gecode::Int::Bool::ClauseTrue< VX, VY >::y
protected

Views not yet subscribed to (origin from negative variables)

Definition at line 554 of file bool.hh.


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