Gecode::Int::NoOverlap::OptProp< Box > Class Template Reference
[Integer propagators]
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 Actor * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual size_t | dispose (Space &home) |
Destructor. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, Box *b, int n) |
Post propagator for boxes b. | |
Protected Member Functions | |
OptProp (Home home, Box *b, int n, int m) | |
Constructor for posting. | |
OptProp (Space &home, bool share, OptProp< Box > &p) | |
Constructor for cloning p. | |
Protected Attributes | |
int | m |
Number of optional boxes: b[n] ... b[n+m-1]. |
Detailed Description
template<class Box>
class Gecode::Int::NoOverlap::OptProp< Box >
No-overlap propagator for optional boxes.
Requires
#include <gecode/int/no-overlap.hh>
Definition at line 298 of file no-overlap.hh.
Constructor & Destructor Documentation
template<class Box >
Gecode::Int::NoOverlap::OptProp< Box >::OptProp | ( | Home | home, | |
Box * | b, | |||
int | n, | |||
int | m | |||
) | [inline, protected] |
template<class Box >
Gecode::Int::NoOverlap::OptProp< Box >::OptProp | ( | Space & | home, | |
bool | share, | |||
OptProp< Box > & | p | |||
) | [inline, protected] |
Member Function Documentation
template<class Box >
ExecStatus Gecode::Int::NoOverlap::OptProp< Box >::post | ( | Home | home, | |
Box * | b, | |||
int | n | |||
) | [inline, static] |
template<class Box >
ExecStatus Gecode::Int::NoOverlap::OptProp< Box >::propagate | ( | Space & | home, | |
const ModEventDelta & | med | |||
) | [inline, virtual] |
template<class Box >
Actor * Gecode::Int::NoOverlap::OptProp< Box >::copy | ( | Space & | home, | |
bool | share | |||
) | [inline, virtual] |
template<class Box >
size_t Gecode::Int::NoOverlap::OptProp< Box >::dispose | ( | Space & | home | ) | [inline, virtual] |
Destructor.
Reimplemented from Gecode::Int::NoOverlap::Base< Box >.
Member Data Documentation
template<class Box>
int Gecode::Int::NoOverlap::OptProp< Box >::m [protected] |
Number of optional boxes: b[n] ... b[n+m-1].
Definition at line 303 of file no-overlap.hh.
The documentation for this class was generated from the following files:
- gecode/int/no-overlap.hh (Revision: 15137)
- gecode/int/no-overlap/opt.hpp (Revision: 14967)