Generated on Sat Feb 7 2015 02:01:47 for Gecode by doxygen 1.8.9.1
Gecode::Int::Cumulatives::Event Class Reference

An event collects the information for one evnet for the sweep-line. More...

#include <val.hpp>

Public Member Functions

 Event (ev_t _e, int _task, int _date, int _inc=0, bool _first_prof=false)
 Simple constructor. More...
 
 Event (void)
 
bool operator< (const Event &ev) const
 Order events based on date. More...
 

Public Attributes

ev_t e
 The type of the event. More...
 
int task
 The task this event refers to. More...
 
int date
 The date of this event. More...
 
int inc
 The quantity changed by this event (if any) More...
 
bool first_prof
 

Detailed Description

An event collects the information for one evnet for the sweep-line.

Definition at line 125 of file val.hpp.

Constructor & Destructor Documentation

Gecode::Int::Cumulatives::Event::Event ( ev_t  _e,
int  _task,
int  _date,
int  _inc = 0,
bool  _first_prof = false 
)
inline

Simple constructor.

Definition at line 143 of file val.hpp.

Gecode::Int::Cumulatives::Event::Event ( void  )
inline

Definition at line 148 of file val.hpp.

Member Function Documentation

bool Gecode::Int::Cumulatives::Event::operator< ( const Event ev) const
inline

Order events based on date.

Definition at line 151 of file val.hpp.

Member Data Documentation

ev_t Gecode::Int::Cumulatives::Event::e

The type of the event.

Definition at line 129 of file val.hpp.

int Gecode::Int::Cumulatives::Event::task

The task this event refers to.

Definition at line 131 of file val.hpp.

int Gecode::Int::Cumulatives::Event::date

The date of this event.

Definition at line 133 of file val.hpp.

int Gecode::Int::Cumulatives::Event::inc

The quantity changed by this event (if any)

Definition at line 135 of file val.hpp.

bool Gecode::Int::Cumulatives::Event::first_prof

If the type is EVENT_PROF and it is the first of the pair, this value is true. Added to handle contribution-values correctly for both at_most and at_least.

Definition at line 140 of file val.hpp.


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