Generated on Thu Feb 21 2013 23:11:59 for Gecode by doxygen 1.8.3.1
Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View > Class Template Reference

Brancher by view and values selection More...

#include <branch.hh>

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 a)
 Perform commit for choice c and alternative a. More...
 
virtual Actorcopy (Space &home, bool share)
 Perform cloning. More...
 
- Public Member Functions inherited from Gecode::ViewBrancher< ViewSel >
virtual bool status (const Space &home) const
 Check status of brancher, return true if alternatives left. More...
 
virtual size_t dispose (Space &home)
 Delete brancher and return its size. More...
 
- Public Member Functions inherited from Gecode::Brancher
unsigned int id (void) const
 Return unsigned brancher id. More...
 

Static Public Member Functions

static void post (Home home, ViewArray< typename ViewSel::View > &x, ViewSel &vi_s, BranchFilter bf=NULL)
 Constructor for creation. More...
 

Protected Member Functions

 ViewValuesBrancher (Space &home, bool share, ViewValuesBrancher &b)
 Constructor for cloning b. More...
 
 ViewValuesBrancher (Home home, ViewArray< typename ViewSel::View > &x, ViewSel &vi_s, BranchFilter bf)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::ViewBrancher< ViewSel >
Pos pos (Space &home)
 Return position information. More...
 
ViewSel::View view (const Pos &p) const
 Return view according to position information p. More...
 
 ViewBrancher (Space &home, bool share, ViewBrancher &b)
 Constructor for cloning b. More...
 
 ViewBrancher (Home home, ViewArray< typename ViewSel::View > &x, ViewSel &vi_s, BranchFilter bf0=NULL)
 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...
 

Additional Inherited Members

- Protected Attributes inherited from Gecode::ViewBrancher< ViewSel >
ViewArray< typename ViewSel::View > x
 Views to branch on. More...
 
int start
 Unassigned views start at x[start]. More...
 
ViewSel viewsel
 View selection object. More...
 
BranchFilter bf
 Branch filter function. More...
 

Detailed Description

template<class ViewSel, class View>
class Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >

Brancher by view and values selection

Definition at line 224 of file branch.hh.

Constructor & Destructor Documentation

template<class ViewSel , class View >
Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >::ViewValuesBrancher ( Space home,
bool  share,
ViewValuesBrancher< ViewSel, View > &  b 
)
inlineprotected

Constructor for cloning b.

Definition at line 171 of file select-values.hpp.

template<class ViewSel , class View >
Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >::ViewValuesBrancher ( Home  home,
ViewArray< typename ViewSel::View > &  x,
ViewSel &  vi_s,
BranchFilter  bf 
)
inlineprotected

Constructor for creation.

Definition at line 156 of file select-values.hpp.

Member Function Documentation

template<class ViewSel , class View >
const Choice * Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >::choice ( Space home)
virtual

Return choice.

Implements Gecode::Brancher.

Definition at line 183 of file select-values.hpp.

template<class ViewSel , class View >
const Choice * Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >::choice ( const Space home,
Archive e 
)
virtual

Return choice.

Implements Gecode::Brancher.

Definition at line 192 of file select-values.hpp.

template<class ViewSel , class View >
ExecStatus Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >::commit ( Space home,
const Choice c,
unsigned int  a 
)
virtual

Perform commit for choice c and alternative a.

Implements Gecode::Brancher.

Definition at line 203 of file select-values.hpp.

template<class ViewSel , class View >
Actor * Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >::copy ( Space home,
bool  share 
)
virtual

Perform cloning.

Implements Gecode::Actor.

Definition at line 176 of file select-values.hpp.

template<class ViewSel , class View >
void Gecode::Int::Branch::ViewValuesBrancher< ViewSel, View >::post ( Home  home,
ViewArray< typename ViewSel::View > &  x,
ViewSel &  vi_s,
BranchFilter  bf = NULL 
)
static

Constructor for creation.

Definition at line 163 of file select-values.hpp.


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