Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
Gecode::Int::Bool::BoolBinary< BVA, BVB > Class Template Reference

Base-class for binary Boolean propagators. More...

#include <bool.hh>

Public Member Functions

virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low unary)
 
virtual void reschedule (Space &home)
 Schedule function.
 
virtual size_t dispose (Space &home)
 Delete propagator and return its size.
 
- Public Member Functions inherited from Gecode::Propagator
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)=0
 Propagation 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.
 
- Public Member Functions inherited from Gecode::Actor
virtual Actorcopy (Space &home)=0
 Create copy.
 
virtual ~Actor (void)
 To avoid warnings.
 

Protected Member Functions

 BoolBinary (Home home, BVA b0, BVB b1)
 
 BoolBinary (Space &home, BoolBinary &p)
 Constructor for cloning.
 
 BoolBinary (Space &home, Propagator &p, BVA b0, BVB b1)
 Constructor for rewriting p during 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

BVA x0
 Boolean view.
 
BVB x1
 Boolean view Constructor for posting.
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Actor
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.
 
- Public Attributes inherited from Gecode::Propagator

Detailed Description

template<class BVA, class BVB>
class Gecode::Int::Bool::BoolBinary< BVA, BVB >

Base-class for binary Boolean propagators.

Definition at line 55 of file bool.hh.

Constructor & Destructor Documentation

◆ BoolBinary() [1/3]

template<class BVA , class BVB >
Gecode::Int::Bool::BoolBinary< BVA, BVB >::BoolBinary ( Home home,
BVA b0,
BVB b1 )
inlineprotected

Definition at line 42 of file base.hpp.

◆ BoolBinary() [2/3]

template<class BVA , class BVB >
Gecode::Int::Bool::BoolBinary< BVA, BVB >::BoolBinary ( Space & home,
BoolBinary< BVA, BVB > & p )
inlineprotected

Constructor for cloning.

Definition at line 50 of file base.hpp.

◆ BoolBinary() [3/3]

template<class BVA , class BVB >
Gecode::Int::Bool::BoolBinary< BVA, BVB >::BoolBinary ( Space & home,
Propagator & p,
BVA b0,
BVB b1 )
inlineprotected

Constructor for rewriting p during cloning.

Definition at line 58 of file base.hpp.

Member Function Documentation

◆ cost()

template<class BVA , class BVB >
PropCost Gecode::Int::Bool::BoolBinary< BVA, BVB >::cost ( const Space & home,
const ModEventDelta & med ) const
virtual

Cost function (defined as low unary)

Implements Gecode::Propagator.

Definition at line 67 of file base.hpp.

◆ reschedule()

template<class BVA , class BVB >
void Gecode::Int::Bool::BoolBinary< BVA, BVB >::reschedule ( Space & home)
virtual

Schedule function.

Implements Gecode::Propagator.

Definition at line 73 of file base.hpp.

◆ dispose()

template<class BVA , class BVB >
size_t Gecode::Int::Bool::BoolBinary< BVA, BVB >::dispose ( Space & home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Reimplemented in Gecode::Int::Bool::QuadOrTrue< BV >, and Gecode::Int::Bool::TerOrTrue< BV >.

Definition at line 80 of file base.hpp.

Member Data Documentation

◆ x0

template<class BVA , class BVB >
BVA Gecode::Int::Bool::BoolBinary< BVA, BVB >::x0
protected

Boolean view.

Definition at line 57 of file bool.hh.

◆ x1

template<class BVA , class BVB >
BVB Gecode::Int::Bool::BoolBinary< BVA, BVB >::x1
protected

Boolean view Constructor for posting.

Definition at line 58 of file bool.hh.


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