SNAP Library 2.4, Developer Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 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.

341 : Key(), Dat(){}
TDat Dat
Definition: ds.h:339
TKey Key
Definition: ds.h:338
template<class TKey, class TDat>
TKeyDat< TKey, TDat >::TKeyDat ( const TKeyDat< TKey, TDat > &  KeyDat)
inline

Definition at line 342 of file ds.h.

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

Definition at line 343 of file ds.h.

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

Definition at line 344 of file ds.h.

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

Definition at line 345 of file ds.h.

345 : Key(SIn), Dat(SIn){}
TDat Dat
Definition: ds.h:339
TKey Key
Definition: ds.h:338

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.

355 {return Key.GetPrimHashCd();}
TKey Key
Definition: ds.h:338
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.

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

353 {return Key<KeyDat.Key;}
TKey Key
Definition: ds.h:338
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.

350  {
351  if (this!=&KeyDat){Key=KeyDat.Key; Dat=KeyDat.Dat;} return *this;}
TDat Dat
Definition: ds.h:339
TKey Key
Definition: ds.h:338
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.

352 {return Key==KeyDat.Key;}
TKey Key
Definition: ds.h:338
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.

346 {Key.Save(SOut); Dat.Save(SOut);}
TDat Dat
Definition: ds.h:339
TKey Key
Definition: ds.h:338
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:339
#define XSave(Nm)
Definition: bd.h:333
TKey Key
Definition: ds.h:338

Member Data Documentation

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

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