Generated on Tue Sep 25 2012 20:53:25 for Gecode by doxygen 1.7.5
Gecode::ViewValBrancher Class Reference

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

#include <brancher.hpp>

List of all members.

Public Member Functions

virtual const Choicechoice (Space &home)
 Return choice.
virtual const Choicechoice (const Space &home, Archive &e)
 Return choice.
virtual ExecStatus commit (Space &home, const Choice &c, unsigned int a)
 Perform commit for choice c and alternative a.
virtual Actorcopy (Space &home, bool share)
 Perform cloning.
virtual size_t dispose (Space &home)
 Delete brancher and return its size.

Static Public Member Functions

static void post (Home home, ViewArray< typename ViewSel::View > &x, ViewSel &vi_s, ValSel &va_s, BranchFilter bf=NULL)
 Brancher post function.

Protected Member Functions

 ViewValBrancher (Space &home, bool share, ViewValBrancher &b)
 Constructor for cloning b.
 ViewValBrancher (Home home, ViewArray< typename ViewSel::View > &x, ViewSel &vi_s, ValSel &va_s, BranchFilter bf0)
 Constructor for creation.

Protected Attributes

ValSel valsel
 Value selection object.

Detailed Description

Generic brancher 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).


Constructor & Destructor Documentation

Gecode::ViewValBrancher::ViewValBrancher ( Space home,
bool  share,
ViewValBrancher b 
) [inline, protected]

Constructor for cloning b.

Definition at line 375 of file brancher.hpp.

Gecode::ViewValBrancher::ViewValBrancher ( Home  home,
ViewArray< typename ViewSel::View > &  x,
ViewSel &  vi_s,
ValSel &  va_s,
BranchFilter  bf0 
) [inline, protected]

Constructor for creation.

Definition at line 360 of file brancher.hpp.


Member Function Documentation

const Choice * Gecode::ViewValBrancher::choice ( Space home) [virtual]

Return choice.

Definition at line 389 of file brancher.hpp.

const Choice * Gecode::ViewValBrancher::choice ( const Space home,
Archive e 
) [virtual]

Return choice.

Definition at line 400 of file brancher.hpp.

ExecStatus Gecode::ViewValBrancher::commit ( Space home,
const Choice c,
unsigned int  a 
) [virtual]

Perform commit for choice c and alternative a.

Definition at line 411 of file brancher.hpp.

Actor * Gecode::ViewValBrancher::copy ( Space home,
bool  share 
) [virtual]

Perform cloning.

Definition at line 382 of file brancher.hpp.

size_t Gecode::ViewValBrancher::dispose ( Space home) [inline, virtual]

Delete brancher and return its size.

Reimplemented from Gecode::ViewBrancher< ViewSel >.

Definition at line 423 of file brancher.hpp.

void Gecode::ViewValBrancher::post ( Home  home,
ViewArray< typename ViewSel::View > &  x,
ViewSel &  vi_s,
ValSel &  va_s,
BranchFilter  bf = NULL 
) [static]

Brancher post function.

Definition at line 367 of file brancher.hpp.


Member Data Documentation

ValSel Gecode::ViewValBrancher::valsel [protected]

Value selection object.

Definition at line 118 of file brancher.hpp.


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