Generated on Sat Feb 7 2015 02:01:41 for Gecode by doxygen 1.8.9.1
Gecode::ViewBrancher< View, n > Class Template Reference

Generic brancher by view selection. More...

#include <brancher-view.hpp>

Public Member Functions

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...
 
virtual const Choicechoice (Space &home)=0
 Return choice. More...
 
virtual const Choicechoice (const Space &home, Archive &e)=0
 Return choice from e. More...
 
virtual ExecStatus commit (Space &home, const Choice &c, unsigned int a)=0
 Commit for choice c and alternative a. More...
 
virtual NGLngl (Space &home, const Choice &c, unsigned int a) const
 Create no-good literal for choice c and alternative a. More...
 
virtual void print (const Space &home, const Choice &c, unsigned int a, std::ostream &o) const
 Print branch for choice c and alternative a. More...
 
- Public Member Functions inherited from Gecode::Actor
virtual Actorcopy (Space &home, bool share)=0
 Create copy. More...
 

Protected Types

typedef BranchTraits< typename View::VarType >::Filter BranchFilter
 The branch filter that corresponds to the var type. More...
 

Protected Member Functions

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

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

- Static Public Member Functions inherited from Gecode::Actor
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *p, Space &home)
 No-op for exceptions. More...
 

Detailed Description

template<class View, int n>
class Gecode::ViewBrancher< View, n >

Generic brancher by view selection.

Defined for views of type View and n view selectors for tie-breaking.

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

Member Typedef Documentation

template<class View, int n>
typedef BranchTraits<typename View::VarType>::Filter Gecode::ViewBrancher< View, n >::BranchFilter
protected

The branch filter that corresponds to the var type.

Definition at line 82 of file brancher-view.hpp.

Constructor & Destructor Documentation

template<class View, int n>
Gecode::ViewBrancher< View, n >::ViewBrancher ( Space home,
bool  shared,
ViewBrancher< View, n > &  b 
)
inlineprotected

Constructor for cloning b.

Definition at line 154 of file brancher-view.hpp.

template<class View, int n>
Gecode::ViewBrancher< View, n >::ViewBrancher ( Home  home,
ViewArray< View > &  x,
ViewSel< View > *  vs[n],
BranchFilter  bf 
)
inlineprotected

Constructor for creation.

Definition at line 140 of file brancher-view.hpp.

Member Function Documentation

template<class View , int n>
Pos Gecode::ViewBrancher< View, n >::pos ( Space home)
inlineprotected

Return position information.

Definition at line 185 of file brancher-view.hpp.

template<class View , int n>
View Gecode::ViewBrancher< View, n >::view ( const Pos p) const
inlineprotected

Return view according to position information p.

Definition at line 225 of file brancher-view.hpp.

template<class View , int n>
bool Gecode::ViewBrancher< View, n >::status ( const Space home) const
virtual

Check status of brancher, return true if alternatives left.

Implements Gecode::Brancher.

Definition at line 164 of file brancher-view.hpp.

template<class View , int n>
size_t Gecode::ViewBrancher< View, n >::dispose ( Space home)
inlinevirtual

Delete brancher and return its size.

Reimplemented from Gecode::Actor.

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

Definition at line 231 of file brancher-view.hpp.

Member Data Documentation

template<class View, int n>
ViewArray<View> Gecode::ViewBrancher< View, n >::x
protected

Views to branch on.

Definition at line 84 of file brancher-view.hpp.

template<class View, int n>
int Gecode::ViewBrancher< View, n >::start
mutableprotected

Unassigned views start at x[start].

Definition at line 86 of file brancher-view.hpp.

template<class View, int n>
ViewSel<View>* Gecode::ViewBrancher< View, n >::vs[n]
protected

View selection objects.

Definition at line 88 of file brancher-view.hpp.

template<class View, int n>
BranchFilter Gecode::ViewBrancher< View, n >::bf
protected

Branch filter function.

Definition at line 90 of file brancher-view.hpp.


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