Generated on Sat Feb 7 2015 02:01:46 for Gecode by doxygen 1.8.9.1
Gecode::Int::Cumulative::OmegaLambdaTree< TaskView > Class Template Reference

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

#include <cumulative.hh>

Public Member Functions

 OmegaLambdaTree (Region &r, int c, const TaskViewArray< TaskView > &t)
 Initialize tree for tasks t and capcity c with all tasks included in omega. More...
 
void shift (int i)
 Shift task with index i from omega to lambda. More...
 
void lremove (int i)
 Remove task with index i from lambda. More...
 
bool lempty (void) const
 Whether has responsible task. More...
 
int responsible (void) const
 Return responsible task. More...
 
long long int env (void) const
 Return energy envelope of all tasks. More...
 
long long int lenv (void) const
 Return energy envelope of all tasks excluding lambda tasks. More...
 

Protected Attributes

int c
 Capacity. More...
 
- Protected Attributes inherited from Gecode::Int::TaskTree< TaskView, OmegaLambdaNode >
const TaskViewArray< TaskView > & tasks
 The tasks from which the tree is computed. More...
 
OmegaLambdaNode * node
 Task nodes. More...
 
int * _leaf
 Map task number to leaf node number in right order. More...
 

Additional Inherited Members

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

Detailed Description

template<class TaskView>
class Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >

Omega-lambda trees for computing ect of task sets.

Definition at line 649 of file cumulative.hh.

Constructor & Destructor Documentation

template<class TaskView >
Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::OmegaLambdaTree ( Region r,
int  c,
const TaskViewArray< TaskView > &  t 
)

Initialize tree for tasks t and capcity c with all tasks included in omega.

Definition at line 208 of file tree.hpp.

Member Function Documentation

template<class TaskView >
void Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::shift ( int  i)
inline

Shift task with index i from omega to lambda.

Definition at line 225 of file tree.hpp.

template<class TaskView >
void Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::lremove ( int  i)
inline

Remove task with index i from lambda.

Definition at line 239 of file tree.hpp.

template<class TaskView >
bool Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::lempty ( void  ) const
inline

Whether has responsible task.

Definition at line 252 of file tree.hpp.

template<class TaskView >
int Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::responsible ( void  ) const
inline

Return responsible task.

Definition at line 258 of file tree.hpp.

template<class TaskView >
long long int Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::env ( void  ) const
inline

Return energy envelope of all tasks.

Definition at line 264 of file tree.hpp.

template<class TaskView >
long long int Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::lenv ( void  ) const
inline

Return energy envelope of all tasks excluding lambda tasks.

Definition at line 270 of file tree.hpp.

Member Data Documentation

template<class TaskView>
int Gecode::Int::Cumulative::OmegaLambdaTree< TaskView >::c
protected

Capacity.

Definition at line 657 of file cumulative.hh.


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