| 45 | } |
| 46 | |
| 47 | Nodes Nodes::operator[](const std::string& key) const |
| 48 | { |
| 49 | Nodes result; |
| 50 | |
| 51 | for (auto it = begin(), endIt = end(); it != endIt; ++it) |
| 52 | { |
| 53 | Nodes part = (**it)[key]; |
| 54 | |
| 55 | result.insert(result.end(), part.begin(), part.end()); |
| 56 | } |
| 57 | return result; |
| 58 | } |
| 59 | |
| 60 | Nodes Nodes::select(const std::string& attr, const std::string& value) const |
| 61 | { |