Generated on Tue Apr 18 10:23:02 2017 for Gecode by doxygen 1.6.3

QueenArmies::QueenBranch Class Reference

Custom brancher for Peacable queens. More...

List of all members.

Public Member Functions

virtual bool status (const Space &home) const
 Check status of brancher, return true if alternatives left.
virtual Gecode::Choicechoice (Space &home)
 Return choice.
virtual Choice * choice (const Space &, Archive &e)
 Return choice.
virtual ExecStatus commit (Space &home, const Gecode::Choice &_c, unsigned int a)
 Perform commit for choice _c and alternative a.
virtual void print (const Space &, const Gecode::Choice &_c, unsigned int a, std::ostream &o) const
 Print explanation.
virtual Actorcopy (Space &home, bool share)
 Copy brancher during cloning.
virtual size_t dispose (Space &)
 Delete brancher and return its size.

Static Public Member Functions

static void post (QueenArmies &home)
 Post brancher.

Detailed Description

Custom brancher for Peacable queens.

Custom brancher 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.cpp.


Member Function Documentation

virtual bool QueenArmies::QueenBranch::status ( const Space home  )  const [inline, virtual]

Check status of brancher, return true if alternatives left.

Implements Gecode::Brancher.

Definition at line 198 of file queen-armies.cpp.

virtual Gecode::Choice* QueenArmies::QueenBranch::choice ( Space home  )  [inline, virtual]

Return choice.

Implements Gecode::Brancher.

Definition at line 209 of file queen-armies.cpp.

virtual Choice* QueenArmies::QueenBranch::choice ( const Space ,
Archive e 
) [inline, virtual]

Return choice.

Implements Gecode::Brancher.

Definition at line 230 of file queen-armies.cpp.

virtual ExecStatus QueenArmies::QueenBranch::commit ( Space home,
const Gecode::Choice _c,
unsigned int  a 
) [inline, virtual]

Perform commit for choice _c and alternative a.

Implements Gecode::Brancher.

Definition at line 238 of file queen-armies.cpp.

virtual void QueenArmies::QueenBranch::print ( const Space ,
const Gecode::Choice _c,
unsigned int  a,
std::ostream &  o 
) const [inline, virtual]

Print explanation.

Reimplemented from Gecode::Brancher.

Definition at line 248 of file queen-armies.cpp.

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

Copy brancher during cloning.

Implements Gecode::Actor.

Definition at line 256 of file queen-armies.cpp.

static void QueenArmies::QueenBranch::post ( QueenArmies home  )  [inline, static]

Post brancher.

Definition at line 260 of file queen-armies.cpp.

virtual size_t QueenArmies::QueenBranch::dispose ( Space  )  [inline, virtual]

Delete brancher and return its size.

Reimplemented from Gecode::Actor.

Definition at line 264 of file queen-armies.cpp.


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