Programming views for variables
Functionality by programming task » Programming variables

## Classes

class | Gecode::Var
| Base class for variables. More...
class | Gecode::VarImpVar< VarImp >
| Variables as interfaces to variable implementations. More...
class | Gecode::ConstView< View >
| Base-class for constant views. More...
class | Gecode::VarImpView< Var >
| Base-class for variable implementation views. More...
class | Gecode::DerivedView< View >
| Base-class for derived views. More...

## Functions

template<class ViewA, class ViewB>
bool | Gecode::shared (const ConstView< ViewA > &, const ConstView< ViewB > &)
| Test whether views share same variable.
template<class Var, class View>
bool | Gecode::shared (const VarImpView< Var > &, const ConstView< View > &)
| Test whether views share same variable.
template<class ViewA, class ViewB>
bool | Gecode::shared (const DerivedView< ViewA > &, const ConstView< ViewB > &)
| Test whether views share same variable.
template<class View, class Var>
bool | Gecode::shared (const ConstView< View > &, const VarImpView< Var > &)
| Test whether views share same variable.
template<class ViewA, class ViewB>
bool | Gecode::shared (const ConstView< ViewA > &, const DerivedView< ViewB > &)
| Test whether views share same variable.
template<class VarA, class VarB>
bool | Gecode::shared (const VarImpView< VarA > &, const VarImpView< VarB > &)
| Test whether views share same variable.
template<class Var, class View>
bool | Gecode::shared (const VarImpView< Var > &, const DerivedView< View > &)
| Test whether views share same variable.
template<class View, class Var>
bool | Gecode::shared (const DerivedView< View > &, const VarImpView< Var > &)
| Test whether views share same variable.
template<class ViewA, class ViewB>
bool | Gecode::shared (const DerivedView< ViewA > &, const DerivedView< ViewB > &)
| Test whether views share same variable.

## Detailed Description

## Function Documentation

## shared() [1/9]

template<class ViewA, class ViewB>

bool Gecode::shared | ( | const ConstView< ViewA > & | ,
|  | const ConstView< ViewB > & | )

inline

Test whether views share same variable.

Definition at line 814 of file view.hpp.

## shared() [2/9]

template<class Var, class View>

bool Gecode::shared | ( | const VarImpView< Var > & | ,
|  | const ConstView< View > & | )

inline

Test whether views share same variable.

Definition at line 819 of file view.hpp.

## shared() [3/9]

template<class ViewA, class ViewB>

bool Gecode::shared | ( | const DerivedView< ViewA > & | ,
|  | const ConstView< ViewB > & | )

inline

Test whether views share same variable.

Definition at line 824 of file view.hpp.

## shared() [4/9]

template<class View, class Var>

bool Gecode::shared | ( | const ConstView< View > & | ,
|  | const VarImpView< Var > & | )

inline

Test whether views share same variable.

Definition at line 829 of file view.hpp.

## shared() [5/9]

template<class ViewA, class ViewB>

bool Gecode::shared | ( | const ConstView< ViewA > & | ,
|  | const DerivedView< ViewB > & | )

inline

Test whether views share same variable.

Definition at line 834 of file view.hpp.

## shared() [6/9]

template<class VarA, class VarB>

bool Gecode::shared | ( | const VarImpView< VarA > & | x,
|  | const VarImpView< VarB > & | y )

inline

Test whether views share same variable.

Definition at line 839 of file view.hpp.

## shared() [7/9]

template<class Var, class View>

bool Gecode::shared | ( | const VarImpView< Var > & | x,
|  | const DerivedView< View > & | y )

inline

Test whether views share same variable.

Definition at line 845 of file view.hpp.

## shared() [8/9]

template<class View, class Var>

bool Gecode::shared | ( | const DerivedView< View > & | x,
|  | const VarImpView< Var > & | y )

inline

Test whether views share same variable.

Definition at line 852 of file view.hpp.

## shared() [9/9]

template<class ViewA, class ViewB>

bool Gecode::shared | ( | const DerivedView< ViewA > & | x,
|  | const DerivedView< ViewB > & | y )

inline

Test whether views share same variable.

Definition at line 859 of file view.hpp.