SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
PHash< TKey, TDat > Class Template Reference

#include <hash.h>

Collaboration diagram for PHash< TKey, TDat >:

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

Constructor & Destructor Documentation

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

Definition at line 687 of file hash.h.

687 : H(){}
THash< TKey, TDat > H
Definition: hash.h:685
template<class TKey, class TDat>
PHash< TKey, TDat >::PHash ( const int &  MxVals,
const int &  Vals 
)
inline

Definition at line 690 of file hash.h.

690 : H(MxVals, Vals){}
THash< TKey, TDat > H
Definition: hash.h:685
template<class TKey, class TDat>
PHash< TKey, TDat >::PHash ( const THash< TKey, TDat > &  _V)
inline

Definition at line 693 of file hash.h.

693 : H(_V){}
THash< TKey, TDat > H
Definition: hash.h:685
template<class TKey, class TDat>
PHash< TKey, TDat >::PHash ( TSIn SIn)
inlineexplicit

Definition at line 696 of file hash.h.

696 : H(SIn){}
THash< TKey, TDat > H
Definition: hash.h:685

Member Function Documentation

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

Definition at line 697 of file hash.h.

697 {return new PHash<TKey, TDat>(SIn);}
Definition: hash.h:681
template<class TKey, class TDat>
static TPt<PHash<TKey, TDat> > PHash< TKey, TDat >::New ( )
inlinestatic

Definition at line 688 of file hash.h.

688  {
689  return new PHash<TKey, TDat>();}
Definition: hash.h:681
template<class TKey, class TDat>
static TPt<PHash<TKey, TDat> > PHash< TKey, TDat >::New ( const int &  MxVals,
const int &  Vals 
)
inlinestatic

Definition at line 691 of file hash.h.

691  {
692  return new PHash<TKey, TDat>(MxVals, Vals);}
Definition: hash.h:681
template<class TKey, class TDat>
static TPt<PHash<TKey, TDat> > PHash< TKey, TDat >::New ( const THash< TKey, TDat > &  H)
inlinestatic

Definition at line 694 of file hash.h.

References PHash< TKey, TDat >::H.

694  {
695  return new PHash<TKey, TDat>(H);}
THash< TKey, TDat > H
Definition: hash.h:685
Definition: hash.h:681
template<class TKey, class TDat>
bool PHash< TKey, TDat >::operator< ( const PHash< TKey, TDat > &  Vec) const
inline

Definition at line 703 of file hash.h.

703 {return H<Vec.H;}
THash< TKey, TDat > H
Definition: hash.h:685
template<class TKey, class TDat>
PHash<TKey, TDat>& PHash< TKey, TDat >::operator= ( const PHash< TKey, TDat > &  Vec)
inline

Definition at line 700 of file hash.h.

References PHash< TKey, TDat >::H.

700  {
701  if (this!=&Vec){H=Vec.H;} return *this;}
THash< TKey, TDat > H
Definition: hash.h:685
template<class TKey, class TDat>
bool PHash< TKey, TDat >::operator== ( const PHash< TKey, TDat > &  Vec) const
inline

Definition at line 702 of file hash.h.

References PHash< TKey, TDat >::H.

702 {return H==Vec.H;}
THash< TKey, TDat > H
Definition: hash.h:685
template<class TKey, class TDat>
void PHash< TKey, TDat >::Save ( TSOut SOut) const
inline

Definition at line 698 of file hash.h.

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

698 {H.Save(SOut);}
void Save(TSOut &SOut) const
Definition: hash.h:183
THash< TKey, TDat > H
Definition: hash.h:685

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

Member Data Documentation

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

Definition at line 683 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: