Called at the start of a table to increase counters measuring data structure depth and amount, and possibly bails out with false if limits set by the constructor have been hit. Needs to be balanced with EndTable().
| 2459 | // limits set by the constructor have been hit. Needs to be balanced |
| 2460 | // with EndTable(). |
| 2461 | bool VerifyComplexity() { |
| 2462 | depth_++; |
| 2463 | num_tables_++; |
| 2464 | return Check(depth_ <= max_depth_ && num_tables_ <= max_tables_); |
| 2465 | } |
| 2466 | |
| 2467 | // Called at the end of a table to pop the depth count. |
| 2468 | bool EndTable() { |
no test coverage detected