Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

No-overlap propagator for optional boxes. More...

#include <no-overlap.hh>

Public Member Functions

virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
 
virtual Actorcopy (Space &home)
 Copy propagator during cloning.
 
virtual size_t dispose (Space &home)
 Destructor.
 
- Public Member Functions inherited from Gecode::Int::NoOverlap::Base< Box >
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function.
 
virtual void reschedule (Space &home)
 Schedule function.
 
- Public Member Functions inherited from Gecode::Propagator
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 ~Actor (void)
 To avoid warnings.
 

Static Public Member Functions

static ExecStatus post (Home home, Box *b, int n)
 Post propagator for boxes b.
 
- 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.
 

Protected Member Functions

 OptProp (Home home, Box *b, int n, int m)
 Constructor for posting.
 
 OptProp (Space &home, OptProp< Box > &p)
 Constructor for cloning p.
 
- Protected Member Functions inherited from Gecode::Int::NoOverlap::Base< Box >
 Base (Home home, Box *b, int n)
 Constructor for posting with n mandatory boxes.
 
 Base (Space &home, Base< Box > &p, int m)
 Constructor for cloning p with m boxes.
 
- 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

int m
 Number of optional boxes: b[n] ... b[n+m-1].
 
- Protected Attributes inherited from Gecode::Int::NoOverlap::Base< Box >
Box * b
 Boxes.
 
int n
 Number of mandatory boxes: b[0] ... b[n-1].
 

Additional Inherited Members

- Public Attributes inherited from Gecode::Propagator
- Static Protected Member Functions inherited from Gecode::Int::NoOverlap::Base< Box >
static int partition (Box *b, int i, int n)
 Partition n boxes b starting at position i.
 

Detailed Description

template<class Box>
class Gecode::Int::NoOverlap::OptProp< Box >

No-overlap propagator for optional boxes.

Requires

Definition at line 294 of file no-overlap.hh.

Constructor & Destructor Documentation

◆ OptProp() [1/2]

template<class Box >
Gecode::Int::NoOverlap::OptProp< Box >::OptProp ( Home home,
Box * b,
int n,
int m )
inlineprotected

Constructor for posting.

Definition at line 38 of file opt.hpp.

◆ OptProp() [2/2]

template<class Box >
Gecode::Int::NoOverlap::OptProp< Box >::OptProp ( Space & home,
OptProp< Box > & p )
inlineprotected

Constructor for cloning p.

Definition at line 67 of file opt.hpp.

Member Function Documentation

◆ post()

template<class Box >
ExecStatus Gecode::Int::NoOverlap::OptProp< Box >::post ( Home home,
Box * b,
int n )
static

Post propagator for boxes b.

Definition at line 46 of file opt.hpp.

◆ propagate()

template<class Box >
ExecStatus Gecode::Int::NoOverlap::OptProp< Box >::propagate ( Space & home,
const ModEventDelta & med )
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 78 of file opt.hpp.

◆ copy()

template<class Box >
Actor * Gecode::Int::NoOverlap::OptProp< Box >::copy ( Space & home)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 72 of file opt.hpp.

◆ dispose()

template<class Box >
size_t Gecode::Int::NoOverlap::OptProp< Box >::dispose ( Space & home)
inlinevirtual

Destructor.

Reimplemented from Gecode::Int::NoOverlap::Base< Box >.

Definition at line 57 of file opt.hpp.

Member Data Documentation

◆ m

template<class Box >
int Gecode::Int::NoOverlap::OptProp< Box >::m
protected

Number of optional boxes: b[n] ... b[n+m-1].

Definition at line 299 of file no-overlap.hh.


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