Skip to content

Commit d4a296d

Browse files
committed
Document symbol table map-typed fields
1 parent 29ab9d9 commit d4a296d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/util/symbol_table.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
class symbol_tablet : public symbol_table_baset
2020
{
2121
private:
22+
/// Value referenced by \ref symbol_table_baset::symbols.
2223
symbolst internal_symbols;
24+
/// Value referenced by \ref symbol_table_baset::symbol_base_map.
2325
symbol_base_mapt internal_symbol_base_map;
26+
/// Value referenced by \ref symbol_table_baset::symbol_module_map.
2427
symbol_module_mapt internal_symbol_module_map;
2528

2629
public:

src/util/symbol_table_base.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ class symbol_table_baset
2424
typedef std::unordered_map<irep_idt, symbolt> symbolst;
2525

2626
public:
27+
/// Read-only field, used to look up symbols given their names.
28+
/// Typically a subclass will have its own corresponding writeable field, and
29+
/// the read-only fields declared here function as "getters" for them.
2730
const symbolst &symbols;
31+
/// Read-only field, used to look up symbol names given their base names.
32+
/// See \ref symbols.
2833
const symbol_base_mapt &symbol_base_map;
34+
/// Read-only field, used to look up symbol names given their modules.
35+
/// See \ref symbols.
36+
/// Currently only used in EBMC.
2937
const symbol_module_mapt &symbol_module_map;
3038

3139
public:

0 commit comments

Comments
 (0)