Gecode::Int::TaskViewArray< TaskView > Class Template Reference
Task view array. More...
#include <task.hh>
Protected Types | |
typedef TaskViewTraits < TaskView >::Task | Task |
The underlying task type. | |
Protected Attributes | |
TaskArray< Task > & | t |
Access to task array. | |
Related Functions | |
(Note that these are not member functions.) | |
template<class Char , class Traits , class TaskView > | |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const TaskViewArray< TaskView > &t) |
Print array elements enclosed in curly brackets. | |
Constructors and initialization | |
| |
TaskViewArray (TaskArray< Task > &t) | |
Initialize from task array a. | |
Array information | |
| |
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 | |
| |
TaskView & | operator[] (int i) |
Return task view at position i. | |
const TaskView & | operator[] (int i) const |
Return task view at position i. |
Detailed Description
template<class TaskView>
class Gecode::Int::TaskViewArray< TaskView >
Task view array.
Definition at line 233 of file task.hh.
Member Typedef Documentation
template<class TaskView>
typedef TaskViewTraits<TaskView>::Task Gecode::Int::TaskViewArray< TaskView >::Task [protected] |
Constructor & Destructor Documentation
template<class TaskView >
Gecode::Int::TaskViewArray< TaskView >::TaskViewArray | ( | TaskArray< Task > & | t | ) | [inline] |
Member Function Documentation
template<class TaskView >
int Gecode::Int::TaskViewArray< TaskView >::size | ( | void | ) | const [inline] |
template<class TaskView >
void Gecode::Int::TaskViewArray< TaskView >::size | ( | int | n | ) | [inline] |
template<class TaskView >
TaskView & Gecode::Int::TaskViewArray< TaskView >::operator[] | ( | int | i | ) | [inline] |
template<class TaskView >
const TaskView & Gecode::Int::TaskViewArray< TaskView >::operator[] | ( | int | i | ) | const [inline] |
Friends And Related Function Documentation
template<class Char , class Traits , class TaskView >
std::basic_ostream< Char, Traits > & operator<< | ( | std::basic_ostream< Char, Traits > & | os, | |
const TaskViewArray< TaskView > & | t | |||
) | [related] |
Member Data Documentation
template<class TaskView>
TaskArray<Task>& Gecode::Int::TaskViewArray< TaskView >::t [protected] |
The documentation for this class was generated from the following files:
- gecode/int/task.hh (Revision: 12176)
- gecode/int/task/array.hpp (Revision: 12022)