File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,12 @@ class journalling_symbol_tablet : public symbol_table_baset
143
143
using symbol_table_baset::begin;
144
144
using symbol_table_baset::end;
145
145
146
+ void validate (
147
+ const validation_modet vm = validation_modet::INVARIANT) const override
148
+ {
149
+ base_symbol_table.validate (vm);
150
+ }
151
+
146
152
const changesett &get_inserted () const
147
153
{
148
154
return inserted;
Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ class symbol_tablet : public symbol_table_baset
118
118
using symbol_table_baset::end;
119
119
120
120
// / Check that the symbol table is well-formed
121
- void validate (const validation_modet vm = validation_modet::INVARIANT) const ;
121
+ void validate (
122
+ const validation_modet vm = validation_modet::INVARIANT) const override ;
122
123
123
124
bool operator ==(const symbol_tablet &other) const ;
124
125
};
Original file line number Diff line number Diff line change @@ -239,6 +239,9 @@ class symbol_table_baset
239
239
240
240
virtual const_iteratort begin () const ;
241
241
virtual const_iteratort end () const ;
242
+
243
+ virtual void
244
+ validate (const validation_modet vm = validation_modet::INVARIANT) const = 0 ;
242
245
};
243
246
244
247
std::ostream &
Original file line number Diff line number Diff line change @@ -88,6 +88,12 @@ class symbol_table_buildert : public symbol_table_baset
88
88
using symbol_table_baset::begin;
89
89
using symbol_table_baset::end;
90
90
91
+ void validate (
92
+ const validation_modet vm = validation_modet::INVARIANT) const override
93
+ {
94
+ base_symbol_table.validate (vm);
95
+ }
96
+
91
97
// / Try to find the next free identity for the passed-in prefix in
92
98
// / this symbol table.
93
99
// / \remark
You can’t perform that action at this time.
0 commit comments