Generated on Thu Mar 16 2017 03:24:32 for Gecode by doxygen 1.8.13
Gecode::Int::NoOverlap::Base< Box > Class Template Reference

Base class for no-overlap propagator. More...

#include <no-overlap.hh>

Public Member Functions

virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function. More...
 
virtual void reschedule (Space &home)
 Schedule function. More...
 
virtual size_t dispose (Space &home)
 Destructor. More...
 
- Public Member Functions inherited from Gecode::Propagator
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)=0
 Propagation function. More...
 
ModEventDelta modeventdelta (void) const
 Return the modification event delta. More...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function. More...
 
double afc (const Space &home) 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...
 
void kill (Space &home)
 Kill propagator. More...
 
void disable (void)
 Disable propagator. More...
 
void enable (void)
 Enable propagator. More...
 
- Public Member Functions inherited from Gecode::Actor
virtual Actorcopy (Space &home, bool share)=0
 Create copy. More...
 
virtual ~Actor (void)
 To avoid warnings. More...
 

Protected Member Functions

 Base (Home home, Box *b, int n)
 Constructor for posting with n mandatory boxes. More...
 
 Base (Space &home, bool share, Base< Box > &p, int m)
 Constructor for cloning p with m boxes. 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...
 

Static Protected Member Functions

static int partition (Box *b, int i, int n)
 Partition n boxes b starting at position i. More...
 

Protected Attributes

Box * b
 Boxes. More...
 
int n
 Number of mandatory boxes: b[0] ... b[n-1]. More...
 

Additional Inherited Members

- 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...
 

Detailed Description

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

Base class for no-overlap propagator.

Requires

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

Constructor & Destructor Documentation

◆ Base() [1/2]

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

Constructor for posting with n mandatory boxes.

Definition at line 42 of file base.hpp.

◆ Base() [2/2]

template<class Box >
Gecode::Int::NoOverlap::Base< Box >::Base ( Space home,
bool  share,
Base< Box > &  p,
int  m 
)
inlineprotected

Constructor for cloning p with m boxes.

Definition at line 73 of file base.hpp.

Member Function Documentation

◆ partition()

template<class Box >
int Gecode::Int::NoOverlap::Base< Box >::partition ( Box *  b,
int  i,
int  n 
)
inlinestaticprotected

Partition n boxes b starting at position i.

Returns the number of mandatory boxes at the front of b.

Definition at line 50 of file base.hpp.

◆ cost()

template<class Box >
PropCost Gecode::Int::NoOverlap::Base< Box >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function.

Implements Gecode::Propagator.

Definition at line 81 of file base.hpp.

◆ reschedule()

template<class Box >
void Gecode::Int::NoOverlap::Base< Box >::reschedule ( Space home)
virtual

Schedule function.

Implements Gecode::Propagator.

Definition at line 87 of file base.hpp.

◆ dispose()

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

Destructor.

Reimplemented from Gecode::Actor.

Reimplemented in Gecode::Int::NoOverlap::OptProp< Box >, and Gecode::Int::NoOverlap::ManProp< Box >.

Definition at line 63 of file base.hpp.

Member Data Documentation

◆ b

template<class Box>
Box* Gecode::Int::NoOverlap::Base< Box >::b
protected

Boxes.

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

◆ n

template<class Box>
int Gecode::Int::NoOverlap::Base< Box >::n
protected

Number of mandatory boxes: b[0] ... b[n-1].

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


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