SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
THashKeyDat< TKey, TDat > Class Template Reference

#include <hash.h>

Collaboration diagram for THashKeyDat< TKey, TDat >:

List of all members.

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.

               :
    Next(-1), HashCd(-1), Key(), Dat(){}
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.

                                                                     :
    Next(_Next), HashCd(_HashCd), Key(_Key), Dat(){}
template<class TKey, class TDat>
THashKeyDat< TKey, TDat >::THashKeyDat ( TSIn SIn) [inline, explicit]

Definition at line 18 of file hash.h.

                                 :
    Next(SIn), HashCd(SIn), Key(SIn), Dat(SIn){}

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.

References XLoad, and XLoadHd.

                                                                           {
        XLoadHd(Nm); XLoad(Key); XLoad(Dat);}
template<class TKey, class TDat>
THashKeyDat& THashKeyDat< TKey, TDat >::operator= ( const THashKeyDat< TKey, TDat > &  HashKeyDat) [inline]

Definition at line 29 of file hash.h.

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

                                                       {
    if (this!=&HashKeyDat){
      Next=HashKeyDat.Next; HashCd=HashKeyDat.HashCd;
      Key=HashKeyDat.Key; Dat=HashKeyDat.Dat;}
    return *this;}
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.

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

                                                       {
    if (this==&HashKeyDat || (HashCd==HashKeyDat.HashCd
      && Key==HashKeyDat.Key && Dat==HashKeyDat.Dat)){return true;}
    return false;}
template<class TKey, class TDat>
void THashKeyDat< TKey, TDat >::Save ( TSOut SOut) const [inline]

Definition at line 20 of file hash.h.

References THashKeyDat< TKey, TDat >::Dat, THashKeyDat< TKey, TDat >::HashCd, THashKeyDat< TKey, TDat >::Key, THashKeyDat< TKey, TDat >::Next, and TInt::Save().

                               {
    Next.Save(SOut); HashCd.Save(SOut); Key.Save(SOut); Dat.Save(SOut);}

Here is the call graph for this function:

template<class TKey , class TDat >
void THashKeyDat< TKey, TDat >::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 123 of file xmlser.h.

References XSave, and XSaveHd.

                                                                        {
        XSaveHd(Nm); XSave(Key); XSave(Dat);}

Member Data Documentation


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