Brancher choosing a child of the current node. More...
Public Member Functions | |
| Decisions (Home home) | |
| Decisions (Space &home, Decisions &b) | |
| bool | status (const Space &s) const override |
| Check status of brancher, return true if alternatives left. | |
| const Choice * | choice (Space &s) override |
| Return choice. | |
| const Choice * | choice (const Space &, Archive &e) override |
| Return choice from e. | |
| ExecStatus | commit (Space &s, const Choice &c, unsigned int a) override |
| Commit for choice c and alternative a. | |
| Actor * | copy (Space &home) override |
| Create copy. | |
| size_t | dispose (Space &home) override |
| Delete actor and return its size. | |
| virtual NGL * | ngl (Space &home, const Choice &c, unsigned int a) const |
| Create no-good literal for choice c and alternative a. | |
| virtual void | print (const Space &home, const Choice &c, unsigned int a, std::ostream &o) const |
| Print branch for choice c and alternative a. | |
| unsigned int | id (void) const |
| Return brancher id. | |
| BrancherGroup | group (void) const |
| Return group brancher belongs to. | |
| void | group (BrancherGroup g) |
| Add brancher to group g. | |
| virtual | ~Actor (void) |
| To avoid warnings. | |
Additional Inherited Members | |
| static void * | operator new (size_t s, Space &home) |
| Allocate memory from space. | |
| static void | operator delete (void *p, Space &home) |
| No-op for exceptions. | |
| static void * | operator new (size_t s) |
| Not used. | |
| static void | operator delete (void *p) |
| Not used. | |
| Protected Member Functions inherited from Gecode::Brancher | |
| Brancher (Home home) | |
| Constructor for creation. | |
| Brancher (Space &home, Brancher &b) | |
| Constructor for cloning b. | |
Detailed Description
Brancher choosing a child of the current node.
Definition at line 102 of file search.cpp.
Constructor & Destructor Documentation
◆ Decisions() [1/2]
|
inline |
Definition at line 113 of file search.cpp.
◆ Decisions() [2/2]
|
inline |
Definition at line 114 of file search.cpp.
Member Function Documentation
◆ status()
|
inlineoverridevirtual |
Check status of brancher, return true if alternatives left.
This method is called when Space::status is called, it determines whether to continue branching with this brancher or move on to the (possibly) next brancher.
Implements Gecode::Brancher.
Definition at line 115 of file search.cpp.
◆ choice() [1/2]
Return choice.
Note that this method relies on the fact that it is called immediately after a previous call to status. Moreover, the member function can only be called once.
Implements Gecode::Brancher.
Definition at line 118 of file search.cpp.
◆ choice() [2/2]
◆ commit()
|
inlineoverridevirtual |
Commit for choice c and alternative a.
The current brancher in the space home performs a commit from the information provided by the choice c and the alternative a.
Implements Gecode::Brancher.
Definition at line 127 of file search.cpp.
◆ copy()
◆ dispose()
|
inlineoverridevirtual |
Delete actor and return its size.
Reimplemented from Gecode::Actor.
Definition at line 135 of file search.cpp.
The documentation for this class was generated from the following file:
- test/search.cpp
