SNAP Library , Developer Reference  2013-01-07 14:03:36
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
PHash< TKey, TDat > Class Template Reference

#include <hash.h>

Collaboration diagram for PHash< TKey, TDat >:

List of all members.

Public Member Functions

 PHash ()
 PHash (const int &MxVals, const int &Vals)
 PHash (const THash< TKey, TDat > &_V)
 PHash (TSIn &SIn)
void Save (TSOut &SOut) const
PHash< TKey, TDat > & operator= (const PHash< TKey, TDat > &Vec)
bool operator== (const PHash< TKey, TDat > &Vec) const
bool operator< (const PHash< TKey, TDat > &Vec) const

Static Public Member Functions

static TPt< PHash< TKey, TDat > > New ()
static TPt< PHash< TKey, TDat > > New (const int &MxVals, const int &Vals)
static TPt< PHash< TKey, TDat > > New (const THash< TKey, TDat > &H)
static TPt< PHash< TKey, TDat > > Load (TSIn &SIn)

Public Attributes

THash< TKey, TDat > H

Private Attributes

TCRef CRef

Friends

class TPt< PHash< TKey, TDat > >

Detailed Description

template<class TKey, class TDat>
class PHash< TKey, TDat >

Definition at line 625 of file hash.h.


Constructor & Destructor Documentation

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

Definition at line 631 of file hash.h.

: H(){}
template<class TKey, class TDat>
PHash< TKey, TDat >::PHash ( const int &  MxVals,
const int &  Vals 
) [inline]

Definition at line 634 of file hash.h.

: H(MxVals, Vals){}
template<class TKey, class TDat>
PHash< TKey, TDat >::PHash ( const THash< TKey, TDat > &  _V) [inline]

Definition at line 637 of file hash.h.

: H(_V){}
template<class TKey, class TDat>
PHash< TKey, TDat >::PHash ( TSIn SIn) [inline, explicit]

Definition at line 640 of file hash.h.

: H(SIn){}

Member Function Documentation

template<class TKey, class TDat>
static TPt<PHash<TKey, TDat> > PHash< TKey, TDat >::Load ( TSIn SIn) [inline, static]

Definition at line 641 of file hash.h.

{return new PHash<TKey, TDat>(SIn);}
template<class TKey, class TDat>
static TPt<PHash<TKey, TDat> > PHash< TKey, TDat >::New ( ) [inline, static]

Definition at line 632 of file hash.h.

                                      {
    return new PHash<TKey, TDat>();}
template<class TKey, class TDat>
static TPt<PHash<TKey, TDat> > PHash< TKey, TDat >::New ( const int &  MxVals,
const int &  Vals 
) [inline, static]

Definition at line 635 of file hash.h.

                                                                        {
    return new PHash<TKey, TDat>(MxVals, Vals);}
template<class TKey, class TDat>
static TPt<PHash<TKey, TDat> > PHash< TKey, TDat >::New ( const THash< TKey, TDat > &  H) [inline, static]

Definition at line 638 of file hash.h.

References PHash< TKey, TDat >::H.

                                                                {
    return new PHash<TKey, TDat>(H);}
template<class TKey, class TDat>
bool PHash< TKey, TDat >::operator< ( const PHash< TKey, TDat > &  Vec) const [inline]

Definition at line 647 of file hash.h.

References PHash< TKey, TDat >::H.

{return H<Vec.H;}
template<class TKey, class TDat>
PHash<TKey, TDat>& PHash< TKey, TDat >::operator= ( const PHash< TKey, TDat > &  Vec) [inline]

Definition at line 644 of file hash.h.

References PHash< TKey, TDat >::H.

                                                            {
    if (this!=&Vec){H=Vec.H;} return *this;}
template<class TKey, class TDat>
bool PHash< TKey, TDat >::operator== ( const PHash< TKey, TDat > &  Vec) const [inline]

Definition at line 646 of file hash.h.

References PHash< TKey, TDat >::H.

{return H==Vec.H;}
template<class TKey, class TDat>
void PHash< TKey, TDat >::Save ( TSOut SOut) const [inline]

Definition at line 642 of file hash.h.

References PHash< TKey, TDat >::H, and THash< TKey, TDat, THashFunc >::Save().

{H.Save(SOut);}

Here is the call graph for this function:


Friends And Related Function Documentation

template<class TKey, class TDat>
friend class TPt< PHash< TKey, TDat > > [friend]

Definition at line 649 of file hash.h.


Member Data Documentation

template<class TKey, class TDat>
TCRef PHash< TKey, TDat >::CRef [private]

Definition at line 627 of file hash.h.

template<class TKey, class TDat>
THash<TKey, TDat> PHash< TKey, TDat >::H

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