Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
CStrIntern.cpp File Reference
#include "precompiled.h"
#include "CStrIntern.h"
#include "lib/fnv_hash.h"
#include "ps/CLogger.h"
#include <boost/unordered_map.hpp>
#include "CStrInternStatic.h"

Go to the source code of this file.

Classes

class  CStrInternInternals
 
struct  StringsKeyHash
 
struct  StringsKeyProxy
 
struct  StringsKeyProxyHash
 
struct  StringsKeyProxyEq
 

Macros

#define X(id)   CStrIntern str_##id(#id);
 
#define X2(id, str)   CStrIntern str_##id(str);
 

Typedefs

typedef std::string StringsKey
 

Functions

static CStrInternInternalsGetString (const char *str, size_t len)
 

Variables

static boost::unordered_map
< StringsKey, shared_ptr
< CStrInternInternals >
, StringsKeyHash
g_Strings
 

Macro Definition Documentation

#define X (   id)    CStrIntern str_##id(#id);

Definition at line 89 of file CStrIntern.cpp.

#define X2 (   id,
  str 
)    CStrIntern str_##id(str);

Definition at line 90 of file CStrIntern.cpp.

Typedef Documentation

typedef std::string StringsKey

Definition at line 51 of file CStrIntern.cpp.

Function Documentation

static CStrInternInternals* GetString ( const char *  str,
size_t  len 
)
static

Definition at line 95 of file CStrIntern.cpp.

Variable Documentation

boost::unordered_map<StringsKey, shared_ptr<CStrInternInternals>, StringsKeyHash> g_Strings
static

Definition at line 87 of file CStrIntern.cpp.