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

#include <record.h>

Collaboration diagram for DisturbanceRecord:
Collaboration graph

Public Member Functions

 DisturbanceRecord (Int64 locationId, Int64 distRecId, Int64 previousLocationId, double area)
 
 ~DisturbanceRecord ()
 
bool operator== (const DisturbanceRecord &other) const
 
size_t hash () const
 
DisturbanceRow asPersistable () const
 
StdDisturbanceRow asTuple () const
 
void merge (const DisturbanceRecord &other)
 
void setId (Int64 id)
 
Int64 getId () const
 

Private Attributes

size_t _hash = -1
 
Int64 _id
 
Int64 _locationId
 
Int64 _distRecId
 
Int64 _previousLocationId
 
double _area
 

Constructor & Destructor Documentation

◆ DisturbanceRecord()

DisturbanceRecord ( Int64  locationId,
Int64  distRecId,
Int64  previousLocationId,
double  area 
)

Constructor

Initialise variables DisturbanceRecord._locationId as parameter locationId,DisturbanceRecord._distRecId as parameter distRecId,
DisturbanceRecord._previousLocationId as parameter previousLocationId and DisturbanceRecord._area as parameter area.

Parameters
locationIdInt64
distRecIdInt64
previousLocationIdInt64
areadouble

◆ ~DisturbanceRecord()

Member Function Documentation

◆ asPersistable()

DisturbanceRow asPersistable ( ) const

◆ asTuple()

StdDisturbanceRow asTuple ( ) const

◆ getId()

Int64 getId ( ) const

◆ hash()

size_t hash ( ) const

◆ merge()

void merge ( const DisturbanceRecord other)

Increase DisturbanceRecord._area by parameter other DisturbanceRecord._area.

Parameters
otherDisturbanceRecord&
Returns
void

◆ operator==()

bool operator== ( const DisturbanceRecord other) const

Check if DisturbanceRecord._locationId is equal to parameter other DisturbanceRecord._locationId,
DisturbanceRecord._distRecId is equal to parameter other DisturbanceRecord._distRecId and
DisturbanceRecord._previousLocationId is equal to parameter other DisturbanceRecord._previousLocationId
return boolean values.

Parameters
otherDisturbanceRecord&
Returns
bool

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _area

double _area
private

◆ _distRecId

Int64 _distRecId
private

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _locationId

Int64 _locationId
private

◆ _previousLocationId

Int64 _previousLocationId
private

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