| 151 | } |
| 152 | |
| 153 | std::set<std::shared_ptr<Connectable>> Connectable::getOutGoingConnections(const std::string &relationship) const { |
| 154 | std::set<std::shared_ptr<Connectable>> empty; |
| 155 | |
| 156 | const auto &&it = out_going_connections_.find(relationship); |
| 157 | if (it != out_going_connections_.end()) { |
| 158 | return it->second; |
| 159 | } else { |
| 160 | return empty; |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | std::shared_ptr<Connectable> Connectable::getNextIncomingConnection() { |
| 165 | std::lock_guard<std::mutex> lock(relationship_mutex_); |
no test coverage detected