Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
Gecode::UnaryPropagator< View, pc > Class Template Reference

Unary propagator. More...

#include <pattern.hpp>

Public Member Functions

virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as PC_UNARY_LO)
 
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

 UnaryPropagator (Space &home, UnaryPropagator &p)
 Constructor for cloning p.
 
 UnaryPropagator (Space &home, Propagator &p, View x0)
 Constructor for rewriting p during cloning.
 
 UnaryPropagator (Home home, View x0)
 Constructor for creation.
 
- 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

View x0
 Single view.
 

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 View, PropCond pc>
class Gecode::UnaryPropagator< View, pc >

Unary propagator.

Stores a single view of type View with propagation condition pc.

If the propagation condition pc has the value PC_GEN_NONE, no subscriptions are created.

Definition at line 55 of file pattern.hpp.

Constructor & Destructor Documentation

◆ UnaryPropagator() [1/3]

template<class View , PropCond pc>
Gecode::UnaryPropagator< View, pc >::UnaryPropagator ( Space & home,
UnaryPropagator< View, pc > & p )
inlineprotected

Constructor for cloning p.

Definition at line 310 of file pattern.hpp.

◆ UnaryPropagator() [2/3]

template<class View , PropCond pc>
Gecode::UnaryPropagator< View, pc >::UnaryPropagator ( Space & home,
Propagator & p,
View x0 )
inlineprotected

Constructor for rewriting p during cloning.

Definition at line 318 of file pattern.hpp.

◆ UnaryPropagator() [3/3]

template<class View , PropCond pc>
Gecode::UnaryPropagator< View, pc >::UnaryPropagator ( Home home,
View x0 )
protected

Constructor for creation.

Definition at line 302 of file pattern.hpp.

Member Function Documentation

◆ cost()

template<class View , PropCond pc>
PropCost Gecode::UnaryPropagator< View, pc >::cost ( const Space & home,
const ModEventDelta & med ) const
virtual

Cost function (defined as PC_UNARY_LO)

Implements Gecode::Propagator.

Definition at line 326 of file pattern.hpp.

◆ reschedule()

template<class View , PropCond pc>
void Gecode::UnaryPropagator< View, pc >::reschedule ( Space & home)
virtual

Schedule function.

Implements Gecode::Propagator.

Definition at line 332 of file pattern.hpp.

◆ dispose()

template<class View , PropCond pc>
size_t Gecode::UnaryPropagator< View, pc >::dispose ( Space & home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Reimplemented in Gecode::Int::Exec::When.

Definition at line 339 of file pattern.hpp.

Member Data Documentation

◆ x0

template<class View , PropCond pc>
View Gecode::UnaryPropagator< View, pc >::x0
protected

Single view.

Definition at line 58 of file pattern.hpp.


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