Generated on Fri Mar 20 12:35:19 2009 for cpsp-2.3.1 by doxygen 1.5.5

cpsp::gecode::GC_RankViewSel< VS > Class Template Reference

#include <GC_RankViewSel.hh>


Detailed Description

template<class VS>
class cpsp::gecode::GC_RankViewSel< VS >

A view selection for IdxIntView that selects hierachically first by the rank of the view and if equal as best so far by the given second view selector.

Definition at line 35 of file GC_RankViewSel.hh.


Public Member Functions

Gecode::ViewSelStatus init (const SuperSpace *home, const IdxIntView &x)
Gecode::ViewSelStatus select (const SuperSpace *home, IdxIntView x)

Protected Attributes

unsigned int rank
VS vs

Member Function Documentation

template<class VS>
Gecode::ViewSelStatus cpsp::gecode::GC_RankViewSel< VS >::init ( const SuperSpace home,
const IdxIntView x 
) [inline]

inits the selector

Definition at line 27 of file GC_RankViewSel.icc.

template<class VS>
Gecode::ViewSelStatus cpsp::gecode::GC_RankViewSel< VS >::select ( const SuperSpace home,
IdxIntView  x 
) [inline]

does the selection and returns the selection status for the given view

Definition at line 41 of file GC_RankViewSel.icc.


Field Documentation

template<class VS>
unsigned int cpsp::gecode::GC_RankViewSel< VS >::rank [protected]

best rank seen so var

Definition at line 38 of file GC_RankViewSel.hh.

template<class VS>
VS cpsp::gecode::GC_RankViewSel< VS >::vs [protected]

second view selector in case of equal rank of two views

Definition at line 40 of file GC_RankViewSel.hh.


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