C++ Reference
C++ Reference: Algorithms
KnapsackSearchNode
Detailed Description
Definition at line 334 of file knapsack_solver.h.
Public Member Functions | |
| KnapsackSearchNode (const KnapsackSearchNode *const parent, const KnapsackAssignment &assignment) | |
| int | depth () const |
| const KnapsackSearchNode *const | parent () const |
| const KnapsackAssignment & | assignment () const |
| int64 | current_profit () const |
| void | set_current_profit (int64 profit) |
| int64 | profit_upper_bound () const |
| void | set_profit_upper_bound (int64 profit) |
| int | next_item_id () const |
| void | set_next_item_id (int id) |
Constructor & Destructor Documentation
◆ KnapsackSearchNode()
| KnapsackSearchNode | ( | const KnapsackSearchNode *const | parent, |
| const KnapsackAssignment & | assignment | ||
| ) |
Member Function Documentation
◆ assignment()
|
inline |
Definition at line 340 of file knapsack_solver.h.
◆ current_profit()
|
inline |
Definition at line 342 of file knapsack_solver.h.
◆ depth()
|
inline |
Definition at line 338 of file knapsack_solver.h.
◆ next_item_id()
|
inline |
Definition at line 348 of file knapsack_solver.h.
◆ parent()
|
inline |
Definition at line 339 of file knapsack_solver.h.
◆ profit_upper_bound()
|
inline |
Definition at line 345 of file knapsack_solver.h.
◆ set_current_profit()
|
inline |
Definition at line 343 of file knapsack_solver.h.
◆ set_next_item_id()
|
inline |
Definition at line 349 of file knapsack_solver.h.
◆ set_profit_upper_bound()
|
inline |
Definition at line 346 of file knapsack_solver.h.
The documentation for this class was generated from the following file: