C++ Reference
C++ Reference: Algorithms
KnapsackItem
Detailed Description
Definition at line 309 of file knapsack_solver.h.
Public Member Functions | |
| KnapsackItem (int _id, int64 _weight, int64 _profit) | |
| double | GetEfficiency (int64 profit_max) const |
Public Attributes | |
| const int | id |
| const int64 | weight |
| const int64 | profit |
Constructor & Destructor Documentation
◆ KnapsackItem()
|
inline |
Definition at line 310 of file knapsack_solver.h.
Member Function Documentation
◆ GetEfficiency()
|
inline |
Definition at line 312 of file knapsack_solver.h.
Member Data Documentation
◆ id
| const int id |
Definition at line 320 of file knapsack_solver.h.
◆ profit
| const int64 profit |
Definition at line 322 of file knapsack_solver.h.
◆ weight
| const int64 weight |
Definition at line 321 of file knapsack_solver.h.
The documentation for this struct was generated from the following file: