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

#include <record.h>

Collaboration diagram for PoolInfoRecord:
Collaboration graph

Public Member Functions

 PoolInfoRecord (const std::string &name)
 
 ~PoolInfoRecord ()
 
bool operator== (const PoolInfoRecord &other) const
 
size_t hash () const
 
PoolInfoRow asPersistable () const
 
void merge (const PoolInfoRecord &other)
 
void setId (Int64 id)
 
Int64 getId () const
 

Private Attributes

size_t _hash = -1
 
Int64 _id
 
std::string _name
 

Constructor & Destructor Documentation

◆ PoolInfoRecord()

PoolInfoRecord ( const std::string &  name)
explicit

Constructor

Initialise PoolInfoRecord._name as parameter name.

Parameters
namestring

◆ ~PoolInfoRecord()

Member Function Documentation

◆ asPersistable()

PoolInfoRow asPersistable ( ) const

return PoolInfoRow using PoolInfoRecord._id and PoolInfoRecord._name as parameters.

Returns
PoolInfoRow

◆ getId()

Int64 getId ( ) const

◆ hash()

size_t hash ( ) const

If PoolInfoRecord._hash is equal to -1,
assign PoolInfoRecord._hash as moja::hash::hash_combine() using PoolInfoRecord._name.
return PoolInfoRecord._hash.

Returns
size_t

◆ merge()

void merge ( const PoolInfoRecord other)

◆ operator==()

bool operator== ( const PoolInfoRecord other) const

Check if PoolInfoRecord._name is equal to parameter other PoolInfoRecord._name.
return the boolean value.

Parameters
otherPoolInfoRecord&
Returns
bool

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _name

std::string _name
private

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