| 58 | } |
| 59 | |
| 60 | Nodes Nodes::select(const std::string& attr, const std::string& value) const |
| 61 | { |
| 62 | Nodes result; |
| 63 | |
| 64 | for (auto it = begin(), itEnd = end(); it != itEnd; ++it) |
| 65 | { |
| 66 | if ((*it)->get(attr) == value) |
| 67 | { |
| 68 | result.insert(result.end(), *it); |
| 69 | } |
| 70 | } |
| 71 | return result; |
| 72 | } |
| 73 | |
| 74 | Nodes Node::operator[](const std::string& key) |
| 75 | { |
no test coverage detected