Generated on Sat May 25 2013 18:00:46 for Gecode by doxygen 1.8.3.1
Gecode::ViewValBrancher< View, n, Val, a > Class Template Reference

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

#include <brancher-view-val.hpp>

Public Member Functions

virtual const Choicechoice (Space &home)
 Return choice. More...
 
virtual const Choicechoice (const Space &home, Archive &e)
 Return choice. More...
 
virtual ExecStatus commit (Space &home, const Choice &c, unsigned int b)
 Perform commit for choice c and alternative b. More...
 
virtual Actorcopy (Space &home, bool share)
 Perform cloning. More...
 
virtual size_t dispose (Space &home)
 Delete brancher and return its size. More...
 
- Public Member Functions inherited from Gecode::ViewBrancher< View, n >
virtual bool status (const Space &home) const
 Check status of brancher, return true if alternatives left. More...
 
- Public Member Functions inherited from Gecode::Brancher
unsigned int id (void) const
 Return unsigned brancher id. More...
 

Static Public Member Functions

static BrancherHandle post (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], ValSelCommitBase< View, Val > *vsc, BranchFilter bf)
 Brancher post function. More...
 

Protected Member Functions

 ViewValBrancher (Space &home, bool share, ViewValBrancher &b)
 Constructor for cloning b. More...
 
 ViewValBrancher (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], ValSelCommitBase< View, Val > *vsc, BranchFilter bf)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::ViewBrancher< View, n >
Pos pos (Space &home)
 Return position information. More...
 
View view (const Pos &p) const
 Return view according to position information p. More...
 
 ViewBrancher (Space &home, bool shared, ViewBrancher< View, n > &b)
 Constructor for cloning b. More...
 
 ViewBrancher (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], BranchFilter bf)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::Brancher
 Brancher (Home home)
 Constructor for creation. More...
 
 Brancher (Space &home, bool share, Brancher &b)
 Constructor for cloning b. More...
 

Protected Attributes

ValSelCommitBase< View, Val > * vsc
 Value selection and commit object. More...
 
- Protected Attributes inherited from Gecode::ViewBrancher< View, n >
ViewArray< View > x
 Views to branch on. More...
 
int start
 Unassigned views start at x[start]. More...
 
ViewSel< View > * vs [n]
 View selection objects. More...
 
BranchFilter bf
 Branch filter function. More...
 

Additional Inherited Members

- Protected Types inherited from Gecode::ViewBrancher< View, n >
typedef BranchTraits< typename
View::VarType >::Filter 
BranchFilter
 The branch filter that corresponds to the var type. More...
 

Detailed Description

template<class View, int n, class Val, unsigned int a>
class Gecode::ViewValBrancher< View, n, Val, a >

Generic brancher by view and value selection.

Implements view-based branching for an array of views (of type View) and value (of type Val).

Definition at line 73 of file brancher-view-val.hpp.

Constructor & Destructor Documentation

template<class View , int n, class Val , unsigned int a>
Gecode::ViewValBrancher< View, n, Val, a >::ViewValBrancher ( Space home,
bool  share,
ViewValBrancher< View, n, Val, a > &  b 
)
inlineprotected

Constructor for cloning b.

Definition at line 174 of file brancher-view-val.hpp.

template<class View , int n, class Val , unsigned int a>
Gecode::ViewValBrancher< View, n, Val, a >::ViewValBrancher ( Home  home,
ViewArray< View > &  x,
ViewSel< View > *  vs[n],
ValSelCommitBase< View, Val > *  vsc,
BranchFilter  bf 
)
inlineprotected

Constructor for creation.

Definition at line 147 of file brancher-view-val.hpp.

Member Function Documentation

template<class View , int n, class Val , unsigned int a>
const Choice * Gecode::ViewValBrancher< View, n, Val, a >::choice ( Space home)
virtual
template<class View , int n, class Val , unsigned int a>
const Choice * Gecode::ViewValBrancher< View, n, Val, a >::choice ( const Space home,
Archive e 
)
virtual

Return choice.

Implements Gecode::Brancher.

Reimplemented in Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a >.

Definition at line 194 of file brancher-view-val.hpp.

template<class View , int n, class Val , unsigned int a>
ExecStatus Gecode::ViewValBrancher< View, n, Val, a >::commit ( Space home,
const Choice c,
unsigned int  b 
)
virtual

Perform commit for choice c and alternative b.

Implements Gecode::Brancher.

Reimplemented in Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a >, and Gecode::Set::LDSB::LDSBSetBrancher< View, n, Val, a >.

Definition at line 204 of file brancher-view-val.hpp.

template<class View , int n, class Val , unsigned int a>
Actor * Gecode::ViewValBrancher< View, n, Val, a >::copy ( Space home,
bool  share 
)
virtual
template<class View , int n, class Val , unsigned int a>
size_t Gecode::ViewValBrancher< View, n, Val, a >::dispose ( Space home)
inlinevirtual

Delete brancher and return its size.

Reimplemented from Gecode::ViewBrancher< View, n >.

Reimplemented in Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a >.

Definition at line 216 of file brancher-view-val.hpp.

template<class View , int n, class Val , unsigned int a>
BrancherHandle Gecode::ViewValBrancher< View, n, Val, a >::post ( Home  home,
ViewArray< View > &  x,
ViewSel< View > *  vs[n],
ValSelCommitBase< View, Val > *  vsc,
BranchFilter  bf 
)
inlinestatic

Brancher post function.

Definition at line 165 of file brancher-view-val.hpp.

Member Data Documentation

template<class View, int n, class Val, unsigned int a>
ValSelCommitBase<View,Val>* Gecode::ViewValBrancher< View, n, Val, a >::vsc
protected

Value selection and commit object.

Definition at line 79 of file brancher-view-val.hpp.


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