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

#include <hashmp.h>

Collaboration diagram for THashMPKeyDatI< TKey, TDat >:

Public Types

typedef THashMPKeyDat< TKey, TDat > TPHKeyDat
 

Public Member Functions

 THashMPKeyDatI ()
 
 THashMPKeyDatI (const THashMPKeyDatI &_HashKeyDatI)
 
 THashMPKeyDatI (const TPHKeyDat *_KeyDatI, const TPHKeyDat *_EndI)
 
THashMPKeyDatIoperator= (const THashMPKeyDatI &HashKeyDatI)
 
bool operator== (const THashMPKeyDatI &HashKeyDatI) const
 
bool operator< (const THashMPKeyDatI &HashKeyDatI) const
 
THashMPKeyDatIoperator++ (int)
 
THashMPKeyDatIoperator-- (int)
 
TPHKeyDatoperator* () const
 
TPHKeyDatoperator() () const
 
TPHKeyDatoperator-> () const
 
THashMPKeyDatINext ()
 
bool IsEmpty () const
 Tests whether the iterator has been initialized. More...
 
bool IsEnd () const
 Tests whether the iterator is pointing to the past-end element. More...
 
const TKey & GetKey () const
 
const TDat & GetDat () const
 
TDat & GetDat ()
 

Private Attributes

TPHKeyDatKeyDatI
 
TPHKeyDatEndI
 

Detailed Description

template<class TKey, class TDat>
class THashMPKeyDatI< TKey, TDat >

Definition at line 42 of file hashmp.h.

Member Typedef Documentation

template<class TKey , class TDat >
typedef THashMPKeyDat<TKey, TDat> THashMPKeyDatI< TKey, TDat >::TPHKeyDat

Definition at line 44 of file hashmp.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file hashmp.h.

49 : KeyDatI(NULL), EndI(NULL){}
TPHKeyDat * EndI
Definition: hashmp.h:47
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
THashMPKeyDatI< TKey, TDat >::THashMPKeyDatI ( const THashMPKeyDatI< TKey, TDat > &  _HashKeyDatI)
inline

Definition at line 50 of file hashmp.h.

50  :
51  KeyDatI(_HashKeyDatI.KeyDatI), EndI(_HashKeyDatI.EndI){}
TPHKeyDat * EndI
Definition: hashmp.h:47
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
THashMPKeyDatI< TKey, TDat >::THashMPKeyDatI ( const TPHKeyDat _KeyDatI,
const TPHKeyDat _EndI 
)
inline

Definition at line 52 of file hashmp.h.

52  :
53  KeyDatI((TPHKeyDat*)_KeyDatI), EndI((TPHKeyDat*)_EndI){}
TPHKeyDat * EndI
Definition: hashmp.h:47
THashMPKeyDat< TKey, TDat > TPHKeyDat
Definition: hashmp.h:44
TPHKeyDat * KeyDatI
Definition: hashmp.h:46

Member Function Documentation

template<class TKey , class TDat >
const TDat& THashMPKeyDatI< TKey, TDat >::GetDat ( ) const
inline

Definition at line 74 of file hashmp.h.

References THashMPKeyDat< TKey, TDat >::Dat.

74 {/*Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1));*/ return KeyDatI->Dat;}
TDat Dat
Definition: hashmp.h:16
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
TDat& THashMPKeyDatI< TKey, TDat >::GetDat ( )
inline

Definition at line 75 of file hashmp.h.

References Assert, THashMPKeyDat< TKey, TDat >::Dat, and THashMPKeyDat< TKey, TDat >::HashCd.

75 {Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Dat;}
TInt HashCd
Definition: hashmp.h:14
#define Assert(Cond)
Definition: bd.h:251
TDat Dat
Definition: hashmp.h:16
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
const TKey& THashMPKeyDatI< TKey, TDat >::GetKey ( ) const
inline

Definition at line 73 of file hashmp.h.

References Assert, THashMPKeyDat< TKey, TDat >::HashCd, and THashMPKeyDat< TKey, TDat >::Key.

