34#ifndef GECODE_FLATZINC_SYMBOLTABLE_HH
35#define GECODE_FLATZINC_SYMBOLTABLE_HH
37#include <unordered_map>
46 std::unordered_map<std::string,Val> m;
49 bool put(
const std::string& key,
const Val& val);
51 bool get(
const std::string& key,
Val& val)
const;
57 const auto& i = m.find(key);
58 bool fresh = (i == m.end());
66 const auto& i = m.find(key);
Symbol table mapping identifiers (strings) to values.
bool put(const std::string &key, const Val &val)
Insert val with key.
bool get(const std::string &key, Val &val) const
Return whether key exists, and set val if it does exist.
Interpreter for the FlatZinc language.
Gecode toplevel namespace