| 841 | } |
| 842 | |
| 843 | vector<TypedElementPtr> Backdrop::getContainsElements() const |
| 844 | { |
| 845 | vector<TypedElementPtr> vec; |
| 846 | ConstGraphElementPtr graph = getAncestorOfType<GraphElement>(); |
| 847 | if (graph) |
| 848 | { |
| 849 | for (const string& str : getTypedAttribute<StringVec>(CONTAINS_ATTRIBUTE)) |
| 850 | { |
| 851 | TypedElementPtr elem = graph->getChildOfType<TypedElement>(str); |
| 852 | if (elem) |
| 853 | { |
| 854 | vec.push_back(elem); |
| 855 | } |
| 856 | } |
| 857 | } |
| 858 | return vec; |
| 859 | } |
| 860 | |
| 861 | bool Backdrop::validate(string* message) const |
| 862 | { |
no test coverage detected