SNAP Library 3.0, User Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
PHash< TKey, TDat > Class Template Reference

#include <hash.h>

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

Constructor & Destructor Documentation

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

Definition at line 644 of file hash.h.

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

Definition at line 647 of file hash.h.

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

Definition at line 650 of file hash.h.

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

Definition at line 653 of file hash.h.

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

Member Function Documentation

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

Definition at line 654 of file hash.h.

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

Definition at line 645 of file hash.h.

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

Definition at line 648 of file hash.h.

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

Definition at line 651 of file hash.h.

651  {
652  return new PHash<TKey, TDat>(H);}
THash< TKey, TDat > H
Definition: hash.h:642
Definition: hash.h:638
template<class TKey, class TDat>
bool PHash< TKey, TDat >::operator< ( const PHash< TKey, TDat > &  Vec) const
inline

Definition at line 660 of file hash.h.

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

Definition at line 657 of file hash.h.

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

Definition at line 659 of file hash.h.

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

Definition at line 655 of file hash.h.

655 {H.Save(SOut);}
void Save(TSOut &SOut) const
Definition: hash.h:141
THash< TKey, TDat > H
Definition: hash.h:642

Friends And Related Function Documentation

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

Definition at line 662 of file hash.h.

Member Data Documentation

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

Definition at line 640 of file hash.h.

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

Definition at line 642 of file hash.h.


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