SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TKeyDat< TKey, TDat > Class Template Reference

#include <ds.h>

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 346 of file ds.h.

Constructor & Destructor Documentation

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

Definition at line 351 of file ds.h.

351 : Key(), Dat(){}
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( const TKeyDat< TKey, TDat > &  KeyDat)
inline

Definition at line 352 of file ds.h.

352 : Key(KeyDat.Key), Dat(KeyDat.Dat){}
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( const TKey &  _Key)
inlineexplicit

Definition at line 353 of file ds.h.

353 : Key(_Key), Dat(){}
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( const TKey &  _Key,
const TDat &  _Dat 
)
inline

Definition at line 354 of file ds.h.

354 : Key(_Key), Dat(_Dat){}
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( TSIn SIn)
inlineexplicit

Definition at line 355 of file ds.h.

355 : Key(SIn), Dat(SIn){}
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348

Member Function Documentation

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

Definition at line 365 of file ds.h.

365 {return Key.GetPrimHashCd();}
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
int TKeyDat< TKey, TDat >::GetSecHashCd ( ) const
inline

Definition at line 366 of file ds.h.

366 {return Key.GetSecHashCd();}
TKey Key
Definition: ds.h:348
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.

95  {
96  XLoadHd(Nm); XLoad(Key); XLoad(Dat);}
#define XLoadHd(Nm)
Definition: bd.h:312
#define XLoad(Nm)
Definition: bd.h:315
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
bool TKeyDat< TKey, TDat >::operator< ( const TKeyDat< TKey, TDat > &  KeyDat) const
inline

Definition at line 363 of file ds.h.

References TKeyDat< TKey, TDat >::Key.

363 {return Key<KeyDat.Key;}
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
TKeyDat& TKeyDat< TKey, TDat >::operator= ( const TKeyDat< TKey, TDat > &  KeyDat)
inline

Definition at line 360 of file ds.h.

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

360  {
361  if (this!=&KeyDat){Key=KeyDat.Key; Dat=KeyDat.Dat;} return *this;}
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
bool TKeyDat< TKey, TDat >::operator== ( const TKeyDat< TKey, TDat > &  KeyDat) const
inline

Definition at line 362 of file ds.h.

References TKeyDat< TKey, TDat >::Key.

362 {return Key==KeyDat.Key;}
TKey Key
Definition: ds.h:348
template<class TKey, class TDat>
void TKeyDat< TKey, TDat >::Save ( TSOut SOut) const
inline

Definition at line 356 of file ds.h.

356 {Key.Save(SOut); Dat.Save(SOut);}
TDat Dat
Definition: ds.h:349
TKey Key
Definition: ds.h:348
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.

99  {
100  XSaveHd(Nm); XSave(Key); XSave(Dat);}
#define XSaveHd(Nm)
Definition: bd.h:318
TDat Dat
Definition: ds.h:349
#define XSave(Nm)
Definition: bd.h:333
TKey Key
Definition: ds.h:348

Member Data Documentation


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