SNAP Library 2.0, Developer Reference  2013-05-13 16:33:57
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 >
const TDat& THashKeyDatI< TKey, TDat >::GetDat ( ) const [inline]

Definition at line 72 of file hash.h.

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

Referenced by TNetInfBs::GenCascade(), TNIBs::GenCascade(), and TCluster::Gradient().

{Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Dat;}

Here is the caller graph for this function:

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

Definition at line 71 of file hash.h.

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

Referenced by TNetInfBs::GenCascade(), and TNIBs::GenCascade().

{Assert((KeyDatI!=NULL)&&(KeyDatI->HashCd!=-1)); return KeyDatI->Key;}

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 67 of file hash.h.

References THashKeyDatI< TKey, TDat >::KeyDatI.

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

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

Referenced by TCluster::Gradient(), Inner(), TCluster::LogLikelihood(), TCluster::MCMC(), and TGraphAttributes::TGraphAttributes().

{ return EndI == KeyDatI; }

Here is the caller graph for this function:

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: