Generated on Sat Feb 12 2011 17:41:22 for Gecode by doxygen 1.7.3

Gecode::Int::Branch::PosValuesChoice< ViewSel, View > Class Template Reference

Choice storing position and values More...

#include <select-values.hpp>

List of all members.

Public Member Functions

 PosValuesChoice (const Brancher &b, const Pos &p, const typename ViewSel::Choice &viewc, View x)
 Initialize choice for brancher b, position p, view choice viewc, and view x.
int val (unsigned int a) const
 Return value to branch with for alternative a.
virtual size_t size (void) const
 Report size occupied.
virtual ~PosValuesChoice (void)
 Deallocate.

Detailed Description

template<class ViewSel, class View>
class Gecode::Int::Branch::PosValuesChoice< ViewSel, View >

Choice storing position and values

The maximal number of alternatives is defined by alt.

Definition at line 46 of file select-values.hpp.


Constructor & Destructor Documentation

template<class ViewSel , class View >
Gecode::Int::Branch::PosValuesChoice< ViewSel, View >::PosValuesChoice ( const Brancher b,
const Pos p,
const typename ViewSel::Choice &  viewc,
View  x 
) [inline]

Initialize choice for brancher b, position p, view choice viewc, and view x.

Definition at line 76 of file select-values.hpp.

template<class ViewSel , class View >
Gecode::Int::Branch::PosValuesChoice< ViewSel, View >::~PosValuesChoice ( void  ) [virtual]

Deallocate.

Definition at line 118 of file select-values.hpp.


Member Function Documentation

template<class ViewSel , class View >
int Gecode::Int::Branch::PosValuesChoice< ViewSel, View >::val ( unsigned int  a) const [inline]

Return value to branch with for alternative a.

Definition at line 94 of file select-values.hpp.

template<class ViewSel , class View >
size_t Gecode::Int::Branch::PosValuesChoice< ViewSel, View >::size ( void  ) const [virtual]

Report size occupied.

Reimplemented from Gecode::PosChoice< ViewSel >.

Definition at line 113 of file select-values.hpp.


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