SNAP Library 2.0, Developer 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
THashSetKey< TKey > Class Template Reference

#include <shash.h>

Collaboration diagram for THashSetKey< TKey >:

List of all members.

Public Member Functions

 THashSetKey ()
 THashSetKey (const int &_Next, const int &_HashCd, const TKey &_Key)
 THashSetKey (TSIn &SIn)
void Save (TSOut &SOut) const
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm="")
void SaveXml (TSOut &SOut, const TStr &Nm) const
THashSetKeyoperator= (const THashSetKey &SetKey)

Public Attributes

TInt Next
TInt HashCd
TKey Key

Detailed Description

template<class TKey>
class THashSetKey< TKey >

Definition at line 981 of file shash.h.


Constructor & Destructor Documentation

template<class TKey >
THashSetKey< TKey >::THashSetKey ( ) [inline]

Definition at line 987 of file shash.h.

               :
    Next(-1), HashCd(-1), Key() {}
template<class TKey >
THashSetKey< TKey >::THashSetKey ( const int &  _Next,
const int &  _HashCd,
const TKey &  _Key 
) [inline]

Definition at line 989 of file shash.h.

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

Definition at line 991 of file shash.h.

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

Member Function Documentation

template<class TKey >
void THashSetKey< TKey >::LoadXml ( const PXmlTok XmlTok,
const TStr Nm = "" 
) [inline]

Definition at line 995 of file shash.h.

References THashSetKey< TKey >::Key, XLoad, and XLoadHd.

                                                         {
    XLoadHd(Nm); XLoad(Key); }
template<class TKey >
THashSetKey& THashSetKey< TKey >::operator= ( const THashSetKey< TKey > &  SetKey) [inline]

Definition at line 1000 of file shash.h.

References THashSetKey< TKey >::HashCd, THashSetKey< TKey >::Key, and THashSetKey< TKey >::Next.

                                                    {
    if (this!=&SetKey) { Next=SetKey.Next; HashCd=SetKey.HashCd; Key=SetKey.Key; }
    return *this; }
template<class TKey >
void THashSetKey< TKey >::Save ( TSOut SOut) const [inline]

Definition at line 993 of file shash.h.

References THashSetKey< TKey >::HashCd, THashSetKey< TKey >::Key, THashSetKey< TKey >::Next, and TInt::Save().

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

Here is the call graph for this function:

template<class TKey >
void THashSetKey< TKey >::SaveXml ( TSOut SOut,
const TStr Nm 
) const [inline]

Definition at line 997 of file shash.h.

References THashSetKey< TKey >::Key, XSave, and XSaveHd.

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

Member Data Documentation

template<class TKey >
TInt THashSetKey< TKey >::Next

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