Generated on Sat Feb 7 2015 02:01:44 for Gecode by doxygen 1.8.9.1
Gecode::Int::TaskProp< Task, pc > Class Template Reference

Propagator for tasks More...

#include <task.hh>

Public Member Functions

virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as high linear) More...
 
virtual size_t dispose (Space &home)
 Delete propagator and return its size. 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

 TaskProp (Home home, TaskArray< Task > &t)
 Constructor for creation. More...
 
 TaskProp (Space &home, bool shared, TaskProp< Task, pc > &p)
 Constructor for cloning p. 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...
 

Protected Attributes

TaskArray< Task > t
 Tasks. 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 Task, PropCond pc>
class Gecode::Int::TaskProp< Task, pc >

Propagator for tasks

Requires

#include <gecode/int/task.hh>

Definition at line 424 of file task.hh.

Constructor & Destructor Documentation

template<class Task, PropCond pc>
Gecode::Int::TaskProp< Task, pc >::TaskProp ( Home  home,
TaskArray< Task > &  t 
)
inlineprotected

Constructor for creation.

Definition at line 42 of file prop.hpp.

template<class Task, PropCond pc>
Gecode::Int::TaskProp< Task, pc >::TaskProp ( Space home,
bool  shared,
TaskProp< Task, pc > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 49 of file prop.hpp.

Member Function Documentation

template<class Task , PropCond pc>
PropCost Gecode::Int::TaskProp< Task, pc >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as high linear)

Implements Gecode::Propagator.

Definition at line 56 of file prop.hpp.

template<class Task , PropCond pc>
size_t Gecode::Int::TaskProp< Task, pc >::dispose ( Space home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Reimplemented in Gecode::Int::Cumulative::OptProp< OptTask, Cap >, and Gecode::Int::Cumulative::ManProp< ManTask, Cap >.

Definition at line 62 of file prop.hpp.

Member Data Documentation

template<class Task, PropCond pc>
TaskArray<Task> Gecode::Int::TaskProp< Task, pc >::t
protected

Tasks.

Definition at line 427 of file task.hh.


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