| 237 | } |
| 238 | |
| 239 | std::vector<WorkspaceObject> WorkspaceObject_Impl::targets() const { |
| 240 | WorkspaceObjectVector result; |
| 241 | if (!initialized()) { |
| 242 | return result; |
| 243 | } |
| 244 | if (m_sourceData) { |
| 245 | for (const ForwardPointer& ptr : m_sourceData->pointers) { |
| 246 | if (!ptr.targetHandle.isNull()) { |
| 247 | OptionalWorkspaceObject owo = this->workspace().getObject(ptr.targetHandle); |
| 248 | OS_ASSERT(owo); |
| 249 | result.push_back(*owo); |
| 250 | } |
| 251 | } |
| 252 | } |
| 253 | return result; |
| 254 | } |
| 255 | |
| 256 | std::vector<unsigned> WorkspaceObject_Impl::getSourceIndices(const Handle& targetHandle) const { |
| 257 | UnsignedVector result; |