SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
THashSetKeyI< TKey > Class Template Reference

#include <shash.h>

Public Types

typedef THashSetKey< TKey > TSetKey
 

Public Member Functions

 THashSetKeyI ()
 
 THashSetKeyI (const THashSetKeyI &_SetKeyI)
 
 THashSetKeyI (const TSetKey *_KeyI, const TSetKey *_EndI)
 
THashSetKeyIoperator= (const THashSetKeyI &SetKeyI)
 
bool operator== (const THashSetKeyI &SetKeyI) const
 
bool operator< (const THashSetKeyI &SetKeyI) const
 
THashSetKeyIoperator++ (int)
 
THashSetKeyIoperator-- (int)
 
const TKey & operator* () const
 
const TKey & operator() () const
 
const TKey * operator-> () const
 
THashSetKeyINext ()
 
bool IsEmpty () const
 Returns true, if the iterator is empty - has not been initialized. More...
 
bool IsEnd () const
 Returns true, if the iterator is pointing to the past-end element. More...
 
const TKey & GetKey () const
 

Private Attributes

TSetKeyKeyI
 
TSetKeyEndI
 

Detailed Description

template<class TKey>
class THashSetKeyI< TKey >

Definition at line 1009 of file shash.h.

Member Typedef Documentation

template<class TKey >
typedef THashSetKey<TKey> THashSetKeyI< TKey >::TSetKey

Definition at line 1011 of file shash.h.

Constructor & Destructor Documentation

template<class TKey >
THashSetKeyI< TKey >::THashSetKeyI ( )
inline

Definition at line 1016 of file shash.h.

1016 : KeyI(NULL), EndI(NULL) { }
TSetKey * KeyI
Definition: shash.h:1013
TSetKey * EndI
Definition: shash.h:1014
template<class TKey >
THashSetKeyI< TKey >::THashSetKeyI ( const THashSetKeyI< TKey > &  _SetKeyI)
inline

Definition at line 1017 of file shash.h.

1017  :
1018  KeyI(_SetKeyI.KeyI), EndI(_SetKeyI.EndI) { }
TSetKey * KeyI
Definition: shash.h:1013
TSetKey * EndI
Definition: shash.h:1014
template<class TKey >
THashSetKeyI< TKey >::THashSetKeyI ( const TSetKey _KeyI,
const TSetKey _EndI 
)
inline

Definition at line 1019 of file shash.h.

1019  :
1020  KeyI((TSetKey*)_KeyI), EndI((TSetKey*)_EndI) { }
THashSetKey< TKey > TSetKey
Definition: shash.h:1011
TSetKey * KeyI
Definition: shash.h:1013
TSetKey * EndI
Definition: shash.h:1014

Member Function Documentation

template<class TKey >
const TKey& THashSetKeyI< TKey >::GetKey ( ) const
inline

Definition at line 1041 of file shash.h.

1041 {Assert((KeyI!=NULL)&&(KeyI->HashCd!=-1)); return KeyI->Key; }
TKey Key
Definition: shash.h:985
#define Assert(Cond)
Definition: bd.h:251
TInt HashCd
Definition: shash.h:984
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
bool THashSetKeyI< TKey >::IsEmpty ( ) const
inline

Returns true, if the iterator is empty - has not been initialized.

Definition at line 1037 of file shash.h.

1037 { return KeyI == NULL; }
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
bool THashSetKeyI< TKey >::IsEnd ( ) const
inline

Returns true, if the iterator is pointing to the past-end element.

Definition at line 1039 of file shash.h.

1039 { return EndI == KeyI; }
TSetKey * KeyI
Definition: shash.h:1013
TSetKey * EndI
Definition: shash.h:1014
template<class TKey >
THashSetKeyI& THashSetKeyI< TKey >::Next ( )
inline

Definition at line 1034 of file shash.h.

1034 { operator++(1); return *this; }
THashSetKeyI & operator++(int)
Definition: shash.h:1028
template<class TKey >
const TKey& THashSetKeyI< TKey >::operator() ( ) const
inline

Definition at line 1032 of file shash.h.

1032 { return KeyI->Key; }
TKey Key
Definition: shash.h:985
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
const TKey& THashSetKeyI< TKey >::operator* ( ) const
inline

Definition at line 1031 of file shash.h.

1031 { return KeyI->Key; }
TKey Key
Definition: shash.h:985
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
THashSetKeyI& THashSetKeyI< TKey >::operator++ ( int  )
inline

Definition at line 1028 of file shash.h.

1028 { KeyI++; while (KeyI < EndI && KeyI->HashCd==-1) { KeyI++; } return *this; }
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
THashSetKeyI& THashSetKeyI< TKey >::operator-- ( int  )
inline

Definition at line 1029 of file shash.h.

1029 { do { KeyI--; } while (KeyI->HashCd==-1); return *this; }
TInt HashCd
Definition: shash.h:984
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
const TKey* THashSetKeyI< TKey >::operator-> ( ) const
inline

Definition at line 1033 of file shash.h.

1033 { return &KeyI->Key; }
TKey Key
Definition: shash.h:985
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
bool THashSetKeyI< TKey >::operator< ( const THashSetKeyI< TKey > &  SetKeyI) const
inline

Definition at line 1026 of file shash.h.

1026  {
1027  return KeyI<SetKeyI.KeyI; }
TSetKey * KeyI
Definition: shash.h:1013
template<class TKey >
THashSetKeyI& THashSetKeyI< TKey >::operator= ( const THashSetKeyI< TKey > &  SetKeyI)
inline

Definition at line 1022 of file shash.h.

1022  {
1023  KeyI=SetKeyI.KeyI; EndI=SetKeyI.EndI; return *this; }
TSetKey * KeyI
Definition: shash.h:1013
TSetKey * EndI
Definition: shash.h:1014
template<class TKey >
bool THashSetKeyI< TKey >::operator== ( const THashSetKeyI< TKey > &  SetKeyI) const
inline

Definition at line 1024 of file shash.h.

1024  {
1025  return KeyI==SetKeyI.KeyI; }
TSetKey * KeyI
Definition: shash.h:1013

Member Data Documentation

template<class TKey >
TSetKey* THashSetKeyI< TKey >::EndI
private

Definition at line 1014 of file shash.h.

template<class TKey >
TSetKey* THashSetKeyI< TKey >::KeyI
private

Definition at line 1013 of file shash.h.


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