SNAP Library 3.0, User Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
THashMPKeyDat< TKey, TDat > Class Template Reference

#include <hashmp.h>

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.

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.

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.

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

Member Data Documentation

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

Definition at line 16 of file hashmp.h.

template<class TKey , class TDat >
TInt THashMPKeyDat< TKey, TDat >::HashCd

Definition at line 14 of file hashmp.h.

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

Definition at line 15 of file hashmp.h.


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