|
LLVM
4.0.0
|
Represents a solution to a PBQP problem. More...
#include <Solution.h>
Public Member Functions | |
| Solution () | |
| Initialise an empty solution. More... | |
| void | setSelection (GraphBase::NodeId nodeId, unsigned selection) |
| Set the selection for a given node. More... | |
| unsigned | getSelection (GraphBase::NodeId nodeId) const |
| Get a node's selection. More... | |
Represents a solution to a PBQP problem.
To get the selection for each node in the problem use the getSelection method.
Definition at line 27 of file Solution.h.
|
inline |
Initialise an empty solution.
Definition at line 38 of file Solution.h.
|
inline |
Get a node's selection.
| nodeId | Node id. |
Definition at line 51 of file Solution.h.
References assert().
Referenced by llvm::PBQP::backpropagate().
|
inline |
Set the selection for a given node.
| nodeId | Node id. |
| selection | Selection for nodeId. |
Definition at line 44 of file Solution.h.
Referenced by llvm::PBQP::backpropagate().
1.8.6