| 95 | |
| 96 | /// @brief Visit all paths with interfaces in their list but no handler. |
| 97 | template <typename F> void visitPathsWithoutHandlers(F &&func) { |
| 98 | osvr::util::traverseWith(*m_root, [&](node_type &node) { |
| 99 | if (!node.value().handler && !node.value().interfaces.empty()) { |
| 100 | func(util::getTreeNodeFullPath(node, |
| 101 | common::getPathSeparator())); |
| 102 | } |
| 103 | }); |
| 104 | } |
| 105 | |
| 106 | private: |
| 107 | /// @brief Returns a reference to a node for a given path. |
no test coverage detected