Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CStrIntern.cpp File Reference
#include "precompiled.h"
#include "CStrIntern.h"
#include "lib/fnv_hash.h"
#include "ps/CLogger.h"
#include "ps/ThreadUtil.h"
#include <unordered_map>
#include "CStrInternStatic.h"
Include dependency graph for CStrIntern.cpp:

Classes

class  CStrInternInternals
 
struct  StringsKeyHash
 
struct  StringsKeyProxy
 
struct  StringsKeyProxyHash
 
struct  StringsKeyProxyEq
 

Namespaces

namespace  anonymous_namespace{CStrIntern.cpp}
 

Macros

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

Typedefs

using StringsKey = std::string
 

Functions

CStrInternInternalsanonymous_namespace{CStrIntern.cpp}::GetString (const char *str, size_t len)
 

Variables

std::unordered_map< StringsKey, CStrInternInternals, StringsKeyHashanonymous_namespace{CStrIntern.cpp}::g_Strings
 

Macro Definition Documentation

◆ X

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

◆ X2

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

Typedef Documentation

◆ StringsKey

using StringsKey = std::string