GCBM
|
#include <record.h>
Public Member Functions | |
AgeClassRecord (Int64 start_age, Int64 end_age) | |
~AgeClassRecord () | |
bool | operator== (const AgeClassRecord &other) const |
size_t | hash () const |
AgeClassRow | asPersistable () const |
StdAgeClassRow | asTuple () const |
void | merge (const AgeClassRecord &other) |
void | setId (Int64 id) |
Int64 | getId () const |
Private Attributes | |
size_t | _hash = -1 |
Int64 | _id |
Int64 | _startAge |
Int64 | _endAge |
AgeClassRecord | ( | Int64 | startAge, |
Int64 | endAge | ||
) |
Constructor.
Initialise AgeClassRecord._startAge as parameter startAge and AgeClassRecord._endAge as parameter endAge.
startAge | Int64 |
endAge | Int64 |
~AgeClassRecord | ( | ) |
AgeClassRow asPersistable | ( | ) | const |
Return AgeClassRow using AgeClassRecord._id, AgeClassRecord._startAge and AgeClassRecord._endAge.
StdAgeClassRow asTuple | ( | ) | const |
Return StdAgeClassRow using AgeClassRecord._id, AgeClassRecord._startAge and AgeClassRecord._endAge.
Int64 getId | ( | ) | const |
size_t hash | ( | ) | const |
if AgeClassRecord._hash is equal to -1,
assign AgeClassRecord._hash as moja::hash::hash_combine() using AgeClassRecord._startAge and AgeClassRecord._endAge parameters.
return AgeClassRecord._hash.
void merge | ( | const AgeClassRecord & | other | ) |
bool operator== | ( | const AgeClassRecord & | other | ) | const |
Check if AgeClassRecord._startAge is equal to parameter other AgeClassRecord._startAge and AgeClassRecord._endAge is equal to parameter other AgeClassRecord._endAge.
return the boolean values.
void setId | ( | Int64 | id | ) |
|
private |
|
mutableprivate |
|
private |
|
private |