|
GCBM
|
#include <record.h>

Public Member Functions | |
| DateRecord (int step, int year, int month, int day, double fracOfStep, double yearsInStep) | |
| ~DateRecord () | |
| bool | operator== (const DateRecord &other) const |
| size_t | hash () const |
| DateRow | asPersistable () const |
| StdDateRow | asTuple () const |
| void | merge (const DateRecord &other) |
| void | setId (Int64 id) |
| Int64 | getId () const |
Private Attributes | |
| size_t | _hash = -1 |
| Int64 | _id |
| int | _step |
| int | _year |
| int | _month |
| int | _day |
| double | _fracOfStep |
| double | _yearsInStep |
| DateRecord | ( | int | step, |
| int | year, | ||
| int | month, | ||
| int | day, | ||
| double | fracOfStep, | ||
| double | yearsInStep | ||
| ) |
Constructor.
Initialise variables DateRecord._step as parameter step,DateRecord._year as parameter year,DateRecord._month as parameter month
DateRecord._day as parameter day,DateRecord._fracOfStep as parameter fracOfStep and DateRecord._yearsInStep as parameter yearsInStep.
| step | int |
| year | int |
| month | int |
| day | int |
| fracOfStep | double |
| yearsInStep |
| ~DateRecord | ( | ) |
| DateRow asPersistable | ( | ) | const |
Return DateRow using DateRecord._id,DateRecord._step,DateRecord._month,DateRecord._day,DateRecord._fracOfStep,DateRecord._yearsInStep as paramters.
| StdDateRow asTuple | ( | ) | const |
Return stdDateRow using DateRecord._id,DateRecord._step,DateRecord._month,DateRecord._day,DateRecord._fracOfStep,DateRecord._yearsInStep as paramters.
| Int64 getId | ( | ) | const |
| size_t hash | ( | ) | const |
If DateRecord._hash is equal to -1, assign DateRecord._hash as moja::hash::hash_combine() using DateRecord._step as a parameter.
return DateRecord._hash.
| void merge | ( | const DateRecord & | other | ) |
| bool operator== | ( | const DateRecord & | other | ) | const |
Check if DateRecord._step is equal to parameter other DateRecord._step.
return the boolean value
| other | DateRecord& |
| void setId | ( | Int64 | id | ) |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17