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
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
xdt.cpp
Go to the documentation of this file.
1
// String-Cache
3
TStr
TStrCache::GetStr
(
const
TStr
& Str){
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
TStrCache::GetStr
TStr GetStr(const TStr &Str)
Definition:
xdt.cpp:3
TStrCache::Hits
int Hits
Definition:
xdt.h:6
TStrCache::StrH
TStrH StrH
Definition:
xdt.h:5
TStrCache::Rqs
int Rqs
Definition:
xdt.h:6
THash::AddKey
int AddKey(const TKey &Key)
Definition:
hash.h:327
TStr
Definition:
dt.h:412
THash::IsKey
bool IsKey(const TKey &Key) const
Definition:
hash.h:216
THash::GetKey
const TKey & GetKey(const int &KeyId) const
Definition:
hash.h:210
glib-core
xdt.cpp
Generated on Mon Jun 16 2014 11:58:50 for SNAP Library 2.3, Developer Reference by
1.8.7