20 return !
insert(symbol).second;
29 symbolst::const_iterator entry =
symbols.find(name);
38 std::vector<irep_idt> sorted_names;
39 sorted_names.reserve(
symbols.size());
42 sorted_names.push_back(elem.first);
79 symbol_table.
show(out);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
The symbol table base class interface.
std::vector< irep_idt > sorted_symbol_names() const
Build and return a lexicographically sorted vector of symbol names from all symbols stored in this sy...
bool remove(const irep_idt &name)
Remove a symbol from the symbol table.
virtual void erase(const symbolst::const_iterator &entry)=0
Remove a symbol from the symbol table.
virtual iteratort begin()=0
symbolst::const_iterator const_iteratort
void show(std::ostream &out) const
Print the contents of the symbol table.
const symbolst & symbols
Read-only field, used to look up symbols given their names.
virtual iteratort end()=0
bool add(const symbolt &symbol)
Add a new symbol to the symbol table.
virtual ~symbol_table_baset()
Author: Diffblue Ltd.
virtual std::pair< symbolt &, bool > insert(symbolt symbol)=0
Move or copy a new symbol to the symbol table.
std::ostream & operator<<(std::ostream &out, const symbol_table_baset &symbol_table)
Print the contents of the symbol table.