Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

BlackHoleBranch Class Reference

Inherits Gecode::Branching.

List of all members.


Detailed Description

Custom branching for black hole patience.

This class implements a custom branching for BlackHole that instantiates the variables in lexical order, and chooses the value with the most cards under it.

Definition at line 96 of file black-hole.cc.


Public Member Functions

virtual bool status (const Space *) const
 Check status of branching, return true if alternatives left.
virtual BranchingDescdescription (const Space *) const
 Return branching description.
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)
 Copy branching.
virtual const char * name (void) const
 Reflection name.

Static Public Member Functions

static void post (Space *home, IntVarArgs x)
 Post branching.

Member Function Documentation

virtual bool BlackHoleBranch::status ( const Space  )  const [inline, virtual]

Check status of branching, return true if alternatives left.

Implements Gecode::Branching.

Definition at line 113 of file black-hole.cc.

virtual BranchingDesc* BlackHoleBranch::description ( const Space  )  const [inline, virtual]

Return branching description.

Implements Gecode::Branching.

Definition at line 130 of file black-hole.cc.

virtual ExecStatus BlackHoleBranch::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 135 of file black-hole.cc.

virtual Actor* BlackHoleBranch::copy ( Space home,
bool  share 
) [inline, virtual]

Copy branching.

Implements Gecode::Actor.

Definition at line 147 of file black-hole.cc.

virtual const char* BlackHoleBranch::name ( void   )  const [inline, virtual]

Reflection name.

Definition at line 151 of file black-hole.cc.

static void BlackHoleBranch::post ( Space home,
IntVarArgs  x 
) [inline, static]

Post branching.

Definition at line 155 of file black-hole.cc.


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