SNAP Library 2.4, Developer Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
THashSetKeyI< TKey > Class Template Reference

#include <shash.h>

Collaboration diagram for THashSetKeyI< TKey >:

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

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.

References Assert, THashSetKey< TKey >::HashCd, THashSetKey< TKey >::Key, and THashSetKeyI< TKey >::KeyI.

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

Tests whether the iterator has been initialized.

Definition at line 1037 of file shash.h.

References THashSetKeyI< TKey >::KeyI.

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

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

Definition at line 1039 of file shash.h.

References THashSetKeyI< TKey >::EndI, and THashSetKeyI< TKey >::KeyI.

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.

References THashSetKeyI< TKey >::operator++().

1034 { operator++(1); return *this; }
THashSetKeyI & operator++(int)
Definition: shash.h:1028

Here is the call graph for this function:

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

Definition at line 1032 of file shash.h.

References THashSetKey< TKey >::Key, and THashSetKeyI< TKey >::KeyI.

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.

References THashSetKey< TKey >::Key, and THashSetKeyI< TKey >::KeyI.

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.

References THashSetKeyI< TKey >::KeyI.

Referenced by THashSetKeyI< TKey >::Next().

1028 { KeyI++; while (KeyI < EndI && KeyI->HashCd==-1) { KeyI++; } return *this; }
TSetKey * KeyI
Definition: shash.h:1013

Here is the caller graph for this function:

template<class TKey >
THashSetKeyI& THashSetKeyI< TKey >::operator-- ( int  )
inline

Definition at line 1029 of file shash.h.

References THashSetKey< TKey >::HashCd, and THashSetKeyI< TKey >::KeyI.

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.

References THashSetKey< TKey >::Key, and THashSetKeyI< TKey >::KeyI.

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.

References THashSetKeyI< TKey >::KeyI.

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.

References THashSetKeyI< TKey >::EndI, and THashSetKeyI< TKey >::KeyI.

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.

References THashSetKeyI< TKey >::KeyI.

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.

Referenced by THashSetKeyI< TKey >::IsEnd(), and THashSetKeyI< TKey >::operator=().


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