| 76 | } |
| 77 | |
| 78 | bool vtkStatisticalModel::IsEmpty() |
| 79 | { |
| 80 | if (this->ModelTables.empty() && !this->AlgorithmParameters) |
| 81 | { |
| 82 | return true; |
| 83 | } |
| 84 | if (this->AlgorithmParameters && this->AlgorithmParameters[0]) |
| 85 | { |
| 86 | return false; |
| 87 | } |
| 88 | // We might have allocated for tables but not set any. Verify: |
| 89 | for (const auto& tableTypeEntry : this->ModelTables) |
| 90 | { |
| 91 | for (const auto& table : tableTypeEntry.second) |
| 92 | { |
| 93 | if (!!table) |
| 94 | { |
| 95 | return false; |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | return true; |
| 100 | } |
| 101 | |
| 102 | unsigned long vtkStatisticalModel::GetActualMemorySize() |
| 103 | { |
no test coverage detected