| 230 | } |
| 231 | |
| 232 | std::set<Checkable::Ptr> Checkable::GetChildren() const |
| 233 | { |
| 234 | std::set<Checkable::Ptr> parents; |
| 235 | |
| 236 | for (const Dependency::Ptr& dep : GetReverseDependencies()) { |
| 237 | Checkable::Ptr service = dep->GetChild(); |
| 238 | |
| 239 | if (service && service.get() != this) |
| 240 | parents.insert(service); |
| 241 | } |
| 242 | |
| 243 | return parents; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Retrieve the total number of all the children of the current Checkable. |