SNAP Library 2.3, Developer Reference  2014-06-16 11:58:46
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
xdt.cpp
Go to the documentation of this file.
1 // String-Cache
4  int StrId=-1; Rqs++;
5  if (!StrH.IsKey(Str, StrId)){
6  StrId=StrH.AddKey(Str);}
7  else {Hits++;}
8  return StrH.GetKey(StrId);
9 }
10 
TStr GetStr(const TStr &Str)
Definition: xdt.cpp:3
int Hits
Definition: xdt.h:6
TStrH StrH
Definition: xdt.h:5
int Rqs
Definition: xdt.h:6
int AddKey(const TKey &Key)
Definition: hash.h:327
Definition: dt.h:412
bool IsKey(const TKey &Key) const
Definition: hash.h:216
const TKey & GetKey(const int &KeyId) const
Definition: hash.h:210