SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
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
THashKeyDatI< TKey, TDat > Class Template Reference

#include <hash.h>

Collaboration diagram for THashKeyDatI< TKey, TDat >:

List of all members.

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.
bool IsEnd () const
 Tests whether the iterator is pointing to the past-end element.
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 40 of file hash.h.


Member Typedef Documentation

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

Definition at line 42 of file hash.h.


Constructor & Destructor Documentation

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

Definition at line 47 of file hash.h.

: KeyDatI(NULL), EndI(NULL){}
template<class TKey , class TDat >
THashKeyDatI< TKey, TDat >::THashKeyDatI ( const THashKeyDatI< TKey, TDat > &  _HashKeyDatI) [inline]

Definition at line 48 of file hash.h.

                                                :
    KeyDatI(_HashKeyDatI.KeyDatI), EndI(_HashKeyDatI.EndI){}
template<class TKey , class TDat >
THashKeyDatI< TKey, TDat >::THashKeyDatI ( const THKeyDat _KeyDatI,
const THKeyDat _EndI 
) [inline]

Definition at line 50 of file hash.h.

                                                               :
    KeyDatI((THKeyDat*)_KeyDatI), EndI((THKeyDat*)_EndI){}

Member Function Documentation

template<class TKey , class TDat >
TDat& THashKeyDatI< TKey, TDat >::GetDat ( ) [inline]
template<class TKey , class TDat >
bool THashKeyDatI< TKey, TDat >::IsEmpty ( ) const [inline]

Tests whether the iterator has been initialized.

Definition at line 67 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

{ return KeyDatI == NULL; }
template<class TKey , class TDat >
THashKeyDatI& THashKeyDatI< TKey, TDat >::Next ( ) [inline]

Definition at line 64 of file hash.h.

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

{ operator++(1); return *this; }

Here is the call graph for this function:

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

Definition at line 62 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

{ return *KeyDatI; }
template<class TKey , class TDat >
THKeyDat& THashKeyDatI< TKey, TDat >::operator* ( ) const [inline]

Definition at line 61 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

{ return *KeyDatI; }
template<class TKey , class TDat >
THashKeyDatI& THashKeyDatI< TKey, TDat >::operator++ ( int  ) [inline]

Definition at line 59 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

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

{ KeyDatI++; while (KeyDatI < EndI && KeyDatI->HashCd==-1) { KeyDatI++; } return *this; }

Here is the caller graph for this function:

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

Definition at line 60 of file hash.h.

References THashKeyDat< TKey, TDat >::HashCd, and THashKeyDatI< TKey, TDat >::KeyDatI.

{ do { KeyDatI--; } while (KeyDatI->HashCd==-1); return *this;}
template<class TKey , class TDat >
THKeyDat* THashKeyDatI< TKey, TDat >::operator-> ( ) const [inline]

Definition at line 63 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

{ return KeyDatI; }
template<class TKey , class TDat >
bool THashKeyDatI< TKey, TDat >::operator< ( const THashKeyDatI< TKey, TDat > &  HashKeyDatI) const [inline]

Definition at line 57 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

                                                        {
    return KeyDatI<HashKeyDatI.KeyDatI;}
template<class TKey , class TDat >
THashKeyDatI& THashKeyDatI< TKey, TDat >::operator= ( const THashKeyDatI< TKey, TDat > &  HashKeyDatI) [inline]

Definition at line 53 of file hash.h.

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

                                                          {
    KeyDatI=HashKeyDatI.KeyDatI; EndI=HashKeyDatI.EndI; return *this;}
template<class TKey , class TDat >
bool THashKeyDatI< TKey, TDat >::operator== ( const THashKeyDatI< TKey, TDat > &  HashKeyDatI) const [inline]

Definition at line 55 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

                                                         {
    return KeyDatI==HashKeyDatI.KeyDatI;}

Member Data Documentation


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