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

Method Print

Common/ExecutionModel/vtkInformationExecutivePortVectorKey.cxx:214–236  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

212
213//------------------------------------------------------------------------------
214void vtkInformationExecutivePortVectorKey::Print(ostream& os, vtkInformation* info)
215{
216 // Print the value.
217 if (this->Has(info))
218 {
219 vtkExecutive** executives = this->GetExecutives(info);
220 int* ports = this->GetPorts(info);
221 int length = this->Length(info);
222 const char* sep = "";
223 for (int i = 0; i < length; ++i)
224 {
225 if (executives[i])
226 {
227 os << sep << executives[i]->GetClassName() << "(" << executives[i] << ") port " << ports[i];
228 }
229 else
230 {
231 os << sep << "(nullptr) port " << ports[i];
232 }
233 sep = ", ";
234 }
235 }
236}
237
238//------------------------------------------------------------------------------
239void

Callers

nothing calls this directly

Calls 5

GetExecutivesMethod · 0.95
GetPortsMethod · 0.95
LengthMethod · 0.95
HasMethod · 0.45
GetClassNameMethod · 0.45

Tested by

no test coverage detected