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
THashSetKeyI< TKey > Class Template Reference

#include <shash.h>

Collaboration diagram for THashSetKeyI< TKey >:

List of all members.

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
const TKey & GetKey () const

Private Types

typedef THashSetKey< TKey > TSetKey

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 [private]

Definition at line 1011 of file shash.h.


Constructor & Destructor Documentation

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

Definition at line 1015 of file shash.h.

: KeyI(NULL), EndI(NULL) { }
template<class TKey >
THashSetKeyI< TKey >::THashSetKeyI ( const THashSetKeyI< TKey > &  _SetKeyI) [inline]

Definition at line 1016 of file shash.h.

                                            :
    KeyI(_SetKeyI.KeyI), EndI(_SetKeyI.EndI) { }
template<class TKey >
THashSetKeyI< TKey >::THashSetKeyI ( const TSetKey _KeyI,
const TSetKey _EndI 
) [inline]

Definition at line 1018 of file shash.h.

                                                          :
    KeyI((TSetKey*)_KeyI), EndI((TSetKey*)_EndI) { }

Member Function Documentation

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

Definition at line 1034 of file shash.h.

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

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

{ return KeyI->Key; }
template<class TKey >
const TKey& THashSetKeyI< TKey >::operator* ( ) const [inline]

Definition at line 1030 of file shash.h.

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

{ return KeyI->Key; }
template<class TKey >
THashSetKeyI& THashSetKeyI< TKey >::operator++ ( int  ) [inline]

Definition at line 1027 of file shash.h.

References THashSetKeyI< TKey >::KeyI.

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

Definition at line 1028 of file shash.h.

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

{ do { KeyI--; } while (KeyI->HashCd==-1); return *this; }
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.

{ return KeyI->Key; }
template<class TKey >
bool THashSetKeyI< TKey >::operator< ( const THashSetKeyI< TKey > &  SetKeyI) const [inline]

Definition at line 1025 of file shash.h.

References THashSetKeyI< TKey >::KeyI.

                                                    {
    return KeyI<SetKeyI.KeyI; }
template<class TKey >
THashSetKeyI& THashSetKeyI< TKey >::operator= ( const THashSetKeyI< TKey > &  SetKeyI) [inline]

Definition at line 1021 of file shash.h.

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

                                                       {
    KeyI=SetKeyI.KeyI; EndI=SetKeyI.EndI; return *this; }
template<class TKey >
bool THashSetKeyI< TKey >::operator== ( const THashSetKeyI< TKey > &  SetKeyI) const [inline]

Definition at line 1023 of file shash.h.

References THashSetKeyI< TKey >::KeyI.

                                                     {
    return KeyI==SetKeyI.KeyI; }

Member Data Documentation

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

Definition at line 1013 of file shash.h.

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


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