Generated on Sat Feb 7 2015 02:01:44 for Gecode by doxygen 1.8.9.1
Gecode::Int::ManToOptTask< ManTask > Class Template Reference

Class to define an optional from a mandatory task. More...

#include <task.hh>

Protected Attributes

Int::BoolView _m
 Boolean view whether task is mandatory (= 1) or not. More...
 

Constructors and initialization

 ManToOptTask (void)
 Default constructor. More...
 

Value access

bool mandatory (void) const
 Whether task is mandatory. More...
 
bool excluded (void) const
 Whether task is excluded. More...
 
bool optional (void) const
 Whether task can still be optional. More...
 
bool assigned (void) const
 Test whether task is assigned. More...
 

Value update

ModEvent mandatory (Space &home)
 Mark task as mandatory. More...
 
ModEvent excluded (Space &home)
 Mark task as excluded. More...
 

Cloning

void update (Space &home, bool share, ManToOptTask &t)
 Update this task to be a clone of task t. More...
 

Dependencies

void subscribe (Space &home, Propagator &p, PropCond pc)
 Subscribe propagator p to task. More...
 
void cancel (Space &home, Propagator &p, PropCond pc)
 Cancel subscription of propagator p for task. More...
 

Detailed Description

template<class ManTask>
class Gecode::Int::ManToOptTask< ManTask >

Class to define an optional from a mandatory task.

Definition at line 47 of file task.hh.

Constructor & Destructor Documentation

template<class ManTask >
Gecode::Int::ManToOptTask< ManTask >::ManToOptTask ( void  )
inline

Default constructor.

Definition at line 42 of file man-to-opt.hpp.

Member Function Documentation

template<class ManTask >
bool Gecode::Int::ManToOptTask< ManTask >::mandatory ( void  ) const
inline

Whether task is mandatory.

Definition at line 46 of file man-to-opt.hpp.

template<class ManTask >
bool Gecode::Int::ManToOptTask< ManTask >::excluded ( void  ) const
inline

Whether task is excluded.

Definition at line 51 of file man-to-opt.hpp.

template<class ManTask >
bool Gecode::Int::ManToOptTask< ManTask >::optional ( void  ) const
inline

Whether task can still be optional.

Definition at line 56 of file man-to-opt.hpp.

template<class ManTask >
bool Gecode::Int::ManToOptTask< ManTask >::assigned ( void  ) const
inline

Test whether task is assigned.

Definition at line 62 of file man-to-opt.hpp.

template<class ManTask >
ModEvent Gecode::Int::ManToOptTask< ManTask >::mandatory ( Space home)
inline

Mark task as mandatory.

Definition at line 68 of file man-to-opt.hpp.

template<class ManTask >
ModEvent Gecode::Int::ManToOptTask< ManTask >::excluded ( Space home)
inline

Mark task as excluded.

Definition at line 73 of file man-to-opt.hpp.

template<class ManTask >
void Gecode::Int::ManToOptTask< ManTask >::update ( Space home,
bool  share,
ManToOptTask< ManTask > &  t 
)
inline

Update this task to be a clone of task t.

Definition at line 79 of file man-to-opt.hpp.

template<class ManTask >
void Gecode::Int::ManToOptTask< ManTask >::subscribe ( Space home,
Propagator p,
PropCond  pc 
)
inline

Subscribe propagator p to task.

Definition at line 87 of file man-to-opt.hpp.

template<class ManTask >
void Gecode::Int::ManToOptTask< ManTask >::cancel ( Space home,
Propagator p,
PropCond  pc 
)
inline

Cancel subscription of propagator p for task.

Definition at line 93 of file man-to-opt.hpp.

Member Data Documentation

template<class ManTask>
Int::BoolView Gecode::Int::ManToOptTask< ManTask >::_m
protected

Boolean view whether task is mandatory (= 1) or not.

Definition at line 50 of file task.hh.


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