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

#include <shash.h>

Public Member Functions

 TSHashKeyDat ()
 
 TSHashKeyDat (const TKey &_Key)
 
 TSHashKeyDat (const TKey &_Key, const TDat &_Dat)
 
 TSHashKeyDat (const TSHashKeyDat &HashKeyDat)
 
 TSHashKeyDat (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
TSHashKeyDatoperator= (const TSHashKeyDat &HashKeyDat)
 
bool operator== (const TSHashKeyDat &HashKeyDat) const
 
bool operator< (const TSHashKeyDat &HashKeyDat) const
 
int Hash () const
 

Public Attributes

TKey Key
 
TDat Dat
 

Detailed Description

template<class TKey, class TDat>
class TSHashKeyDat< TKey, TDat >

Definition at line 452 of file shash.h.

Constructor & Destructor Documentation

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

Definition at line 457 of file shash.h.

457 : Key(), Dat() { }
TKey Key
Definition: shash.h:454
TDat Dat
Definition: shash.h:455
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( const TKey &  _Key)
inline

Definition at line 458 of file shash.h.

458 : Key(_Key), Dat() { }
TKey Key
Definition: shash.h:454
TDat Dat
Definition: shash.h:455
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( const TKey &  _Key,
const TDat &  _Dat 
)
inline

Definition at line 459 of file shash.h.

459 : Key(_Key), Dat(_Dat) { }
TKey Key
Definition: shash.h:454
TDat Dat
Definition: shash.h:455
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( const TSHashKeyDat< TKey, TDat > &  HashKeyDat)
inline

Definition at line 460 of file shash.h.

460 : Key(HashKeyDat.Key), Dat(HashKeyDat.Dat) { }
TKey Key
Definition: shash.h:454
TDat Dat
Definition: shash.h:455
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( TSIn SIn)
inlineexplicit

Definition at line 461 of file shash.h.

461 : Key(SIn), Dat(SIn) { }
TKey Key
Definition: shash.h:454
TDat Dat
Definition: shash.h:455

Member Function Documentation

template<class TKey , class TDat >
int TSHashKeyDat< TKey, TDat >::Hash ( ) const
inline

Definition at line 467 of file shash.h.

467 { return Key.GetPrimHashCd(); }
TKey Key
Definition: shash.h:454
template<class TKey , class TDat >
bool TSHashKeyDat< TKey, TDat >::operator< ( const TSHashKeyDat< TKey, TDat > &  HashKeyDat) const
inline

Definition at line 466 of file shash.h.

466 { return Key < HashKeyDat.Key; }
TKey Key
Definition: shash.h:454
template<class TKey , class TDat >
TSHashKeyDat& TSHashKeyDat< TKey, TDat >::operator= ( const TSHashKeyDat< TKey, TDat > &  HashKeyDat)
inline

Definition at line 463 of file shash.h.

463  { if (this != &HashKeyDat) {
464  Key = HashKeyDat.Key; Dat = HashKeyDat.Dat; } return *this; }
TKey Key
Definition: shash.h:454
TDat Dat
Definition: shash.h:455
template<class TKey , class TDat >
bool TSHashKeyDat< TKey, TDat >::operator== ( const TSHashKeyDat< TKey, TDat > &  HashKeyDat) const
inline

Definition at line 465 of file shash.h.

465 { return Key == HashKeyDat.Key; }
TKey Key
Definition: shash.h:454
template<class TKey , class TDat >
void TSHashKeyDat< TKey, TDat >::Save ( TSOut SOut) const
inline

Definition at line 462 of file shash.h.

462 { Key.Save(SOut); Dat.Save(SOut); }
TKey Key
Definition: shash.h:454
TDat Dat
Definition: shash.h:455

Member Data Documentation

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

Definition at line 455 of file shash.h.

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

Definition at line 454 of file shash.h.


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