This structure represents a data item part with a year, month and the quantity. More...
#include <DataItemPart.h>
Public Member Functions | |
bool | operator< (const DataItemPart &other) const |
checks if this data item part is less than the other | |
bool | operator== (const DataItemPart &other) const |
checks if this data item part is equal to the other | |
Public Attributes | |
int | year |
the year of the given quantity | |
int | month |
the month of the given quantity | |
double | quantity |
the quantity at the given time |
This structure represents a data item part with a year, month and the quantity.
A data item part can be for example the revenue of a movie at the given year and month.
bool DataItemPart::operator< | ( | const DataItemPart & | other | ) | const [inline] |
checks if this data item part is less than the other
bool DataItemPart::operator== | ( | const DataItemPart & | other | ) | const [inline] |
checks if this data item part is equal to the other
the month of the given quantity
double DataItemPart::quantity |
the quantity at the given time
the year of the given quantity