| 208 | } |
| 209 | |
| 210 | int |
| 211 | ID::getLocation(int value) const |
| 212 | { |
| 213 | // search through ID for the value |
| 214 | for (int i=0; i<sz; i++) |
| 215 | if (data[i] == value) |
| 216 | return i; |
| 217 | |
| 218 | // if we get here the value is not in the array |
| 219 | return -1; |
| 220 | } |
| 221 | |
| 222 | |
| 223 | int |
no outgoing calls
no test coverage detected