GCBM
|
#include <record.h>
Public Member Functions | |
LandClassRecord (std::string name) | |
~LandClassRecord () | |
bool | operator== (const LandClassRecord &other) const |
size_t | hash () const |
LandClassRow | asPersistable () const |
StdLandClassRow | asTuple () const |
void | merge (const LandClassRecord &other) |
void | setId (Int64 id) |
Int64 | getId () const |
Private Attributes | |
size_t | _hash = -1 |
Int64 | _id |
std::string | _name |
|
explicit |
~LandClassRecord | ( | ) |
LandClassRow asPersistable | ( | ) | const |
Return LandClassRow using LandClassRecord._id and LandClassRecord._name.
StdLandClassRow asTuple | ( | ) | const |
return StdLandClassRow using LandClassRecord._id and LandClassRecord._name.
Int64 getId | ( | ) | const |
size_t hash | ( | ) | const |
If LandClassRecord._hash is equal to -1,
assign LandClassRecord._hash as moja::hash::hash_combine using LandClassRecord._name.
return LandClassRecord._hash.
void merge | ( | const LandClassRecord & | other | ) |
bool operator== | ( | const LandClassRecord & | other | ) | const |
Check if LandClassRecord._name is equal to other LandClassRecord._name.
return the boolean value.
other | LandClassRecord |
void setId | ( | Int64 | id | ) |
|
mutableprivate |
|
private |
|
private |