SNAP Library 2.1, User Reference  2013-09-25 10:47:25
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>

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 >
const TDat& THashKeyDatI< TKey, TDat >::GetDat ( ) const [inline]

Definition at line 72 of file hash.h.

{Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Dat;}
template<class TKey , class TDat >
TDat& THashKeyDatI< TKey, TDat >::GetDat ( ) [inline]

Definition at line 73 of file hash.h.

{Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Dat;}
template<class TKey , class TDat >
const TKey& THashKeyDatI< TKey, TDat >::GetKey ( ) const [inline]

Definition at line 71 of file hash.h.

{Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Key;}
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.

{ return KeyDatI == NULL; }
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 69 of file hash.h.

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

Definition at line 64 of file hash.h.

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

Definition at line 62 of file hash.h.

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

Definition at line 61 of file hash.h.

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

Definition at line 59 of file hash.h.

{ KeyDatI++; while (KeyDatI < EndI && KeyDatI->HashCd==-1) { KeyDatI++; } return *this; }
template<class TKey , class TDat >
THashKeyDatI& THashKeyDatI< TKey, TDat >::operator-- ( int  ) [inline]

Definition at line 60 of file hash.h.

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

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

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

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

                                                         {
    return KeyDatI==HashKeyDatI.KeyDatI;}

Member Data Documentation

template<class TKey , class TDat >
THKeyDat* THashKeyDatI< TKey, TDat >::EndI [private]

Definition at line 45 of file hash.h.

template<class TKey , class TDat >
THKeyDat* THashKeyDatI< TKey, TDat >::KeyDatI [private]

Definition at line 44 of file hash.h.


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