16 #ifndef __OMNETPP_CSTRINGPOOL_H 17 #define __OMNETPP_CSTRINGPOOL_H 21 #include "simkerneldefs.h" 40 bool operator()(
const char *s1,
const char *s2)
const {
42 if (d0<0)
return true;
else if (d0>0)
return false;
43 return strcmp(s1,s2) < 0;
47 typedef std::map<char *,int,strless> StringIntMap;
67 const char *
get(
const char *s);
73 const char *
peek(
const char *s)
const;
void release(const char *s)
Definition: cabstracthistogram.h:21
const char * peek(const char *s) const
cStringPool(const char *poolName=nullptr)
Reference-counted storage for strings.
Definition: cstringpool.h:36