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

Method GetFlag

Common/DataModel/vtkFieldData.cxx:923–934  ·  view source on GitHub ↗

------------------------------------------------------------------------------ If there is no flag for this array, return -1. If there is one: return 0 if off, 1 if on

Source from the content-addressed store, hash-verified

921// If there is no flag for this array, return -1.
922// If there is one: return 0 if off, 1 if on
923int vtkFieldData::GetFlag(const char* field)
924{
925 int index = this->FindFlag(field);
926 if (index == -1)
927 {
928 return -1;
929 }
930 else
931 {
932 return this->CopyFieldFlags[index].IsCopied;
933 }
934}
935
936//------------------------------------------------------------------------------
937// Copy the fields list (with strcpy)

Callers 3

PassDataMethod · 0.95
ComputeRequiredArraysMethod · 0.45
CopyAllocateMethod · 0.45

Calls 1

FindFlagMethod · 0.95

Tested by

no test coverage detected