Custom brancher for Peacable queens. More...
Public Member Functions | |
virtual bool | status (const Space &home) const |
Check status of brancher, return true if alternatives left. More... | |
virtual Gecode::Choice * | choice (Space &home) |
Return choice. More... | |
virtual Choice * | choice (const Space &, Archive &e) |
Return choice. More... | |
virtual ExecStatus | commit (Space &home, const Gecode::Choice &_c, unsigned int a) |
Perform commit for choice _c and alternative a. More... | |
virtual void | print (const Space &, const Gecode::Choice &_c, unsigned int a, std::ostream &o) const |
Print explanation. More... | |
virtual Actor * | copy (Space &home, bool share) |
Copy brancher during cloning. More... | |
virtual size_t | dispose (Space &) |
Delete brancher and return its size. More... | |
![]() | |
virtual NGL * | ngl (Space &home, const Choice &c, unsigned int a) const |
Create no-good literal for choice c and alternative a. More... | |
unsigned int | id (void) const |
Return brancher id. More... | |
BrancherGroup | group (void) const |
Return group brancher belongs to. More... | |
void | group (BrancherGroup g) |
Add brancher to group g. More... | |
![]() | |
virtual | ~Actor (void) |
To avoid warnings. More... | |
Static Public Member Functions | |
static void | post (QueenArmies &home) |
Post brancher. More... | |
![]() | |
static void * | operator new (size_t s) |
Not used. More... | |
static void | operator delete (void *p) |
Not used. More... | |
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... | |
Additional Inherited Members | |
![]() | |
Brancher (Home home) | |
Constructor for creation. More... | |
Brancher (Space &home, bool share, Brancher &b) | |
Constructor for cloning b. More... | |
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.
|
inlinevirtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
Definition at line 198 of file queen-armies.cpp.
|
inlinevirtual |
|
inlinevirtual |
Perform commit for choice _c and alternative a.
Implements Gecode::Brancher.
Definition at line 238 of file queen-armies.cpp.
|
inlinevirtual |
Print explanation.
Reimplemented from Gecode::Brancher.
Definition at line 248 of file queen-armies.cpp.
Copy brancher during cloning.
Implements Gecode::Actor.
Definition at line 256 of file queen-armies.cpp.
|
inlinestatic |
Post brancher.
Definition at line 260 of file queen-armies.cpp.
|
inlinevirtual |
Delete brancher and return its size.
Reimplemented from Gecode::Actor.
Definition at line 264 of file queen-armies.cpp.