73 {Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Key;}
TKey Key
Definition: hashmp.h:15
TInt HashCd
Definition: hashmp.h:14
#define Assert(Cond)
Definition: bd.h:251
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
bool THashMPKeyDatI< TKey, TDat >::IsEmpty ( ) const
inline

Tests whether the iterator has been initialized.

Definition at line 69 of file hashmp.h.

69 { return KeyDatI == NULL; }
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
bool THashMPKeyDatI< TKey, TDat >::IsEnd ( ) const
inline

Tests whether the iterator is pointing to the past-end element.

Definition at line 71 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::KeyDatI.

71 { return EndI == KeyDatI; }
TPHKeyDat * EndI
Definition: hashmp.h:47
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
THashMPKeyDatI& THashMPKeyDatI< TKey, TDat >::Next ( )
inline

Definition at line 66 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::operator++().

66 { operator++(1); return *this; }
THashMPKeyDatI & operator++(int)
Definition: hashmp.h:61

Here is the call graph for this function:

template<class TKey , class TDat >
TPHKeyDat& THashMPKeyDatI< TKey, TDat >::operator() ( ) const
inline

Definition at line 64 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::KeyDatI.

64 { return *KeyDatI; }
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
TPHKeyDat& THashMPKeyDatI< TKey, TDat >::operator* ( ) const
inline

Definition at line 63 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::KeyDatI.

63 { return *KeyDatI; }
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
THashMPKeyDatI& THashMPKeyDatI< TKey, TDat >::operator++ ( int  )
inline

Definition at line 61 of file hashmp.h.

Referenced by THashMPKeyDatI< TKey, TDat >::Next().

61 { KeyDatI++; while (KeyDatI < EndI && KeyDatI->HashCd==-1) { KeyDatI++; } return *this; }
TPHKeyDat * KeyDatI
Definition: hashmp.h:46

Here is the caller graph for this function:

template<class TKey , class TDat >
THashMPKeyDatI& THashMPKeyDatI< TKey, TDat >::operator-- ( int  )
inline

Definition at line 62 of file hashmp.h.

References THashMPKeyDat< TKey, TDat >::HashCd.

62 { do { KeyDatI--; } while (KeyDatI->HashCd==-1); return *this;}
TInt HashCd
Definition: hashmp.h:14
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
TPHKeyDat* THashMPKeyDatI< TKey, TDat >::operator-> ( ) const
inline

Definition at line 65 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::KeyDatI.

65 { return KeyDatI; }
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
bool THashMPKeyDatI< TKey, TDat >::operator< ( const THashMPKeyDatI< TKey, TDat > &  HashKeyDatI) const
inline

Definition at line 59 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::KeyDatI.

59  {
60  return KeyDatI<HashKeyDatI.KeyDatI;}
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
THashMPKeyDatI& THashMPKeyDatI< TKey, TDat >::operator= ( const THashMPKeyDatI< TKey, TDat > &  HashKeyDatI)
inline

Definition at line 55 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::EndI, and THashMPKeyDatI< TKey, TDat >::KeyDatI.

55  {
56  KeyDatI=HashKeyDatI.KeyDatI; EndI=HashKeyDatI.EndI; return *this;}
TPHKeyDat * EndI
Definition: hashmp.h:47
TPHKeyDat * KeyDatI
Definition: hashmp.h:46
template<class TKey , class TDat >
bool THashMPKeyDatI< TKey, TDat >::operator== ( const THashMPKeyDatI< TKey, TDat > &  HashKeyDatI) const
inline

Definition at line 57 of file hashmp.h.

References THashMPKeyDatI< TKey, TDat >::KeyDatI.

57  {
58  return KeyDatI==HashKeyDatI.KeyDatI;}
TPHKeyDat * KeyDatI
Definition: hashmp.h:46

Member Data Documentation

template<class TKey , class TDat >
TPHKeyDat* THashMPKeyDatI< TKey, TDat >::EndI
private

Definition at line 47 of file hashmp.h.

Referenced by THashMPKeyDatI< TKey, TDat >::operator=().


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