Skip to content

Commit

Permalink
libcore|PathTreeT: Added tryFind() specializations to PathTreeT
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jun 30, 2014
1 parent c230b73 commit 5381acc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/libcore/include/de/data/pathtree.h
Expand Up @@ -450,6 +450,14 @@ class PathTreeT : public PathTree
return static_cast<Type &>(PathTree::find(path, flags));
}

inline Type const *tryFind(Path const &path, ComparisonFlags flags) const {
return static_cast<Type const *>(PathTree::tryFind(path, flags));
}

inline Type *tryFind(Path const &path, ComparisonFlags flags) {
return static_cast<Type *>(PathTree::tryFind(path, flags));
}

inline int traverse(ComparisonFlags flags, Type const *parent, Path::hash_type hashKey,
int (*callback) (Type &node, void *parameters), void *parameters = 0) const {
return PathTree::traverse(flags, parent, hashKey,
Expand Down

0 comments on commit 5381acc

Please sign in to comment.