Gecode::Int::TaskArray< Task > Class Template Reference
Task array. More...
#include <task.hh>
Related Functions | |
(Note that these are not member functions.) | |
| template<class Char , class Traits , class Task > | |
| std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const TaskArray< Task > &t) |
| Print array elements enclosed in curly brackets. | |
Constructors and initialization | |
|
| |
| TaskArray (void) | |
| Default constructor (array of size 0). | |
| TaskArray (Space &home, int n) | |
| Allocate memory for n tasks (no initialization). | |
| TaskArray (const TaskArray< Task > &a) | |
| Initialize from task array a (share elements). | |
| const TaskArray< Task > & | operator= (const TaskArray< Task > &a) |
| Initialize from task array a (share elements). | |
Array size | |
|
| |
| int | size (void) const |
| Return size of array (number of elements). | |
| void | size (int n) |
| Set size of array (number of elements) to n, must not be larger. | |
Array elements | |
|
| |
| Task & | operator[] (int i) |
| Return task at position i. | |
| const Task & | operator[] (int i) const |
| Return task at position i. | |
Dependencies | |
|
| |
| void | subscribe (Space &home, Propagator &p, PropCond pc=Int::PC_INT_BND) |
| Subscribe propagator p to all tasks. | |
| void | cancel (Space &home, Propagator &p, PropCond pc=Int::PC_INT_BND) |
| Cancel subscription of propagator p for all tasks. | |
| void | reschedule (Space &home, Propagator &p, PropCond pc=Int::PC_INT_BND) |
| Schedule propagator p. | |
Cloning | |
|
| |
| void | update (Space &, TaskArray &a) |
| Update array to be a clone of array a. | |
Detailed Description
template<class Task>
class Gecode::Int::TaskArray< Task >
Task array.
Definition at line 165 of file task.hh.
Constructor & Destructor Documentation
template<class Task >
| Gecode::Int::TaskArray< Task >::TaskArray | ( | void | ) | [inline] |
template<class Task >
| Gecode::Int::TaskArray< Task >::TaskArray | ( | Space & | home, | |
| int | n | |||
| ) | [inline] |
template<class Task>
| Gecode::Int::TaskArray< Task >::TaskArray | ( | const TaskArray< Task > & | a | ) | [inline] |
Member Function Documentation
template<class Task>
| const TaskArray< Task > & Gecode::Int::TaskArray< Task >::operator= | ( | const TaskArray< Task > & | a | ) | [inline] |
template<class Task >
| int Gecode::Int::TaskArray< Task >::size | ( | void | ) | const [inline] |
template<class Task >
| void Gecode::Int::TaskArray< Task >::size | ( | int | n | ) | [inline] |
template<class Task >
| Task & Gecode::Int::TaskArray< Task >::operator[] | ( | int | i | ) | [inline] |
template<class Task >
| const Task & Gecode::Int::TaskArray< Task >::operator[] | ( | int | i | ) | const [inline] |
template<class Task >
| void Gecode::Int::TaskArray< Task >::subscribe | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc = Int::PC_INT_BND | |||
| ) | [inline] |
template<class Task >
| void Gecode::Int::TaskArray< Task >::cancel | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc = Int::PC_INT_BND | |||
| ) | [inline] |
template<class Task >
| void Gecode::Int::TaskArray< Task >::reschedule | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc = Int::PC_INT_BND | |||
| ) | [inline] |
template<class Task >
| void Gecode::Int::TaskArray< Task >::update | ( | Space & | home, | |
| TaskArray< Task > & | a | |||
| ) | [inline] |
Friends And Related Function Documentation
template<class Char , class Traits , class Task >
| std::basic_ostream< Char, Traits > & operator<< | ( | std::basic_ostream< Char, Traits > & | os, | |
| const TaskArray< Task > & | t | |||
| ) | [related] |
The documentation for this class was generated from the following files:
