SNAP Library 2.0, User Reference  2013-05-13 16:33:57
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>

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.

                                                                           {
        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.

                                                       {
    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.

                                                       {
    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.

                               {
    Next.Save(SOut); HashCd.Save(SOut); Key.Save(SOut); Dat.Save(SOut);}
template<class TKey , class TDat >
void THashKeyDat< TKey, TDat >::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 123 of file xmlser.h.

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

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: