QueenArmies::QueenBranch Class Reference
Inherits Gecode::Branching.
Detailed Description
Custom branching for Peacaeble queens.Custom branching that tries to place white queens so that they maximise the amount of un-attacked squares that become attacked.
Definition at line 162 of file queen-armies.cc.
Public Member Functions | |
virtual bool | status (const Space *home) const |
Check status of branching, return true if alternatives left. | |
virtual BranchingDesc * | description (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 Actor * | copy (Space *home, bool share) |
Clone. | |
virtual const char * | name (void) const |
Reflection name. | |
Static Public Member Functions | |
static void | post (QueenArmies *home) |
Member Function Documentation
virtual bool QueenArmies::QueenBranch::status | ( | const Space * | home | ) | const [inline, virtual] |
Check status of branching, return true if alternatives left.
Implements Gecode::Branching.
Definition at line 174 of file queen-armies.cc.
virtual BranchingDesc* QueenArmies::QueenBranch::description | ( | const Space * | ) | const [inline, virtual] |
Return branching description.
Implements Gecode::Branching.
Definition at line 194 of file queen-armies.cc.
virtual ExecStatus QueenArmies::QueenBranch::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 201 of file queen-armies.cc.
virtual const char* QueenArmies::QueenBranch::name | ( | void | ) | const [inline, virtual] |
static void QueenArmies::QueenBranch::post | ( | QueenArmies * | home | ) | [inline, static] |
Definition at line 219 of file queen-armies.cc.
The documentation for this class was generated from the following file:
- examples/queen-armies.cc (Revision: 6053)