6 #ifndef CPROVER_UTIL_SYMBOL_TABLE_H
7 #define CPROVER_UTIL_SYMBOL_TABLE_H
96 virtual std::pair<symbolt &, bool>
insert(
symbolt symbol)
override;
99 virtual void erase(
const symbolst::const_iterator &entry)
override;
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
The symbol table base class interface.
virtual iteratort begin()=0
std::unordered_map< irep_idt, symbolt > symbolst
virtual iteratort end()=0
bool operator==(const symbol_tablet &other) const
symbolst internal_symbols
Value referenced by symbol_table_baset::symbols.
virtual void erase(const symbolst::const_iterator &entry) override
Remove a symbol from the symbol table.
virtual iteratort begin() override
symbol_tablet(symbol_tablet &&other)
Move constructor.
symbol_tablet & operator=(const symbol_tablet &other)
Copy assignment operator.
symbol_tablet(const symbol_tablet &other)
Copy constructor.
virtual const symbol_tablet & get_symbol_table() const override
virtual void clear() override
Wipe internal state of the symbol table.
void swap(symbol_tablet &other)
Swap symbol maps between two symbol tables.
virtual symbolt * get_writeable(const irep_idt &name) override
Find a symbol in the symbol table for read-write access.
symbol_module_mapt internal_symbol_module_map
Value referenced by symbol_table_baset::symbol_module_map.
virtual bool move(symbolt &symbol, symbolt *&new_symbol) override
Move a symbol into the symbol table.
symbol_base_mapt internal_symbol_base_map
Value referenced by symbol_table_baset::symbol_base_map.
virtual iteratort end() override
virtual std::pair< symbolt &, bool > insert(symbolt symbol) override
Author: Diffblue Ltd.
symbol_tablet & operator=(symbol_tablet &&other)
Move assignment operator.
void validate(const validation_modet vm=validation_modet::INVARIANT) const override
Check that the symbol table is well-formed.
std::multimap< irep_idt, irep_idt > symbol_base_mapt
std::multimap< irep_idt, irep_idt > symbol_module_mapt