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

Method FindFlag

Common/DataModel/vtkFieldData.cxx:905–918  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Find if field is in CopyFieldFlags. If it is, it returns the index otherwise it returns -1

Source from the content-addressed store, hash-verified

903// Find if field is in CopyFieldFlags.
904// If it is, it returns the index otherwise it returns -1
905int vtkFieldData::FindFlag(const char* field)
906{
907 if (!field)
908 return -1;
909 for (int i = 0; i < this->NumberOfFieldFlags; ++i)
910 {
911 if (this->CopyFieldFlags[i].ArrayName &&
912 (strcmp(field, this->CopyFieldFlags[i].ArrayName) == 0))
913 {
914 return i;
915 }
916 }
917 return -1;
918}
919
920//------------------------------------------------------------------------------
921// If there is no flag for this array, return -1.

Callers 2

CopyFieldOnOffMethod · 0.95
GetFlagMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected