Gecode::Int::Element::IdxViewArray< View > Class Template Reference
An array of IndexView pairs. More...
#include <element.hh>
Public Member Functions | |
IdxViewArray (void) | |
Default constructor. | |
IdxViewArray (const IdxViewArray< View > &) | |
Copy constructor. | |
IdxViewArray (Space &home, const typename ViewToVarArg< View >::argtype &x) | |
Construct an IdxViewArray from x. | |
IdxViewArray (Space &home, int n) | |
Construct an IdxViewArray of size n. | |
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. |
Detailed Description
template<class View>
class Gecode::Int::Element::IdxViewArray< View >
An array of IndexView pairs.
Definition at line 214 of file element.hh.
Constructor & Destructor Documentation
template<class View >
Gecode::Int::Element::IdxViewArray< View >::IdxViewArray | ( | void | ) | [inline] |
template<class View>
Gecode::Int::Element::IdxViewArray< View >::IdxViewArray | ( | const IdxViewArray< View > & | a | ) | [inline] |
template<class View>
Gecode::Int::Element::IdxViewArray< View >::IdxViewArray | ( | Space & | home, | |
const typename ViewToVarArg< View >::argtype & | x | |||
) | [inline] |
Construct an IdxViewArray from x.
template<class View>
Gecode::Int::Element::IdxViewArray< View >::IdxViewArray | ( | Space & | home, | |
int | n | |||
) | [inline] |
Construct an IdxViewArray of size n.
Member Function Documentation
template<class View >
int Gecode::Int::Element::IdxViewArray< View >::size | ( | void | ) | const [inline] |
template<class View >
void Gecode::Int::Element::IdxViewArray< View >::size | ( | int | n | ) | [inline] |
template<class View >
IdxView< View > & Gecode::Int::Element::IdxViewArray< View >::operator[] | ( | int | n | ) | [inline] |
template<class View >
const IdxView< View > & Gecode::Int::Element::IdxViewArray< View >::operator[] | ( | int | i | ) | const [inline] |
template<class View >
void Gecode::Int::Element::IdxViewArray< View >::subscribe | ( | Space & | home, | |
Propagator & | p, | |||
PropCond | pc, | |||
bool | process = true | |||
) | [inline] |
template<class View >
void Gecode::Int::Element::IdxViewArray< View >::cancel | ( | Space & | home, | |
Propagator & | p, | |||
PropCond | pc | |||
) | [inline] |
template<class View>
void Gecode::Int::Element::IdxViewArray< View >::update | ( | Space & | home, | |
bool | share, | |||
IdxViewArray< View > & | x | |||
) | [inline] |
The documentation for this class was generated from the following files:
- gecode/int/element.hh (Revision: 10846)
- gecode/int/element/view.hpp (Revision: 12253)