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

Method GetObjectArrayStatus

IO/Exodus/vtkExodusIIReader.cxx:4997–5013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4995}
4996
4997int vtkExodusIIReaderPrivate::GetObjectArrayStatus(int otyp, int i)
4998{
4999 std::map<int, std::vector<ArrayInfoType>>::iterator it = this->ArrayInfo.find(otyp);
5000 if (it != this->ArrayInfo.end())
5001 {
5002 int N = (int)it->second.size();
5003 if (i < 0 || i >= N)
5004 {
5005 vtkDebugMacro("You requested array " << i << " in a collection of only " << N << " arrays.");
5006 return 0;
5007 }
5008 return it->second[i].Status;
5009 }
5010 vtkDebugMacro("Could not find collection of arrays for objects of type "
5011 << otyp << " (" << objtype_names[this->GetObjectTypeIndexFromObjectType(otyp)] << ").");
5012 return 0;
5013}
5014
5015void vtkExodusIIReaderPrivate::GetInitialObjectArrayStatus(int otyp, ArrayInfoType* objType)
5016{

Callers 12

GetObjectArrayStatusFunction · 0.80
GetEdgeResultArrayStatusFunction · 0.80
GetFaceResultArrayStatusFunction · 0.80
RequestDataMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected