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

#include <hash.h>

Collaboration diagram for THashKeyDatI< TKey, TDat >:

Public Types

typedef THashKeyDat< TKey, TDat > THKeyDat
 

Public Member Functions

 THashKeyDatI ()
 
 THashKeyDatI (const THashKeyDatI &_HashKeyDatI)
 
 THashKeyDatI (const THKeyDat *_KeyDatI, const THKeyDat *_EndI)
 
THashKeyDatIoperator= (const THashKeyDatI &HashKeyDatI)
 
bool operator== (const THashKeyDatI &HashKeyDatI) const
 
bool operator< (const THashKeyDatI &HashKeyDatI) const
 
THashKeyDatIoperator++ (int)
 
THashKeyDatIoperator-- (int)
 
THKeyDatoperator* () const
 
THKeyDatoperator() () const
 
THKeyDatoperator-> () const
 
THashKeyDatINext ()
 
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

THKeyDatKeyDatI
 
THKeyDatEndI
 

Detailed Description

template<class TKey, class TDat>
class THashKeyDatI< TKey, TDat >

Definition at line 49 of file hash.h.

Member Typedef Documentation

template<class TKey, class TDat>
typedef THashKeyDat<TKey, TDat> THashKeyDatI< TKey, TDat >::THKeyDat

Definition at line 51 of file hash.h.

Constructor & Destructor Documentation

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

Definition at line 56 of file hash.h.

56 : KeyDatI(NULL), EndI(NULL){}
THKeyDat * KeyDatI
Definition: hash.h:53
THKeyDat * EndI
Definition: hash.h:54
template<class TKey, class TDat>
THashKeyDatI< TKey, TDat >::THashKeyDatI ( const THashKeyDatI< TKey, TDat > &  _HashKeyDatI)
inline

Definition at line 57 of file hash.h.

57  :
58  KeyDatI(_HashKeyDatI.KeyDatI), EndI(_HashKeyDatI.EndI){}
THKeyDat * KeyDatI
Definition: hash.h:53
THKeyDat * EndI
Definition: hash.h:54
template<class TKey, class TDat>
THashKeyDatI< TKey, TDat >::THashKeyDatI ( const THKeyDat _KeyDatI,
const THKeyDat _EndI 
)
inline

Definition at line 59 of file hash.h.

59  :
60  KeyDatI((THKeyDat*)_KeyDatI), EndI((THKeyDat*)_EndI){}
THKeyDat * KeyDatI
Definition: hash.h:53
THashKeyDat< TKey, TDat > THKeyDat
Definition: hash.h:51
THKeyDat * EndI
Definition: hash.h:54

Member Function Documentation

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

Definition at line 81 of file hash.h.

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

Referenced by TCrossNet::EdgeAttrIsFltDeleted(), TNEANetMP::EdgeAttrIsFltDeleted(), TNEANet::EdgeAttrIsFltDeleted(), TNEANet::EdgeAttrIsFltVDeleted(), TCrossNet::EdgeAttrIsIntDeleted(), TNEANetMP::EdgeAttrIsIntDeleted(), TNEANet::EdgeAttrIsIntDeleted(), TNEANet::EdgeAttrIsIntVDeleted(), TCrossNet::EdgeAttrIsStrDeleted(), TNEANetMP::EdgeAttrIsStrDeleted(), TNEANet::EdgeAttrIsStrDeleted(), TCrossNet::FltAttrNameEI(), TNEANetMP::FltAttrNameEI(), TNEANet::FltAttrNameEI(), TNEANetMP::FltAttrNameNI(), TNEANet::FltAttrNameNI(), TCrossNet::FltAttrValueEI(), TNEANetMP::FltAttrValueEI(), TNEANet::FltAttrValueEI(), TNEANetMP::FltAttrValueNI(), TNEANet::FltAttrValueNI(), TNEANet::FltVAttrNameEI(), TNEANet::FltVAttrNameNI(), TNEANet::FltVAttrValueEI(), TNEANet::FltVAttrValueNI(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), TCrossNet::GetEdgeAttrValue(), TNEANetMP::GetEdgeAttrValue(), TNEANet::GetEdgeAttrValue(), TNEANetMP::GetNodeAttrValue(), TNEANet::GetNodeAttrValue(), GetNumFeatures(), TCluster::Gradient(), TCrossNet::IntAttrNameEI(), TNEANetMP::IntAttrNameEI(), TNEANet::IntAttrNameEI(), TNEANetMP::IntAttrNameNI(), TNEANet::IntAttrNameNI(), TCrossNet::IntAttrValueEI(), TNEANetMP::IntAttrValueEI(), TNEANet::IntAttrValueEI(), TNEANetMP::IntAttrValueNI(), TNEANet::IntAttrValueNI(), TNEANet::IntVAttrNameEI(), TNEANet::IntVAttrNameNI(), TNEANet::IntVAttrValueEI(), TNEANet::IntVAttrValueNI(), TNEANetMP::NodeAttrIsFltDeleted(), TNEANet::NodeAttrIsFltDeleted(), TNEANet::NodeAttrIsFltVDeleted(), TNEANetMP::NodeAttrIsIntDeleted(), TNEANet::NodeAttrIsIntDeleted(), TNEANet::NodeAttrIsIntVDeleted(), TNEANetMP::NodeAttrIsStrDeleted(), TNEANet::NodeAttrIsStrDeleted(), TSnap::ReebRefine(), TSnap::ReebSimplify(), TCrossNet::StrAttrNameEI(), TNEANetMP::StrAttrNameEI(), TNEANet::StrAttrNameEI(), TNEANetMP::StrAttrNameNI(), TNEANet::StrAttrNameNI(), TCrossNet::StrAttrValueEI(), TNEANetMP::StrAttrValueEI(), TNEANet::StrAttrValueEI(), TNEANetMP::StrAttrValueNI(), and TNEANet::StrAttrValueNI().

81 {Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Dat;}
TDat Dat
Definition: hash.h:13
THKeyDat * KeyDatI
Definition: hash.h:53
#define Assert(Cond)
Definition: bd.h:251
TInt HashCd
Definition: hash.h:11

Here is the caller graph for this function:

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

Definition at line 82 of file hash.h.

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

82 {Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Dat;}
TDat Dat
Definition: hash.h:13
THKeyDat * KeyDatI
Definition: hash.h:53
#define Assert(Cond)
Definition: bd.h:251
TInt HashCd
Definition: hash.h:11
template<class TKey, class TDat>
const TKey& THashKeyDatI< TKey, TDat >::GetKey ( ) const
inline

Definition at line 80 of file hash.h.

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

