Generated on Mon Aug 25 11:35:49 2008 for Gecode by doxygen 1.5.6

Gecode::PosValDesc< Val, alt > Class Template Reference
[Generic branching based on view and value selection]

Inherits Gecode::BranchingDesc.

List of all members.


Detailed Description

template<class Val, unsigned int alt>
class Gecode::PosValDesc< Val, alt >

Branching descriptions storing position and value

The maximal number of alternatives is defined by alt.

Definition at line 174 of file branching.icc.


Public Member Functions

 PosValDesc (const Branching *b, const int p, const Val &n)
 Initialize description for branching b, position p, value n, and start position s.
int pos (void) const
 Return position in array.
Val val (void) const
 Return value to branch with.
virtual size_t size (void) const
 Report size occupied.

Protected Attributes

const int _pos
 Position of view.
const Val _val
 Value to assign to.

Constructor & Destructor Documentation

template<class Val, unsigned int alt>
Gecode::PosValDesc< Val, alt >::PosValDesc ( const Branching b,
const int  p,
const Val n 
) [inline]

Initialize description for branching b, position p, value n, and start position s.

The start position can be used in the commit function to eliminate assigned variables from the array.

Definition at line 209 of file branching.icc.


Member Function Documentation

template<class Val, unsigned int alt>
int Gecode::PosValDesc< Val, alt >::pos ( void   )  const [inline]

Return position in array.

Definition at line 215 of file branching.icc.

template<class Val, unsigned int alt>
Val Gecode::PosValDesc< Val, alt >::val ( void   )  const [inline]

Return value to branch with.

Definition at line 221 of file branching.icc.

template<class Val, unsigned int alt>
size_t Gecode::PosValDesc< Val, alt >::size ( void   )  const [inline, virtual]

Report size occupied.

Implements Gecode::BranchingDesc.

Definition at line 227 of file branching.icc.


Member Data Documentation

template<class Val, unsigned int alt>
const int Gecode::PosValDesc< Val, alt >::_pos [protected]

Position of view.

Definition at line 177 of file branching.icc.

template<class Val, unsigned int alt>
const Val Gecode::PosValDesc< Val, alt >::_val [protected]

Value to assign to.

Definition at line 179 of file branching.icc.


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