|
GCBM
|
#include <record.h>

Public Member Functions | |
| AgeAreaRecord (Int64 locationId, Int64 ageClassId, double) | |
| ~AgeAreaRecord () | |
| bool | operator== (const AgeAreaRecord &other) const |
| size_t | hash () const |
| AgeAreaRow | asPersistable () const |
| StdAgeAreaRow | asTuple () const |
| void | merge (const AgeAreaRecord &other) |
| void | setId (Int64 id) |
| Int64 | getId () const |
Private Attributes | |
| size_t | _hash = -1 |
| Int64 | _id |
| Int64 | _locationId |
| Int64 | _ageClassId |
| double | _area |
| AgeAreaRecord | ( | Int64 | locationId, |
| Int64 | ageClassId, | ||
| double | area | ||
| ) |
Constructor.
Initialise AgeAreaRecord._locationId as parameter locationId,AgeAreaRecord._ageClassId as parameter ageClassId and AgeAreaRecord._area as parameter area.
| locationId | Int64 |
| ageClassId | Int64 |
| area | double |
| ~AgeAreaRecord | ( | ) |
| AgeAreaRow asPersistable | ( | ) | const |
Return AgeAreaRow using AgeAreaRecord._id,AgeAreaRecord._locationId,AgeAreaRecord._ageClassId and AgeAreaRecord._area.
| StdAgeAreaRow asTuple | ( | ) | const |
Return StdAgeAreaRow using AgeAreaRecord._id,AgeAreaRecord._locationId,AgeAreaRecord._ageClassId and AgeAreaRecord._area.
| Int64 getId | ( | ) | const |
| size_t hash | ( | ) | const |
if AgeAreaRecord._hash is equal to -1,
assign AgeAreaRecord._hash as moja::hash::hash_combine() using AgeAreaRecord._locationId and AgeAreaRecord._ageClassId.
return AgeAreaRecord._hash.
| void merge | ( | const AgeAreaRecord & | other | ) |
Increase AgeAreaRecord._area by parameter other AgeAreaRecord._area.
| other | AgeAreaRecord& return void |
| bool operator== | ( | const AgeAreaRecord & | other | ) | const |
Check if AgeAreaRecord._locationId is equal to parameter other AgeAreaRecord._locationId and AgeAreaRecord._ageClassId is equal to parameter other AgeAreaRecord._ageClassId.
return boolean value.
| other | AgeAreaRecord& |
| void setId | ( | Int64 | id | ) |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
1.8.17