Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Registry table for automatically interned strings.
The implementation of the lib::Symbol token relies on unique string pointers, such as to create one distinct identity for each distinct "symbol string". The idea is to generate unique and distinct numeric token IDs, while still holding onto a human readable string. Which in turn requires us to manage a registry of already known symbol strings; when a Symbol object with such an already known string is created, it will thus connect internally to the known token ID.
Definition in file symbol-table.hpp.
#include "lib/sync.hpp"
#include "lib/symbol.hpp"
#include "lib/nocopy.hpp"
#include <unordered_set>
#include <utility>
#include <string>
Classes | |
class | SymbolTable |
Table for automatically interned strings. More... | |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |