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

#include <ds.h>

List of all members.

Public Member Functions

 TKeyDat ()
 TKeyDat (const TKeyDat &KeyDat)
 TKeyDat (const TKey &_Key)
 TKeyDat (const TKey &_Key, const TDat &_Dat)
 TKeyDat (TSIn &SIn)
void Save (TSOut &SOut) const
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm="")
void SaveXml (TSOut &SOut, const TStr &Nm) const
TKeyDatoperator= (const TKeyDat &KeyDat)
bool operator== (const TKeyDat &KeyDat) const
bool operator< (const TKeyDat &KeyDat) const
int GetPrimHashCd () const
int GetSecHashCd () const

Public Attributes

TKey Key
TDat Dat

Detailed Description

template<class TKey, class TDat>
class TKeyDat< TKey, TDat >

Definition at line 336 of file ds.h.


Constructor & Destructor Documentation

template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( ) [inline]

Definition at line 341 of file ds.h.

: Key(), Dat(){}
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( const TKeyDat< TKey, TDat > &  KeyDat) [inline]

Definition at line 342 of file ds.h.

: Key(KeyDat.Key), Dat(KeyDat.Dat){}
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( const TKey &  _Key) [inline, explicit]

Definition at line 343 of file ds.h.

: Key(_Key), Dat(){}
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( const TKey &  _Key,
const TDat &  _Dat 
) [inline]

Definition at line 344 of file ds.h.

: Key(_Key), Dat(_Dat){}
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( TSIn SIn) [inline, explicit]

Definition at line 345 of file ds.h.

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

Member Function Documentation

template<class TKey, class TDat>
int TKeyDat< TKey, TDat >::GetPrimHashCd ( ) const [inline]

Definition at line 355 of file ds.h.

References TKeyDat< TKey, TDat >::Key.

{return Key.GetPrimHashCd();}
template<class TKey, class TDat>
int TKeyDat< TKey, TDat >::GetSecHashCd ( ) const [inline]

Definition at line 356 of file ds.h.

References TKeyDat< TKey, TDat >::Key.

{return Key.GetSecHashCd();}
template<class TKey , class TDat >
void TKeyDat< TKey, TDat >::LoadXml ( const PXmlTok XmlTok,
const TStr Nm = "" 
)

Definition at line 95 of file xmlser.h.

References XLoad, and XLoadHd.

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

Definition at line 353 of file ds.h.

References TKeyDat< TKey, TDat >::Key.

{return Key<KeyDat.Key;}
template<class TKey, class TDat>
TKeyDat& TKeyDat< TKey, TDat >::operator= ( const TKeyDat< TKey, TDat > &  KeyDat) [inline]

Definition at line 350 of file ds.h.

References TKeyDat< TKey, TDat >::Dat, and TKeyDat< TKey, TDat >::Key.

                                           {
    if (this!=&KeyDat){Key=KeyDat.Key; Dat=KeyDat.Dat;} return *this;}
template<class TKey, class TDat>
bool TKeyDat< TKey, TDat >::operator== ( const TKeyDat< TKey, TDat > &  KeyDat) const [inline]

Definition at line 352 of file ds.h.

References TKeyDat< TKey, TDat >::Key.

{return Key==KeyDat.Key;}
template<class TKey, class TDat>
void TKeyDat< TKey, TDat >::Save ( TSOut SOut) const [inline]

Definition at line 346 of file ds.h.

References TKeyDat< TKey, TDat >::Dat, and TKeyDat< TKey, TDat >::Key.

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

Definition at line 99 of file xmlser.h.

References XSave, and XSaveHd.

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

Member Data Documentation

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

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