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

#include <record.h>

Collaboration diagram for FluxRecord:
Collaboration graph

Public Member Functions

 FluxRecord (Int64 locationId, Int64 moduleId, Poco::Nullable< Int64 > distId, Int64 srcPoolId, Int64 dstPoolId, double flux)
 
 ~FluxRecord ()
 
bool operator== (const FluxRecord &other) const
 
size_t hash () const
 
FluxRow asPersistable () const
 
StdFluxRow asTuple () const
 
void merge (const FluxRecord &other)
 
void setId (Int64 id)
 
Int64 getId () const
 

Private Attributes

size_t _hash = -1
 
Int64 _id
 
Int64 _locationId
 
Int64 _moduleId
 
Poco::Nullable< Int64 > _distId
 
Int64 _srcPoolId
 
Int64 _dstPoolId
 
double _flux
 

Constructor & Destructor Documentation

◆ FluxRecord()

FluxRecord ( Int64  locationId,
Int64  moduleId,
Poco::Nullable< Int64 >  distId,
Int64  srcPoolId,
Int64  dstPoolId,
double  flux 
)

Constructor

Initialise variables FluxRecord._locationId as parameter locationId,FluxRecord._moduleId as parameter moduleId,
FluxRecord._distId as parameter distId,FluxRecord._srcPoolId as parameter srcPoolId,FluxRecord._dstPoolId as parameter dstPoolId and FluxRecord._flux as parameter flux.

Parameters
locationIdInt64
moduleIdInt64
distIdPoco::Nullable<Int64>
srcPoolIdInt64
dstPoolIdInt64
fluxdouble

◆ ~FluxRecord()

~FluxRecord ( )

Member Function Documentation

◆ asPersistable()

FluxRow asPersistable ( ) const

◆ asTuple()

StdFluxRow asTuple ( ) const

◆ getId()

Int64 getId ( ) const

◆ hash()

size_t hash ( ) const

◆ merge()

void merge ( const FluxRecord other)

Increase FluxRecord._flux by parameter other FluxRecord._flux.

Parameters
otherFluxRecord&
Returns
void

◆ operator==()

bool operator== ( const FluxRecord other) const

Check if FluxRecord._locationId is equal to parameter other FluxRecord._locationId,FluxRecord._moduleId is equal to parameter other FluxRecord._moduleId,
FluxRecord._distId is equal to parameter other FluxRecord._distId,FluxRecord._srcPoolId is equal to parameter other FluxRecord._srcPoolId and
FluxRecord._dstPoolId is equal to parameter other FluxRecord._dstPoolId. return boolean values.

Returns
other FluxRecord&
Parameters
bool

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _distId

Poco::Nullable<Int64> _distId
private

◆ _dstPoolId

Int64 _dstPoolId
private

◆ _flux

double _flux
private

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _locationId

Int64 _locationId
private

◆ _moduleId

Int64 _moduleId
private

◆ _srcPoolId

Int64 _srcPoolId
private

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