Task view array.
More...
#include <task.hh>
List of all members.
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
Member Typedef Documentation
The underlying task type.
Definition at line 236 of file task.hh.
Constructor & Destructor Documentation
Gecode::Int::TaskViewArray::TaskViewArray |
( |
TaskArray< Task > & |
t | ) |
[inline] |
Initialize from task array a.
Definition at line 134 of file array.hpp.
Member Function Documentation
int Gecode::Int::TaskViewArray::size |
( |
void |
| ) |
const [inline] |
Return size of array (number of elements)
Definition at line 139 of file array.hpp.
void Gecode::Int::TaskViewArray::size |
( |
int |
n | ) |
[inline] |
Set size of array (number of elements) to n, must not be larger.
Definition at line 145 of file array.hpp.
TaskView & Gecode::Int::TaskViewArray::operator[] |
( |
int |
i | ) |
[inline] |
Return task view at position i.
Definition at line 151 of file array.hpp.
const TaskView & Gecode::Int::TaskViewArray::operator[] |
( |
int |
i | ) |
const [inline] |
Return task view at position i.
Definition at line 156 of file array.hpp.
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] |
Print array elements enclosed in curly brackets.
Definition at line 162 of file array.hpp.
Member Data Documentation
Access to task array.
Definition at line 238 of file task.hh.
The documentation for this class was generated from the following files: