Contains a generic tree. This namespace exists to assist in argument-dependent lookup with tree-related nonmembers, the class template TreeNode is imported into the parent namespace. More...
Classes | |
| singleton | TreeNode |
| A node in a generic tree, which can contain an object by value. More... | |
| struct | TreeNodePointer |
| Dummy struct containing the ownership pointer type for a TreeNode. (Actually a metafunction...) More... | |
| class | TreeTraversalWrapper |
| A wrapper for pre-order traversal of a TreeNode-based tree with something like a lambda. More... | |
Functions | |
| template<typename T > | |
| std::string | getTreeNodeFullPath (util::TreeNode< T > const &node, const char pathSeparator[]) |
| Given a tree node and a path separator, get the full path identifying that tree node. More... | |
| template<typename T , typename F > | |
| void | traverseWith (T &node, F &&functor) |
| A method to handle visiting every node in a tree with a lambda or other by-value function object. | |
Contains a generic tree. This namespace exists to assist in argument-dependent lookup with tree-related nonmembers, the class template TreeNode is imported into the parent namespace.
|
inline |
Given a tree node and a path separator, get the full path identifying that tree node.
Special case the root
Definition at line 56 of file TreeNodeFullPath.h.