MCPcopy Create free account
hub / github.com/Kitware/VTK / IsEmpty

Method IsEmpty

Common/DataModel/vtkStatisticalModel.cxx:78–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78bool 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
102unsigned long vtkStatisticalModel::GetActualMemorySize()
103{

Callers 5

PrintSelfFunction · 0.45
operator+Function · 0.45
PruneFunction · 0.45
UnionFieldListMethod · 0.45
CopyAllocateMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected