ICG 2
Electric Boogaloo
TypeDefDictionary.hpp
Go to the documentation of this file.
1 #include <string>
2 #include <unordered_map>
3 
9 
10 public:
17  bool registerTypedef (std::string typedefed_name, std::string canonical_name);
18 
25  std::string lookupCanonicalName(std::string name);
26 
31  void addDefaults();
32 
33 private:
34  std::unordered_map<std::string,std::string> typedef_map;
35 };
Manage typedef statements.
Definition: TypeDefDictionary.hpp:8
bool registerTypedef(std::string typedefed_name, std::string canonical_name)
Register a typedef statement.
Definition: TypeDefDictionary.cpp:3
void addDefaults()
Populate this dicionary with defaults. Currently, only std::string -> std::basic_string<char>
Definition: TypeDefDictionary.cpp:23
std::string lookupCanonicalName(std::string name)
Look up the canonical name in the dictionary. If the name is not registered, just return the argument...
Definition: TypeDefDictionary.cpp:11