Generated on Tue Sep 25 2012 20:53:30 for Gecode by doxygen 1.7.5
Gecode::Int::Element::IdxViewArray Class Reference

An array of IndexView pairs. More...

#include <element.hh>

List of all members.

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

An array of IndexView pairs.


Constructor & Destructor Documentation

Gecode::Int::Element::IdxViewArray::IdxViewArray ( void  )

Default constructor.

Definition at line 78 of file view.hpp.

Gecode::Int::Element::IdxViewArray::IdxViewArray ( const IdxViewArray< View > &  a)

Copy constructor.

Definition at line 81 of file view.hpp.

Gecode::Int::Element::IdxViewArray::IdxViewArray ( Space home,
const typename ViewToVarArg< View >::argtype &  x 
)

Construct an IdxViewArray from x.

Definition at line 86 of file view.hpp.

Gecode::Int::Element::IdxViewArray::IdxViewArray ( Space home,
int  n 
)

Construct an IdxViewArray of size n.

Definition at line 98 of file view.hpp.


Member Function Documentation

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

Return the current size.

Definition at line 107 of file view.hpp.

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

Set the size to n.

Definition at line 113 of file view.hpp.

IdxView< View > & Gecode::Int::Element::IdxViewArray::operator[] ( int  n) [inline]

Access element n.

Definition at line 119 of file view.hpp.

const IdxView< View > & Gecode::Int::Element::IdxViewArray::operator[] ( int  i) const [inline]

Access element n.

Definition at line 126 of file view.hpp.

void Gecode::Int::Element::IdxViewArray::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 133 of file view.hpp.

void Gecode::Int::Element::IdxViewArray::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 141 of file view.hpp.

void Gecode::Int::Element::IdxViewArray::update ( Space home,
bool  share,
IdxViewArray< View > &  x 
)

Cloning.

Definition at line 148 of file view.hpp.


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