------------------------------------------------------------------------------ Find if field is in CopyFieldFlags. If it is, it returns the index otherwise it returns -1
| 903 | // Find if field is in CopyFieldFlags. |
| 904 | // If it is, it returns the index otherwise it returns -1 |
| 905 | int 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. |
no outgoing calls
no test coverage detected