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

#include <record.h>

Collaboration diagram for LocationErrorRecord:
Collaboration graph

Public Member Functions

 LocationErrorRecord (Int64 locationId, Int64 errorId)
 
 ~LocationErrorRecord ()
 
bool operator== (const LocationErrorRecord &other) const
 
size_t hash () const
 
LocationErrorRow asPersistable () const
 
StdLocationErrorRow asTuple () const
 
void merge (const LocationErrorRecord &other)
 
void setId (Int64 id)
 
Int64 getId () const
 

Private Attributes

size_t _hash = -1
 
Int64 _id
 
Int64 _locationId
 
Int64 _errorId
 

Constructor & Destructor Documentation

◆ LocationErrorRecord()

LocationErrorRecord ( Int64  locationId,
Int64  errorId 
)

Constructor.

Initialise LocationErrorRecord._locationId as parameter locationId and LocationErrorRecord._errorId as parameter errorId.

Parameters
locationIdInt64
errorIdInt64

◆ ~LocationErrorRecord()

Member Function Documentation

◆ asPersistable()

LocationErrorRow asPersistable ( ) const

Return LocationErrorRow using LocationErrorRecord._id,LocationErrorRecord._locationId and LocationErrorRecord._errorId.

Returns
LocationErrorRow

◆ asTuple()

StdLocationErrorRow asTuple ( ) const

Return StdLocationErrorRow using LocationErrorRecord._id,LocationErrorRecord._locationId and LocationErrorRecord._errorId.

Returns
StdLocationErrorRow

◆ getId()

Int64 getId ( ) const

◆ hash()

size_t hash ( ) const

if LocationErrorRecord._hash is equal to -1,
assign LocationErrorRecord._hash as moja::hash::hash_combine() using LocationErrorRecord._locationId and LocationErrorRecord._errorId.
return LocationErrorRecord._hash.

Returns
size_t

◆ merge()

void merge ( const LocationErrorRecord other)

◆ operator==()

bool operator== ( const LocationErrorRecord other) const

Check if LocationErrorRecord._locationid is equal to parameter other LocationErrorRecord._locationdId and LocationErrorRecord._errorId is equal to parameter other LocationErrorRecord._errorId.

Parameters
otherLocationErrorRecord&
Returns
bool

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _errorId

Int64 _errorId
private

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _locationId

Int64 _locationId
private

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