OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CodeGenMap Class Reference

#include <CodeGenMap.h>

Public Member Functions

template<class Enum >
void insert (Enum enumValue, std::string_view name, std::string_view comment)
 
void dump (FILE *file, std::string_view prefix)
 

Private Attributes

std::map< int, std::string > _nameByValue
 
std::unordered_map< int, std::string > _commentByValue
 
std::unordered_map< TransparentString, int, TransparentStringHash, TransparentStringEquals_valueByName
 
std::unordered_map< TransparentString, int, TransparentStringHash, TransparentStringEquals_countByName
 

Member Function Documentation

◆ dump()

void CodeGenMap::dump ( FILE *  file,
std::string_view  prefix 
)
inline

◆ insert()

template<class Enum >
void CodeGenMap::insert ( Enum  enumValue,
std::string_view  name,
std::string_view  comment 
)
inline

Member Data Documentation

◆ _commentByValue

std::unordered_map<int, std::string> CodeGenMap::_commentByValue
private

◆ _countByName

std::unordered_map<TransparentString, int, TransparentStringHash, TransparentStringEquals> CodeGenMap::_countByName
private

◆ _nameByValue

std::map<int, std::string> CodeGenMap::_nameByValue
private

◆ _valueByName

std::unordered_map<TransparentString, int, TransparentStringHash, TransparentStringEquals> CodeGenMap::_valueByName
private

The documentation for this class was generated from the following file: