Weighted items class. More...
Public Member Functions | |
int | CompareTo (Object o) |
bool | Equals (WeightedItem otherItem) |
override bool | Equals (Object o) |
override int | GetHashCode () |
WeightedItem (int item_id, double weight) | |
Constructor. | |
WeightedItem () | |
Default constructor. | |
Public Attributes | |
int | item_id |
Item ID. | |
double | weight |
Weight. |
Weighted items class.
WeightedItem | ( | ) | [inline] |
Default constructor.
WeightedItem | ( | int | item_id, | |
double | weight | |||
) | [inline] |
Constructor.
item_id | the item ID | |
weight | the weight |
int item_id |
Item ID.
double weight |
Weight.