GCBM
|
#include <record.h>
Public Member Functions | |
ModuleInfoRecord (int libType, int libInfoId, int moduleType, int moduleId, std::string moduleName) | |
~ModuleInfoRecord () | |
bool | operator== (const ModuleInfoRecord &other) const |
size_t | hash () const |
ModuleInfoRow | asPersistable () const |
StdModuleInfoRow | asTuple () const |
void | merge (const ModuleInfoRecord &other) |
void | setId (Int64 id) |
Int64 | getId () const |
Private Attributes | |
size_t | _hash = -1 |
Int64 | _id |
int | _libType |
int | _libInfoId |
int | _moduleType |
int | _moduleId |
std::string | _moduleName |
ModuleInfoRecord | ( | int | libType, |
int | libInfoId, | ||
int | moduleType, | ||
int | moduleId, | ||
std::string | moduleName | ||
) |
Constructor.
Initialise variables ModuleInfoRecord._libType as parameter libType, ModuleInfoRecord._libInfoId as parameter libInfoId,
ModuleInfoRecord._moduleType as parameter moduleType,ModuleInfoRecord._moduleId as parameter moduleId,ModuleInfoRecord._moduleName as parameter moduleName.
libType | int |
libInfoId | int |
moduleType | int |
moduleId | |
moduleName | string |
~ModuleInfoRecord | ( | ) |
ModuleInfoRow asPersistable | ( | ) | const |
Return ModuleInfoRow using ModuleInfoRecord._id,ModuleInfoRecord._libType,ModuleInfoRecord._moduleType,ModuleInfoRecord._moduleId,ModuleInfoRecord._moduleName as paramters.
StdModuleInfoRow asTuple | ( | ) | const |
Return StdModuleInfoRow using ModuleInfoRecord._id,ModuleInfoRecord._libType,ModuleInfoRecord._moduleType,ModuleInfoRecord._moduleId,ModuleInfoRecord._moduleName as paramters.
Int64 getId | ( | ) | const |
size_t hash | ( | ) | const |
If ModuleInfoRecord._hash is equal to -1,
assign ModuleInfoRecord._hash as moja::hash::hash_combine() using ModuleInfoRecord._moduleName as a parameter.
return ModuleInfoRecord._hash.
void merge | ( | const ModuleInfoRecord & | other | ) |
bool operator== | ( | const ModuleInfoRecord & | other | ) | const |
Check if ModuleInfoRecord._moduleName is equal to parameter other ModuleInfoRecord._moduleName.
return the boolean value.
other | ModuleInfoRecord& |
void setId | ( | Int64 | id | ) |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |