Generated on Sat Feb 7 2015 02:01:48 for Gecode by doxygen 1.8.9.1
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 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...
 
- Public Member Functions inherited from Gecode::Actor
virtual Actorcopy (Space &home, bool share)=0
 Create copy. 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...
 

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, 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 230 of file no-overlap.hh.

Constructor & Destructor Documentation

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.

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

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.

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.

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

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

Boxes.

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

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

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

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


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