Referenced by TCrossNet::AttrNameEI(), TNEANetMP::AttrNameEI(), TNEANet::AttrNameEI(), TNEANetMP::AttrNameNI(), TNEANet::AttrNameNI(), TCrossNet::EdgeAttrIsFltDeleted(), TNEANetMP::EdgeAttrIsFltDeleted(), TNEANet::EdgeAttrIsFltDeleted(), TNEANet::EdgeAttrIsFltVDeleted(), TCrossNet::EdgeAttrIsIntDeleted(), TNEANetMP::EdgeAttrIsIntDeleted(), TNEANet::EdgeAttrIsIntDeleted(), TNEANet::EdgeAttrIsIntVDeleted(), TCrossNet::EdgeAttrIsStrDeleted(), TNEANetMP::EdgeAttrIsStrDeleted(), TNEANet::EdgeAttrIsStrDeleted(), TCrossNet::FltAttrNameEI(), TNEANetMP::FltAttrNameEI(), TNEANet::FltAttrNameEI(), TNEANetMP::FltAttrNameNI(), TNEANet::FltAttrNameNI(), TNEANet::FltVAttrNameEI(), TNEANet::FltVAttrNameNI(), TNEANet::FltVAttrValueEI(), TNEANet::FltVAttrValueNI(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), TCrossNet::GetEdgeAttrValue(), TNEANetMP::GetEdgeAttrValue(), TNEANet::GetEdgeAttrValue(), TNEANetMP::GetNodeAttrValue(), TNEANet::GetNodeAttrValue(), TCrossNet::IntAttrNameEI(), TNEANetMP::IntAttrNameEI(), TNEANet::IntAttrNameEI(), TNEANetMP::IntAttrNameNI(), TNEANet::IntAttrNameNI(), TNEANet::IntVAttrNameEI(), TNEANet::IntVAttrNameNI(), TNEANet::IntVAttrValueEI(), TNEANet::IntVAttrValueNI(), TNEANetMP::NodeAttrIsFltDeleted(), TNEANet::NodeAttrIsFltDeleted(), TNEANet::NodeAttrIsFltVDeleted(), TNEANetMP::NodeAttrIsIntDeleted(), TNEANet::NodeAttrIsIntDeleted(), TNEANet::NodeAttrIsIntVDeleted(), TNEANetMP::NodeAttrIsStrDeleted(), TNEANet::NodeAttrIsStrDeleted(), TSnap::ReebRefine(), TSnap::ReebSimplify(), TCrossNet::StrAttrNameEI(), TNEANetMP::StrAttrNameEI(), TNEANet::StrAttrNameEI(), TNEANetMP::StrAttrNameNI(), and TNEANet::StrAttrNameNI().

80 {Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Key;}
THKeyDat * KeyDatI
Definition: hash.h:53
#define Assert(Cond)
Definition: bd.h:251
TKey Key
Definition: hash.h:12
TInt HashCd
Definition: hash.h:11

Here is the caller graph for this function:

template<class TKey, class TDat>
bool THashKeyDatI< TKey, TDat >::IsEmpty ( ) const
inline

Tests whether the iterator has been initialized.

Definition at line 76 of file hash.h.

76 { return KeyDatI == NULL; }
THKeyDat * KeyDatI
Definition: hash.h:53
template<class TKey, class TDat>
bool THashKeyDatI< TKey, TDat >::IsEnd ( ) const
inline

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

Definition at line 78 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

Referenced by TCrossNet::AttrNameEI(), TNEANetMP::AttrNameEI(), TNEANet::AttrNameEI(), TNEANetMP::AttrNameNI(), TNEANet::AttrNameNI(), TCrossNet::AttrValueEI(), TNEANetMP::AttrValueEI(), TNEANet::AttrValueEI(), TNEANetMP::AttrValueNI(), TNEANet::AttrValueNI(), TSnap::CmtyEvolutionFileBatch(), TSnap::CmtyEvolutionJson(), TSnap::FastCorePeriphery(), TSnap::FastCorePeripheryGC(), TCrossNet::FltAttrNameEI(), TNEANetMP::FltAttrNameEI(), TNEANet::FltAttrNameEI(), TNEANetMP::FltAttrNameNI(), TNEANet::FltAttrNameNI(), TCrossNet::FltAttrValueEI(), TNEANetMP::FltAttrValueEI(), TNEANet::FltAttrValueEI(), TNEANetMP::FltAttrValueNI(), TNEANet::FltAttrValueNI(), TNEANet::FltVAttrNameEI(), TNEANet::FltVAttrNameNI(), TNEANet::FltVAttrValueEI(), TNEANet::FltVAttrValueNI(), Inner(), TCrossNet::IntAttrNameEI(), TNEANetMP::IntAttrNameEI(), TNEANet::IntAttrNameEI(), TNEANetMP::IntAttrNameNI(), TNEANet::IntAttrNameNI(), TCrossNet::IntAttrValueEI(), TNEANetMP::IntAttrValueEI(), TNEANet::IntAttrValueEI(), TNEANetMP::IntAttrValueNI(), TNEANet::IntAttrValueNI(), TNEANet::IntVAttrNameEI(), TNEANet::IntVAttrNameNI(), TNEANet::IntVAttrValueEI(), TNEANet::IntVAttrValueNI(), TSnap::ReebRefine(), TSnap::ReebSimplify(), TCrossNet::StrAttrNameEI(), TNEANetMP::StrAttrNameEI(), TNEANet::StrAttrNameEI(), TNEANetMP::StrAttrNameNI(), TNEANet::StrAttrNameNI(), TCrossNet::StrAttrValueEI(), TNEANetMP::StrAttrValueEI(), TNEANet::StrAttrValueEI(), TNEANetMP::StrAttrValueNI(), and TNEANet::StrAttrValueNI().

