SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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 345 of file ds.h.

Constructor & Destructor Documentation

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

Definition at line 350 of file ds.h.

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

Definition at line 351 of file ds.h.

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

Definition at line 352 of file ds.h.

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

Definition at line 353 of file ds.h.

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

Definition at line 354 of file ds.h.

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

Member Function Documentation

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

Definition at line 364 of file ds.h.

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

Definition at line 365 of file ds.h.

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

Definition at line 95 of file xmlser.h.

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:348
TKey Key
Definition: ds.h:347
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.

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

Definition at line 359 of file ds.h.

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

Definition at line 361 of file ds.h.

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

Definition at line 355 of file ds.h.

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

Definition at line 99 of file xmlser.h.

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

Member Data Documentation

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

Definition at line 348 of file ds.h.

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

Definition at line 347 of file ds.h.


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