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

#include <record.h>

Collaboration diagram for ModuleInfoRecord:
Collaboration graph

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
 

Constructor & Destructor Documentation

◆ ModuleInfoRecord()

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.

Parameters
libTypeint
libInfoIdint
moduleTypeint
moduleId
moduleNamestring

◆ ~ModuleInfoRecord()

Member Function Documentation

◆ asPersistable()

ModuleInfoRow asPersistable ( ) const

◆ asTuple()

StdModuleInfoRow asTuple ( ) const

◆ getId()

Int64 getId ( ) const

◆ hash()

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.

Returns
size_t

◆ merge()

void merge ( const ModuleInfoRecord other)

◆ operator==()

bool operator== ( const ModuleInfoRecord other) const

Check if ModuleInfoRecord._moduleName is equal to parameter other ModuleInfoRecord._moduleName.
return the boolean value.

Parameters
otherModuleInfoRecord&
Returns
bool

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _libInfoId

int _libInfoId
private

◆ _libType

int _libType
private

◆ _moduleId

int _moduleId
private

◆ _moduleName

std::string _moduleName
private

◆ _moduleType

int _moduleType
private

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