78 { return EndI == KeyDatI; }
THKeyDat * KeyDatI
Definition: hash.h:53
THKeyDat * EndI
Definition: hash.h:54

Here is the caller graph for this function:

template<class TKey, class TDat>
THashKeyDatI& THashKeyDatI< TKey, TDat >::Next ( )
inline

Definition at line 73 of file hash.h.

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

73 { operator++(1); return *this; }
THashKeyDatI & operator++(int)
Definition: hash.h:68

Here is the call graph for this function:

template<class TKey, class TDat>
THKeyDat& THashKeyDatI< TKey, TDat >::operator() ( ) const
inline

Definition at line 71 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

71 { return *KeyDatI; }
THKeyDat * KeyDatI
Definition: hash.h:53
template<class TKey, class TDat>
THKeyDat& THashKeyDatI< TKey, TDat >::operator* ( ) const
inline

Definition at line 70 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

70 { return *KeyDatI; }
THKeyDat * KeyDatI
Definition: hash.h:53
template<class TKey, class TDat>
THashKeyDatI& THashKeyDatI< TKey, TDat >::operator++ ( int  )
inline

Definition at line 68 of file hash.h.

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

68 { KeyDatI++; while (KeyDatI < EndI && KeyDatI->HashCd==-1) { KeyDatI++; } return *this; }
THKeyDat * KeyDatI
Definition: hash.h:53

Here is the caller graph for this function:

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

Definition at line 69 of file hash.h.

References THashKeyDat< TKey, TDat >::HashCd.

69 { do { KeyDatI--; } while (KeyDatI->HashCd==-1); return *this;}
THKeyDat * KeyDatI
Definition: hash.h:53
TInt HashCd
Definition: hash.h:11
template<class TKey, class TDat>
THKeyDat* THashKeyDatI< TKey, TDat >::operator-> ( ) const
inline

Definition at line 72 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

72 { return KeyDatI; }
THKeyDat * KeyDatI
Definition: hash.h:53
template<class TKey, class TDat>
bool THashKeyDatI< TKey, TDat >::operator< ( const THashKeyDatI< TKey, TDat > &  HashKeyDatI) const
inline

Definition at line 66 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

66  {
67  return KeyDatI<HashKeyDatI.KeyDatI;}
THKeyDat * KeyDatI
Definition: hash.h:53
template<class TKey, class TDat>
THashKeyDatI& THashKeyDatI< TKey, TDat >::operator= ( const THashKeyDatI< TKey, TDat > &  HashKeyDatI)
inline

Definition at line 62 of file hash.h.

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

62  {
63  KeyDatI=HashKeyDatI.KeyDatI; EndI=HashKeyDatI.EndI; return *this;}
THKeyDat * KeyDatI
Definition: hash.h:53
THKeyDat * EndI
Definition: hash.h:54
template<class TKey, class TDat>
bool THashKeyDatI< TKey, TDat >::operator== ( const THashKeyDatI< TKey, TDat > &  HashKeyDatI) const
inline

Definition at line 64 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

64  {
65  return KeyDatI==HashKeyDatI.KeyDatI;}
THKeyDat * KeyDatI
Definition: hash.h:53

Member Data Documentation


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