TorqueScript  0.2
stringtable.hpp
1 
15 #pragma once
16 
17 #include <cstddef>
18 #include <unordered_map>
19 #include <string>
20 #include <functional>
21 
22 namespace TorqueScript
23 {
31  class StringTable : public std::unordered_map<std::size_t, std::string>
32  {
33  public:
34  std::size_t getOrAssign(const std::string& string);
35 
36  const std::string& getString(const std::size_t id);
37  };
38 }
A string table maintains a mapping of numeric identifiers to their raw string values....
Definition: stringtable.hpp:32
Definition: ast.hpp:28