| 53 | } |
| 54 | |
| 55 | std::vector<Endpoint::Ptr> Zone::GetEndpoints() const |
| 56 | { |
| 57 | std::vector<Endpoint::Ptr> result; |
| 58 | Array::Ptr endpoints = GetEndpointsRaw(); |
| 59 | |
| 60 | if (endpoints) { |
| 61 | ObjectLock olock(endpoints); |
| 62 | |
| 63 | for (String name : endpoints) { |
| 64 | Endpoint::Ptr endpoint = Endpoint::GetByName(name); |
| 65 | |
| 66 | if (!endpoint) |
| 67 | continue; |
| 68 | |
| 69 | result.emplace_back(std::move(endpoint)); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | return result; |
| 74 | } |
| 75 | |
| 76 | std::vector<Zone::Ptr> Zone::GetAllParentsRaw() const |
| 77 | { |
no outgoing calls
no test coverage detected