|
@@ -74,17 +74,18 @@ public:
|
|
|
Model < Time >* in_model,
|
|
|
const std::string& in_port_name) const
|
|
|
{
|
|
|
- typename Links < Time >::const_iterator it =
|
|
|
- std::multimap < Node < Time >,
|
|
|
- Node < Time > >::find(
|
|
|
- Node < Time >(out_model,
|
|
|
- out_port_name));
|
|
|
+ std::pair < typename Links < Time >::const_iterator,
|
|
|
+ typename Links < Time >::const_iterator > it =
|
|
|
+ std::multimap < Node < Time >,
|
|
|
+ Node < Time > >::equal_range(Node < Time >(out_model,
|
|
|
+ out_port_name));
|
|
|
+ typename Links < Time >::const_iterator it2 = it.first;
|
|
|
bool found = false;
|
|
|
|
|
|
- while (not found and it != Links < Time >::end()) {
|
|
|
- found = it->second == Node < Time >(
|
|
|
+ while (not found and it2 != it.second) {
|
|
|
+ found = it2->second == Node < Time >(
|
|
|
in_model, in_port_name);
|
|
|
- ++it;
|
|
|
+ ++it2;
|
|
|
}
|
|
|
return found;
|
|
|
}
|