15 using System.Collections.Generic;
18 using ErrorManagement;
21 namespace CodeGeneration {
30 private Dictionary<string, string> typesToId;
64 this.typesToId =
new Dictionary<string, string> ();
76 public void Insert(
string type,
string id) {
78 this.typesToId.Add(type, id);
92 if (this.typesToId.ContainsKey(type))
93 return this.typesToId[type];
101 public void Clear() {
105 this.typesToId.Clear();
string SearchId(string type)
Searches the temporal variable.whose type is represented in type
Implementation of a table of variables. thist tables search for an id according to its string type re...
void Insert(string type, string id)
Insert a new temporal var. If the variable exists it. the new pair is not inserted ...
void Clear()
Deletes all the values in the table
static TemporalVariablesTable Instance
Gets the unique instance of TemporalVariablesTable