SNAP Library 2.0, User Reference  2013-05-13 16:33:57
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.

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

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

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

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

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

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: