Generated on Tue Sep 25 2012 20:53:28 for Gecode by doxygen 1.7.5
Gecode::Int::TaskArray Class Reference

Task array. More...

#include <task.hh>

List of all members.

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.

Cloning

void update (Space &, bool share, TaskArray &a)
 Update array to be a clone of array a.

Detailed Description

Task array.


Constructor & Destructor Documentation

Gecode::Int::TaskArray::TaskArray ( void  ) [inline]

Default constructor (array of size 0)

Definition at line 46 of file array.hpp.

Gecode::Int::TaskArray::TaskArray ( Space home,
int  n 
) [inline]

Allocate memory for n tasks (no initialization)

Definition at line 50 of file array.hpp.

Gecode::Int::TaskArray::TaskArray ( const TaskArray< Task > &  a) [inline]

Initialize from task array a (share elements)

Definition at line 56 of file array.hpp.


Member Function Documentation

const TaskArray< Task > & Gecode::Int::TaskArray::operator= ( const TaskArray< Task > &  a) [inline]

Initialize from task array a (share elements)

Definition at line 60 of file array.hpp.

int Gecode::Int::TaskArray::size ( void  ) const [inline]

Return size of array (number of elements)

Definition at line 67 of file array.hpp.

void Gecode::Int::TaskArray::size ( int  n) [inline]

Set size of array (number of elements) to n, must not be larger.

Definition at line 72 of file array.hpp.

Task & Gecode::Int::TaskArray::operator[] ( int  i) [inline]

Return task at position i.

Definition at line 78 of file array.hpp.

const Task & Gecode::Int::TaskArray::operator[] ( int  i) const [inline]

Return task at position i.

Definition at line 84 of file array.hpp.

void Gecode::Int::TaskArray::subscribe ( Space home,
Propagator p,
PropCond  pc = Int::PC_INT_BND 
) [inline]

Subscribe propagator p to all tasks.

Definition at line 91 of file array.hpp.

void Gecode::Int::TaskArray::cancel ( Space home,
Propagator p,
PropCond  pc = Int::PC_INT_BND 
) [inline]

Cancel subscription of propagator p for all tasks.

Definition at line 98 of file array.hpp.

void Gecode::Int::TaskArray::update ( Space home,
bool  share,
TaskArray a 
) [inline]

Update array to be a clone of array a.

Definition at line 105 of file array.hpp.


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]

Print array elements enclosed in curly brackets.

Definition at line 114 of file array.hpp.


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