SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
THashMPKeyDat< TKey, TDat > Class Template Reference

#include <hashmp.h>

Collaboration diagram for THashMPKeyDat< TKey, TDat >:

Public Member Functions

 THashMPKeyDat ()
 
 THashMPKeyDat (const int &_HashCd, const TKey &_Key)
 
 THashMPKeyDat (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
bool operator== (const THashMPKeyDat &HashKeyDat) const
 
THashMPKeyDatoperator= (const THashMPKeyDat &HashKeyDat)
 

Public Attributes

TInt HashCd
 
TKey Key
 
TDat Dat
 

Detailed Description

template<class TKey, class TDat>
class THashMPKeyDat< TKey, TDat >

Definition at line 12 of file hashmp.h.

Constructor & Destructor Documentation

template<class TKey , class TDat >
THashMPKeyDat< TKey, TDat >::THashMPKeyDat ( )
inline

Definition at line 18 of file hashmp.h.

18  :
19  HashCd(-1), Key(), Dat(){}
TKey Key
Definition: hashmp.h:15
TInt HashCd
Definition: hashmp.h:14
TDat Dat
Definition: hashmp.h:16
template<class TKey , class TDat >
THashMPKeyDat< TKey, TDat >::THashMPKeyDat ( const int &  _HashCd,
const TKey &  _Key 
)
inline

Definition at line 20 of file hashmp.h.

20  :
21  HashCd(_HashCd), Key(_Key), Dat(){}
TKey Key
Definition: hashmp.h:15
TInt HashCd
Definition: hashmp.h:14
TDat Dat
Definition: hashmp.h:16
template<class TKey , class TDat >
THashMPKeyDat< TKey, TDat >::THashMPKeyDat ( TSIn SIn)
inlineexplicit

Definition at line 22 of file hashmp.h.

22  :
23  HashCd(SIn), Key(SIn), Dat(SIn){}
TKey Key
Definition: hashmp.h:15
TInt HashCd
Definition: hashmp.h:14
TDat Dat
Definition: hashmp.h:16

Member Function Documentation

template<class TKey , class TDat >
THashMPKeyDat& THashMPKeyDat< TKey, TDat >::operator= ( const THashMPKeyDat< TKey, TDat > &  HashKeyDat)
inline

Definition at line 31 of file hashmp.h.

References THashMPKeyDat< TKey, TDat >::Dat, THashMPKeyDat< TKey, TDat >::HashCd, and THashMPKeyDat< TKey, TDat >::Key.

31  {
32  if (this!=&HashKeyDat){
33  HashCd=HashKeyDat.HashCd; Key=HashKeyDat.Key;
34  Dat=HashKeyDat.Dat;}
35  return *this;}
TKey Key
Definition: hashmp.h:15
TInt HashCd
Definition: hashmp.h:14
TDat Dat
Definition: hashmp.h:16
template<class TKey , class TDat >
bool THashMPKeyDat< TKey, TDat >::operator== ( const THashMPKeyDat< TKey, TDat > &  HashKeyDat) const
inline

Definition at line 27 of file hashmp.h.

References THashMPKeyDat< TKey, TDat >::Dat, THashMPKeyDat< TKey, TDat >::HashCd, and THashMPKeyDat< TKey, TDat >::Key.

27  {
28  if (this==&HashKeyDat || (HashCd==HashKeyDat.HashCd
29  && Key==HashKeyDat.Key && Dat==HashKeyDat.Dat)){return true;}
30  return false;}
TKey Key
Definition: hashmp.h:15
TInt HashCd
Definition: hashmp.h:14
TDat Dat
Definition: hashmp.h:16
template<class TKey , class TDat >
void THashMPKeyDat< TKey, TDat >::Save ( TSOut SOut) const
inline

Definition at line 24 of file hashmp.h.

References TInt::Save().

24  {
25  HashCd.Save(SOut); Key.Save(SOut); Dat.Save(SOut);}
void Save(TSOut &SOut) const
Definition: dt.h:1153
TKey Key
Definition: hashmp.h:15
TInt HashCd
Definition: hashmp.h:14
TDat Dat
Definition: hashmp.h:16

Here is the call graph for this function:

Member Data Documentation


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