Generated on Mon Sep 22 2014 12:49:40 for Gecode by doxygen 1.8.7
Gecode::Int::Element::IdxViewArray< View > Class Template Reference

An array of IndexView pairs. More...

#include <element.hh>

Public Member Functions

 IdxViewArray (void)
 Default constructor. More...
 
 IdxViewArray (const IdxViewArray< View > &)
 Copy constructor. More...
 
 IdxViewArray (Space &home, const typename ViewToVarArg< View >::argtype &x)
 Construct an IdxViewArray from x. More...
 
 IdxViewArray (Space &home, int n)
 Construct an IdxViewArray of size n. More...
 
int size (void) const
 Return the current size. More...
 
void size (int n)
 Set the size to n. More...
 
IdxView< View > & operator[] (int n)
 Access element n. More...
 
const IdxView< View > & operator[] (int) const
 Access element n. More...
 
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. More...
 

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  )

Default constructor.

Definition at line 78 of file view.hpp.

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

Copy constructor.

Definition at line 81 of file view.hpp.

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

Construct an IdxViewArray from x.

Definition at line 86 of file view.hpp.

template<class View>
Gecode::Int::Element::IdxViewArray< View >::IdxViewArray ( Space home,
int  n 
)

Construct an IdxViewArray of size n.

Definition at line 98 of file view.hpp.

Member Function Documentation

template<class View >
int Gecode::Int::Element::IdxViewArray< View >::size ( void  ) const
inline

Return the current size.

Definition at line 107 of file view.hpp.

template<class View >
void Gecode::Int::Element::IdxViewArray< View >::size ( int  n)
inline

Set the size to n.

Definition at line 113 of file view.hpp.

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

Access element n.

Definition at line 119 of file view.hpp.

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

Access element n.

Definition at line 126 of file view.hpp.

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

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

template<class View>
void Gecode::Int::Element::IdxViewArray< View >::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: