GCBM
|
#include <record.h>
Public Member Functions | |
TemporalLocationRecord (Int64 classifierSetId, Int64 dateId, Int64 landClassId, Poco::Nullable< Int64 > ageClassId, double area) | |
~TemporalLocationRecord () | |
bool | operator== (const TemporalLocationRecord &other) const |
size_t | hash () const |
TemporalLocationRow | asPersistable () const |
StdTemporalLocationRow | asTuple () const |
void | merge (const TemporalLocationRecord &other) |
void | setId (Int64 id) |
Int64 | getId () const |
Private Attributes | |
size_t | _hash = -1 |
Int64 | _id |
Int64 | _classifierSetId |
Int64 | _dateId |
Int64 | _landClassId |
Poco::Nullable< Int64 > | _ageClassId |
double | _area |
TemporalLocationRecord | ( | Int64 | classifierSetId, |
Int64 | dateId, | ||
Int64 | landClassId, | ||
Poco::Nullable< Int64 > | ageClassId, | ||
double | area | ||
) |
Constructor.
Initialise variables TemporalLocationRecord._classifierSetId as parameter classifierSetId,TemporalLocationRecord._dateId as parameter dateId,
TemporalLocationRecord._landClassId as parameter landClassId, TemporalLocationRecord._ageClassId as parameter ageClassId and TemporalLocationRecord._area as parameter area.
classifierSetId | Int64 |
dateId | Int64 |
landClassId |
TemporalLocationRow asPersistable | ( | ) | const |
Return TemporalLocationRow using TemporalLocationRecord._classifierSetId,TemporalLocationRecord._dateId,TemporalLocationRecord._landClassId and TemporalLocationRecord._ageClassId as parameters.
StdTemporalLocationRow asTuple | ( | ) | const |
Return a tuple object using TemporalLocationRecord._classifierSetId,TemporalLocationRecord._dateId,TemporalLocationRecord._landClassId and TemporalLocationRecord._ageClassId as parameters.
Int64 getId | ( | ) | const |
size_t hash | ( | ) | const |
If TemporalLocationRecord._hash is equal to -1, assign TemporalLocationRecord._hash as moja::hash::hash_combine()
using TemporalLocationRecord._classifierSetId,TemporalLocationRecord._dateId,TemporalLocationRecord._landClassId and TemporalLocationRecord._ageClassId as parameters.
return TemporalLocationRecord._hash.
void merge | ( | const TemporalLocationRecord & | other | ) |
Increase TemporalLocationRecord._area by parameter other TemporalLocationRecord._area.
other | TemporalLocationRecord& |
bool operator== | ( | const TemporalLocationRecord & | other | ) | const |
Check if TemporalLocationRecord._classifierSetId is equal parameter other TemporalLocationRecord._classifierSetId and
TemporalLocationRecord._dateId is equal to parameter other TemporalLocationRecord._dateId and TemporalLocationRecord._landClassId is equal to parameter other TemporalLocationRecord._landClassId and
TemporalLocationRecord._ageClassId is equal to parameter other TemporalLocationRecord._ageClassId.
return rhe boolean value.
other | TemporalLocationRecord& |
void setId | ( | Int64 | id | ) |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |