Generated on Mon Jul 6 18:09:29 2009 for Gecode by doxygen 1.5.9

Gecode::ViewValBranching< ViewSel, ValSel > Class Template Reference
[Generic branching based on view and value selection]

Generic branching by view and value selection. More...

#include <branching.hpp>

List of all members.

Public Member Functions

 ViewValBranching (Space &home, ViewArray< typename ViewSel::View > &x, ViewSel &vi_s, ValSel &va_s)
 Constructor for creation.
virtual const BranchingDescdescription (Space &home)
 Return branching description (of type Gecode::PosValDesc).
virtual ExecStatus commit (Space &home, const BranchingDesc &d, unsigned int a)
 Perform commit for branching description d and alternative a.
virtual Actorcopy (Space &home, bool share)
 Perform cloning.
virtual size_t dispose (Space &home)
 Delete branching and return its size.

Protected Member Functions

 ViewValBranching (Space &home, bool share, ViewValBranching &b)
 Constructor for cloning b.

Protected Attributes

ValSel valsel
 Value selection object.


Detailed Description

template<class ViewSel, class ValSel>
class Gecode::ViewValBranching< ViewSel, ValSel >

Generic branching by view and value selection.

Implements view-based branching for an array of views (of type ViewSel::View) and value (of type ValSel::Val). The behaviour is defined by the class ViewSel (which view is selected for branching) and the class ValSel (which value is selected for branching).

Definition at line 111 of file branching.hpp.


Constructor & Destructor Documentation

template<class ViewSel , class ValSel >
Gecode::ViewValBranching< ViewSel, ValSel >::ViewValBranching ( Space home,
bool  share,
ViewValBranching< ViewSel, ValSel > &  b 
) [inline, protected]

Constructor for cloning b.

Definition at line 331 of file branching.hpp.

template<class ViewSel , class ValSel >
Gecode::ViewValBranching< ViewSel, ValSel >::ViewValBranching ( Space home,
ViewArray< typename ViewSel::View > &  x,
ViewSel &  vi_s,
ValSel &  va_s 
) [inline]

Constructor for creation.

Definition at line 324 of file branching.hpp.


Member Function Documentation

template<class ViewSel , class ValSel >
const BranchingDesc * Gecode::ViewValBranching< ViewSel, ValSel >::description ( Space home  )  [inline, virtual]

Return branching description (of type Gecode::PosValDesc).

Implements Gecode::Branching.

Definition at line 345 of file branching.hpp.

template<class ViewSel , class ValSel >
ExecStatus Gecode::ViewValBranching< ViewSel, ValSel >::commit ( Space home,
const BranchingDesc d,
unsigned int  a 
) [inline, virtual]

Perform commit for branching description d and alternative a.

Implements Gecode::Branching.

Definition at line 357 of file branching.hpp.

template<class ViewSel , class ValSel >
Actor * Gecode::ViewValBranching< ViewSel, ValSel >::copy ( Space home,
bool  share 
) [inline, virtual]

Perform cloning.

Implements Gecode::Actor.

Definition at line 338 of file branching.hpp.

template<class ViewSel , class ValSel >
size_t Gecode::ViewValBranching< ViewSel, ValSel >::dispose ( Space home  )  [inline, virtual]

Delete branching and return its size.

Reimplemented from Gecode::ViewBranching< ViewSel >.

Definition at line 369 of file branching.hpp.


Member Data Documentation

template<class ViewSel, class ValSel>
ValSel Gecode::ViewValBranching< ViewSel, ValSel >::valsel [protected]

Value selection object.

Definition at line 116 of file branching.hpp.


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