SNAP Library , Developer Reference  2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TSHashKeyDat< TKey, TDat > Class Template Reference

#include <shash.h>

List of all members.

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.

: Key(), Dat() { }
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( const TKey &  _Key) [inline]

Definition at line 458 of file shash.h.

: Key(_Key), Dat() { }
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( const TKey &  _Key,
const TDat &  _Dat 
) [inline]

Definition at line 459 of file shash.h.

: Key(_Key), Dat(_Dat) { }
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( const TSHashKeyDat< TKey, TDat > &  HashKeyDat) [inline]

Definition at line 460 of file shash.h.

: Key(HashKeyDat.Key), Dat(HashKeyDat.Dat) { }
template<class TKey , class TDat >
TSHashKeyDat< TKey, TDat >::TSHashKeyDat ( TSIn SIn) [inline, explicit]

Definition at line 461 of file shash.h.

: Key(SIn), Dat(SIn) { }

Member Function Documentation

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

Definition at line 467 of file shash.h.

References TSHashKeyDat< TKey, TDat >::Key.

{ return Key.GetPrimHashCd(); }
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.

{ return Key < HashKeyDat.Key; }
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.

                                                            { if (this != &HashKeyDat) {
    Key = HashKeyDat.Key;  Dat = HashKeyDat.Dat; }  return *this; }
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.

{ return Key == HashKeyDat.Key; }
template<class TKey , class TDat >
void TSHashKeyDat< TKey, TDat >::Save ( TSOut SOut) const [inline]

Definition at line 462 of file shash.h.

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

{ Key.Save(SOut);  Dat.Save(SOut); }

Member Data Documentation


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