Generated on Wed Nov 1 15:05:25 2006 for Gecode by doxygen 1.4.5

Gecode::Set::Select::IdxViewArray< View > Class Template Reference

#include <idxarray.hh>

List of all members.


Detailed Description

template<class View>
class Gecode::Set::Select::IdxViewArray< View >

An array of IndexView pairs.

Definition at line 46 of file idxarray.hh.

Public Member Functions

 IdxViewArray (void)
 Default constructor.
 IdxViewArray (const IdxViewArray< View > &)
 Copy constructor.
 IdxViewArray (Space *home, const SetVarArgs &x)
 Construct an IdxViewArray from x.
int size (void) const
 Return the current size.
void size (int n)
 Set the size to n.
IdxView< View > & operator[] (int n)
 Access element n.
const IdxView< View > & operator[] (int) const
 Access element n.
void subscribe (Space *home, Propagator *p, PropCond pc, bool process=true)
void cancel (Space *home, Propagator *p, PropCond pc)
void update (Space *home, bool share, IdxViewArray< View > &x)
 Cloning.


Constructor & Destructor Documentation

template<class View>
Gecode::Set::Select::IdxViewArray< View >::IdxViewArray void   ) 
 

Default constructor.

Definition at line 34 of file idxarray.icc.

template<class View>
Gecode::Set::Select::IdxViewArray< View >::IdxViewArray const IdxViewArray< View > &   ) 
 

Copy constructor.

Definition at line 37 of file idxarray.icc.

template<class View>
Gecode::Set::Select::IdxViewArray< View >::IdxViewArray Space home,
const SetVarArgs x
 

Construct an IdxViewArray from x.

Definition at line 42 of file idxarray.icc.


Member Function Documentation

template<class View>
int Gecode::Set::Select::IdxViewArray< View >::size void   )  const [inline]
 

Return the current size.

Definition at line 57 of file idxarray.icc.

template<class View>
void Gecode::Set::Select::IdxViewArray< View >::size int  n  )  [inline]
 

Set the size to n.

Definition at line 63 of file idxarray.icc.

template<class View>
IdxView< View > & Gecode::Set::Select::IdxViewArray< View >::operator[] int  n  )  [inline]
 

Access element n.

Definition at line 69 of file idxarray.icc.

template<class View>
const IdxView< View > & Gecode::Set::Select::IdxViewArray< View >::operator[] int   )  const [inline]
 

Access element n.

Definition at line 76 of file idxarray.icc.

template<class View>
void Gecode::Set::Select::IdxViewArray< View >::subscribe Space home,
Propagator p,
PropCond  pc,
bool  process = true
 

Subscribe propagator p with propagation condition pc to all elements of the array.

Definition at line 83 of file idxarray.icc.

template<class View>
void Gecode::Set::Select::IdxViewArray< View >::cancel Space home,
Propagator p,
PropCond  pc
 

Cancel subscription of propagator p with propagation condition pc for all elements of the array.

Definition at line 91 of file idxarray.icc.

template<class View>
void Gecode::Set::Select::IdxViewArray< View >::update Space home,
bool  share,
IdxViewArray< View > &  x
 

Cloning.

Definition at line 98 of file idxarray.icc.


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