Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0
Gecode::Int::Unary::OmegaTree< TaskView > Class Template Reference

Omega trees for computing ect of task sets. More...

#include <unary.hh>

Public Member Functions

 OmegaTree (Region &r, const TaskViewArray< TaskView > &t)
 Initialize tree for tasks t.
void insert (int i)
 Insert task with index i.
void remove (int i)
 Remove task with index i.
int ect (void) const
 Return earliest completion time of all tasks.
int ect (int i) const
 Return earliest completion time of all tasks but i.

Additional Inherited Members

Protected Member Functions inherited from Gecode::Int::TaskTree< TaskView, OmegaNode >
int n_inner (void) const
 Return number of inner nodes.
int n_nodes (void) const
 Return number of nodes for balanced binary tree.
bool n_leaf (int i) const
 Whether node i is leaf.
OmegaNode & leaf (int i)
 Return leaf for task i.
const OmegaNode & root (void) const
 Return root node.
void update (int i, bool l=true)
 Update tree after leaf for task i has changed (l whether i refers to a leaf)
void init (void)
 Initialize tree after leaves have been initialized.
 TaskTree (Region &r, const TaskViewArray< TaskView > &t)
 Initialize tree for tasks t.
Static Protected Member Functions inherited from Gecode::Int::TaskTree< TaskView, OmegaNode >
static bool n_root (int i)
 Whether node i is index of root.
static int n_left (int i)
 Return index of left child of node i.
static bool left (int i)
 Test whether node i is a left child.
static int n_right (int i)
 Return index of right child of node i.
static bool right (int i)
 Test whether node i is a right child.
static int n_parent (int i)
 Return index of parent of node i.
Protected Attributes inherited from Gecode::Int::TaskTree< TaskView, OmegaNode >
const TaskViewArray< TaskView > & tasks
 The tasks from which the tree is computed.
OmegaNode * node
 Task nodes.
int * _leaf
 Map task number to leaf node number in right order.

Detailed Description

template<class TaskView>
class Gecode::Int::Unary::OmegaTree< TaskView >

Omega trees for computing ect of task sets.

Definition at line 674 of file unary.hh.

Constructor & Destructor Documentation

◆ OmegaTree()

template<class TaskView>
Gecode::Int::Unary::OmegaTree< TaskView >::OmegaTree ( Region & r,
const TaskViewArray< TaskView > & t )
inline

Initialize tree for tasks t.

Definition at line 55 of file tree.hpp.

Member Function Documentation

◆ insert()

template<class TaskView>
void Gecode::Int::Unary::OmegaTree< TaskView >::insert ( int i)
inline

Insert task with index i.

Definition at line 65 of file tree.hpp.

◆ remove()

template<class TaskView>
void Gecode::Int::Unary::OmegaTree< TaskView >::remove ( int i)
inline

Remove task with index i.

Definition at line 73 of file tree.hpp.

◆ ect() [1/2]

template<class TaskView>
int Gecode::Int::Unary::OmegaTree< TaskView >::ect ( void ) const
inline

Return earliest completion time of all tasks.

Definition at line 80 of file tree.hpp.

◆ ect() [2/2]

template<class TaskView>
int Gecode::Int::Unary::OmegaTree< TaskView >::ect ( int i) const
inline

Return earliest completion time of all tasks but i.

Definition at line 86 of file tree.hpp.


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