SNAP Library 2.1, Developer Reference  2013-09-25 10:47:25
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
xdt.cpp
Go to the documentation of this file.
00001 
00002 // String-Cache
00003 TStr TStrCache::GetStr(const TStr& Str){
00004   int StrId=-1; Rqs++;
00005   if (!StrH.IsKey(Str, StrId)){
00006     StrId=StrH.AddKey(Str);}
00007   else {Hits++;}
00008   return StrH.GetKey(StrId);
00009 }
00010