Generated on for Gecode by doxygen 1.17.0
Gecode::Int::Cumulatives::Event Class Reference

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

#include <gecode/int/cumulatives/val.hpp>

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Definition at line 130 of file val.hpp.

Constructor & Destructor Documentation

◆ Event() [1/2]

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

Simple constructor.

Definition at line 142 of file val.hpp.

◆ Event() [2/2]

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

Definition at line 147 of file val.hpp.

Member Function Documentation

◆ operator<()

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

Order events based on date.

Definition at line 150 of file val.hpp.

Member Data Documentation

◆ e

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

The type of the event.

Definition at line 134 of file val.hpp.

◆ task

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

The task this event refers to.

Definition at line 136 of file val.hpp.

◆ date

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

The date of this event.

Definition at line 138 of file val.hpp.

◆ inc

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

The quantity changed by this event (if any).

Definition at line 140 of file val.hpp.


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