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
THashKeyDat< TKey, TDat > Class Template Reference

#include <hash.h>

Public Member Functions

 THashKeyDat ()
 
 THashKeyDat (const int &_Next, const int &_HashCd, const TKey &_Key)
 
 THashKeyDat (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm="")
 
void SaveXml (TSOut &SOut, const TStr &Nm) const
 
bool operator== (const THashKeyDat &HashKeyDat) const
 
THashKeyDatoperator= (const THashKeyDat &HashKeyDat)
 

Public Attributes

TInt Next
 
TInt HashCd
 
TKey Key
 
TDat Dat
 

Detailed Description

template<class TKey, class TDat>
class THashKeyDat< TKey, TDat >

Definition at line 7 of file hash.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file hash.h.

14  :
15  Next(-1), HashCd(-1), Key(), Dat(){}
TDat Dat
Definition: hash.h:12
TInt Next
Definition: hash.h:9
TKey Key
Definition: hash.h:11
TInt HashCd
Definition: hash.h:10
template<class TKey, class TDat>
THashKeyDat< TKey, TDat >::THashKeyDat ( const int &  _Next,
const int &  _HashCd,
const TKey &  _Key 
)
inline

Definition at line 16 of file hash.h.

16  :
17  Next(_Next), HashCd(_HashCd), Key(_Key), Dat(){}
TDat Dat
Definition: hash.h:12
TInt Next
Definition: hash.h:9
TKey Key
Definition: hash.h:11
TInt HashCd
Definition: hash.h:10
template<class TKey, class TDat>
THashKeyDat< TKey, TDat >::THashKeyDat ( TSIn SIn)
inlineexplicit

Definition at line 18 of file hash.h.

18  :
19  Next(SIn), HashCd(SIn), Key(SIn), Dat(SIn){}
TDat Dat
Definition: hash.h:12
TInt Next
Definition: hash.h:9
TKey Key
Definition: hash.h:11
TInt HashCd
Definition: hash.h:10

Member Function Documentation

template<class TKey , class TDat >
void THashKeyDat< TKey, TDat >::LoadXml ( const PXmlTok XmlTok,
const TStr Nm = "" 
)

Definition at line 119 of file xmlser.h.

119  {
120  XLoadHd(Nm); XLoad(Key); XLoad(Dat);}
TDat Dat
Definition: hash.h:12
#define XLoadHd(Nm)
Definition: bd.h:312
#define XLoad(Nm)
Definition: bd.h:315
TKey Key
Definition: hash.h:11
template<class TKey, class TDat>
THashKeyDat& THashKeyDat< TKey, TDat >::operator= ( const THashKeyDat< TKey, TDat > &  HashKeyDat)
inline

Definition at line 29 of file hash.h.

29  {
30  if (this!=&HashKeyDat){
31  Next=HashKeyDat.Next; HashCd=HashKeyDat.HashCd;
32  Key=HashKeyDat.Key; Dat=HashKeyDat.Dat;}
33  return *this;}
TDat Dat
Definition: hash.h:12
TInt Next
Definition: hash.h:9
TKey Key
Definition: hash.h:11
TInt HashCd
Definition: hash.h:10
template<class TKey, class TDat>
bool THashKeyDat< TKey, TDat >::operator== ( const THashKeyDat< TKey, TDat > &  HashKeyDat) const
inline

Definition at line 25 of file hash.h.

25  {
26  if (this==&HashKeyDat || (HashCd==HashKeyDat.HashCd
27  && Key==HashKeyDat.Key && Dat==HashKeyDat.Dat)){return true;}
28  return false;}
TDat Dat
Definition: hash.h:12
TKey Key
Definition: hash.h:11
TInt HashCd
Definition: hash.h:10
template<class TKey, class TDat>
void THashKeyDat< TKey, TDat >::Save ( TSOut SOut) const
inline

Definition at line 20 of file hash.h.

20  {
21  Next.Save(SOut); HashCd.Save(SOut); Key.Save(SOut); Dat.Save(SOut);}
TDat Dat
Definition: hash.h:12
void Save(TSOut &SOut) const
Definition: dt.h:1060
TInt Next
Definition: hash.h:9
TKey Key
Definition: hash.h:11
TInt HashCd
Definition: hash.h:10
template<class TKey , class TDat >
void THashKeyDat< TKey, TDat >::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 123 of file xmlser.h.

123  {
124  XSaveHd(Nm); XSave(Key); XSave(Dat);}
TDat Dat
Definition: hash.h:12
#define XSaveHd(Nm)
Definition: bd.h:318
#define XSave(Nm)
Definition: bd.h:333
TKey Key
Definition: hash.h:11

Member Data Documentation

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

Definition at line 12 of file hash.h.

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

Definition at line 10 of file hash.h.

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

Definition at line 11 of file hash.h.

template<class TKey, class TDat>
TInt THashKeyDat< TKey, TDat >::Next

Definition at line 9 of file hash.h.


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