Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Task Struct Reference

Task with priority for job scheduling. More...

Collaboration diagram for Task:
[legend]

Public Member Functions

 Task ()
 
 Task (const string &n, int p, int d)
 
bool operator< (const Task &other) const
 
bool operator> (const Task &other) const
 

Public Attributes

string name
 
int priority
 
int duration_ms
 

Detailed Description

Task with priority for job scheduling.

Definition at line 220 of file heap_example.C.

Constructor & Destructor Documentation

◆ Task() [1/2]

Task::Task ( )
inline

Definition at line 226 of file heap_example.C.

◆ Task() [2/2]

Task::Task ( const string &  n,
int  p,
int  d 
)
inline

Definition at line 227 of file heap_example.C.

Member Function Documentation

◆ operator<()

bool Task::operator< ( const Task other) const
inline

Definition at line 229 of file heap_example.C.

References Aleph::maps(), and priority.

◆ operator>()

bool Task::operator> ( const Task other) const
inline

Definition at line 230 of file heap_example.C.

References Aleph::maps(), and priority.

Member Data Documentation

◆ duration_ms

int Task::duration_ms

Definition at line 224 of file heap_example.C.

Referenced by operator<<().

◆ name

string Task::name

Definition at line 222 of file heap_example.C.

Referenced by operator<<().

◆ priority

int Task::priority

Definition at line 223 of file heap_example.C.

Referenced by operator<(), operator<<(), and operator>().


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