GCBM
|
#include <record.h>
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 |
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.
locationId | Int64 |
moduleId | Int64 |
distId | Poco::Nullable<Int64> |
srcPoolId | Int64 |
dstPoolId | Int64 |
flux | double |
~FluxRecord | ( | ) |
FluxRow asPersistable | ( | ) | const |
Return FluxRow using FluxRecord._id,FluxRecord._locationId,FluxRecord._moduleId,FluxRecord._srcPoolId,FluxRecord._dstPoolId and FluxRecord._flux.
StdFluxRow asTuple | ( | ) | const |
Return StdFluxRow using FluxRecord._id,FluxRecord._locationId,FluxRecord._moduleId,FluxRecord._srcPoolId,FluxRecord._dstPoolId and FluxRecord._flux.
Int64 getId | ( | ) | const |
size_t hash | ( | ) | const |
If FluxRecord._hash is equal to -1, assign FluxRecord._hash as moja::hash::hash_combine() using FluxRecord._locationId,FluxRecord._moduleId,
FluxRecord._distId,FluxRecord._srcPoolId and FluxRecord._dstPoolId. return FluxRecord._hash.
void merge | ( | const FluxRecord & | other | ) |
Increase FluxRecord._flux by parameter other FluxRecord._flux.
other | FluxRecord& |
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.
bool |
void setId | ( | Int64 | id | ) |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |