size_t aSize = TAppendFilter::GetMemorySize();
aSize += myNamedPointCoords->GetMemorySize();
aSize += myElemObj2VTKID.size() * 2 * sizeof(vtkIdType);
- for(size_t anId = 0; anId < mySubProfileArr.size(); anId++)
- aSize += mySubProfileArr[anId]->GetMemorySize();
+ TGeom2SubProfile::const_iterator anIter = myGeom2SubProfile.begin();
+ TGeom2SubProfile::const_iterator anIterEnd = myGeom2SubProfile.end();
+ for(; anIter != anIterEnd; anIter++){
+ const PSubProfileImpl& aSubProfile = anIter->second;
+ aSize += aSubProfile->GetMemorySize();
+ aSize += sizeof(EGeometry);
+ }
return aSize;
}
{
size_t aSize = TAppendFilter::GetMemorySize();
aSize += mySource.GetMemorySize();
- for(size_t anId = 0; anId < myGaussSubMeshArr.size(); anId++)
- aSize += myGaussSubMeshArr[anId]->GetMemorySize();
+ TGeom2GaussSubMesh::const_iterator anIter = myGeom2GaussSubMesh.begin();
+ TGeom2GaussSubMesh::const_iterator anIterEnd = myGeom2GaussSubMesh.end();
+ for(; anIter != anIterEnd; anIter++){
+ const PGaussSubMeshImpl& aGaussSubMesh = anIter->second;
+ aSize += aGaussSubMesh->GetMemorySize();
+ aSize += sizeof(EGeometry);
+ }
return aSize;
}
size_t aSize = TAppendFilter::GetMemorySize();
aSize += myNamedPointCoords->GetMemorySize();
aSize += myElemObj2VTKID.size() * 2 * sizeof(vtkIdType);
- for(size_t anId = 0; anId < mySubMeshArr.size(); anId++){
- const PSubMeshImpl& aSubMesh = mySubMeshArr[anId];
+ TGeom2SubMesh::const_iterator anIter = myGeom2SubMesh.begin();
+ TGeom2SubMesh::const_iterator anIterEnd = myGeom2SubMesh.end();
+ for(; anIter != anIterEnd; anIter++){
+ const PSubMeshImpl& aSubMesh = anIter->second;
aSize += aSubMesh->GetMemorySize();
+ aSize += sizeof(EGeometry);
}
return aSize;
}