GCBM
Public Member Functions | Private Attributes | List of all members
LandClassRecord Class Reference

#include <record.h>

Collaboration diagram for LandClassRecord:
Collaboration graph

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
 

Constructor & Destructor Documentation

◆ LandClassRecord()

LandClassRecord ( std::string  name)
explicit

Constructor.

Initialise LandClassRecord._name as parameter name.

Parameters
namestring

◆ ~LandClassRecord()

Member Function Documentation

◆ asPersistable()

LandClassRow asPersistable ( ) const

Return LandClassRow using LandClassRecord._id and LandClassRecord._name.

Returns
LandClassRow

◆ asTuple()

StdLandClassRow asTuple ( ) const

return StdLandClassRow using LandClassRecord._id and LandClassRecord._name.

Returns
StdLandClassRow

◆ getId()

Int64 getId ( ) const

◆ hash()

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.

Returns
size_t

◆ merge()

void merge ( const LandClassRecord other)

◆ operator==()

bool operator== ( const LandClassRecord other) const

Check if LandClassRecord._name is equal to other LandClassRecord._name.
return the boolean value.

Parameters
otherLandClassRecord
Returns
bool

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _name

std::string _name
private

The documentation for this class was generated from the following files: