|
template<typename MatType > |
| PathCacher (PathFormat fmt, DTree< MatType, int > *tree) |
| Construct a PathCacher object on the given tree with the given format. More...
|
|
template<typename MatType > |
void | Enter (const DTree< MatType, int > *node, const DTree< MatType, int > *parent) |
| Enter a given node.
|
|
template<typename MatType > |
void | Leave (const DTree< MatType, int > *node, const DTree< MatType, int > *parent) |
| Leave the given node.
|
|
const std::string & | PathFor (int tag) const |
| Return the constructed path for a given tag.
|
|
int | ParentOf (int tag) const |
| Get the parent tag of a given tag.
|
|
size_t | NumNodes () const |
| Get the number of nodes in the path cache.
|
|
This class is responsible for caching the path to each node of the tree.
Its instance is provided to EnumerateTree() utility ONCE and it caches the paths to all the leafs and then easily (and quickly) retrieves these paths for each test entry.