C++ Reference
C++ Reference: Algorithms
KnapsackItem
Detailed Description
Definition at line 306 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 307 of file knapsack_solver.h.
Member Function Documentation
◆ GetEfficiency()
|
inline |
Definition at line 309 of file knapsack_solver.h.
Member Data Documentation
◆ id
const int id |
Definition at line 317 of file knapsack_solver.h.
◆ profit
const int64 profit |
Definition at line 319 of file knapsack_solver.h.
◆ weight
const int64 weight |
Definition at line 318 of file knapsack_solver.h.
The documentation for this struct was generated from the following file: