OmniSciDB  c07336695a
dict_ref_t Struct Reference

#include <DictRef.h>

Public Member Functions

 dict_ref_t ()
 
 dict_ref_t (int32_t db_id, int32_t dict_id)
 
bool operator== (const struct dict_ref_t &rhs) const
 
struct dict_ref_toperator= (const struct dict_ref_t &rhs)
 
bool operator< (const struct dict_ref_t &rhs) const
 
size_t operator() (const struct dict_ref_t &ref) const noexcept
 

Public Attributes

int32_t dbId
 
int32_t dictId
 

Detailed Description

Definition at line 8 of file DictRef.h.

Constructor & Destructor Documentation

◆ dict_ref_t() [1/2]

dict_ref_t::dict_ref_t ( )
inline

Definition at line 12 of file DictRef.h.

12 {}

◆ dict_ref_t() [2/2]

dict_ref_t::dict_ref_t ( int32_t  db_id,
int32_t  dict_id 
)
inline

Definition at line 13 of file DictRef.h.

13 : dbId(db_id), dictId(dict_id) {}
int32_t dictId
Definition: DictRef.h:10
int32_t dbId
Definition: DictRef.h:9

Member Function Documentation

◆ operator()()

size_t dict_ref_t::operator() ( const struct dict_ref_t ref) const
inlinenoexcept

Definition at line 31 of file DictRef.h.

31  {
32  std::hash<int32_t> int32_hash;
33  return int32_hash(ref.dictId) ^ (int32_hash(ref.dbId) << 2);
34  }
int32_t dictId
Definition: DictRef.h:10
int32_t dbId
Definition: DictRef.h:9

◆ operator<()

bool dict_ref_t::operator< ( const struct dict_ref_t rhs) const
inline

Definition at line 25 of file DictRef.h.

References dbId, and dictId.

25  {
26  return (this->dbId < rhs.dbId)
27  ? true
28  : (this->dbId == rhs.dbId) ? this->dictId < rhs.dictId : false;
29  }
int32_t dictId
Definition: DictRef.h:10
int32_t dbId
Definition: DictRef.h:9

◆ operator=()

struct dict_ref_t& dict_ref_t::operator= ( const struct dict_ref_t rhs)
inline

Definition at line 19 of file DictRef.h.

References dbId, and dictId.

19  {
20  this->dbId = rhs.dbId;
21  this->dictId = rhs.dictId;
22  return *this;
23  };
int32_t dictId
Definition: DictRef.h:10
int32_t dbId
Definition: DictRef.h:9

◆ operator==()

bool dict_ref_t::operator== ( const struct dict_ref_t rhs) const
inline

Definition at line 15 of file DictRef.h.

References dbId, and dictId.

15  {
16  return this->dictId == rhs.dictId && this->dbId == rhs.dbId;
17  }
int32_t dictId
Definition: DictRef.h:10
int32_t dbId
Definition: DictRef.h:9

Member Data Documentation

◆ dbId

int32_t dict_ref_t::dbId

Definition at line 9 of file DictRef.h.

Referenced by DictDescriptor::DictDescriptor(), operator<(), operator=(), and operator==().

◆ dictId


The documentation for this struct was generated from the following file: