Gecode::Set::Select::IdxViewArray< View > Class Template Reference
#include <idxarray.hh>
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) |
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 | ) |
template<class View>
Gecode::Set::Select::IdxViewArray< View >::IdxViewArray | ( | const IdxViewArray< View > & | ) |
template<class View>
Gecode::Set::Select::IdxViewArray< View >::IdxViewArray | ( | Space * | home, | |
const SetVarArgs & | x | |||
) |
Member Function Documentation
template<class View>
int Gecode::Set::Select::IdxViewArray< View >::size | ( | void | ) | const [inline] |
template<class View>
void Gecode::Set::Select::IdxViewArray< View >::size | ( | int | n | ) | [inline] |
template<class View>
IdxView< View > & Gecode::Set::Select::IdxViewArray< View >::operator[] | ( | int | n | ) | [inline] |
template<class View>
const IdxView< View > & Gecode::Set::Select::IdxViewArray< View >::operator[] | ( | int | ) | const [inline] |
template<class View>
void Gecode::Set::Select::IdxViewArray< View >::subscribe | ( | Space * | home, | |
Propagator * | p, | |||
PropCond | pc | |||
) |
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 90 of file idxarray.icc.
template<class View>
void Gecode::Set::Select::IdxViewArray< View >::update | ( | Space * | home, | |
bool | share, | |||
IdxViewArray< View > & | x | |||
) |
The documentation for this class was generated from the following files:
- gecode/set/select/idxarray.hh (Revision: 3236)
- gecode/set/select/idxarray.icc (Revision: 3236)