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
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.

References TSHashKeyDat< TKey, TDat >::Key.

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.

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

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.

References TSHashKeyDat< TKey, TDat >::Key.

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

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