MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / visitPathsWithoutHandlers

Method visitPathsWithoutHandlers

inc/osvr/Client/InterfaceTree.h:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls 5

traverseWithFunction · 0.85
getTreeNodeFullPathFunction · 0.85
getPathSeparatorFunction · 0.85
valueMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected