finds a group corresponding to a map position if one exists
| 310 | |
| 311 | // finds a group corresponding to a map position if one exists |
| 312 | Groups::const_iterator ChannelGroups::find(const df::coord &map_pos) const { |
| 313 | const auto iter = groups_map.find(map_pos); |
| 314 | if (iter != groups_map.end()) { |
| 315 | return groups.begin() + iter->second; |
| 316 | } |
| 317 | return groups.end(); |
| 318 | } |
| 319 | |
| 320 | // returns an iterator to the first element stored |
| 321 | Groups::const_iterator ChannelGroups::begin() const { |
no test coverage detected