summaryrefslogtreecommitdiffstats
path: root/src/Dictionary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Dictionary.cpp')
-rw-r--r--src/Dictionary.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Dictionary.cpp b/src/Dictionary.cpp
index fedce2e..62ed433 100644
--- a/src/Dictionary.cpp
+++ b/src/Dictionary.cpp
@@ -177,4 +177,14 @@ void Dictionary::Remove(const std::string& key)
_map.erase(key);
}
+std::string Dictionary::GetNodeKey(Node* node)
+{
+ for (iterator it = _map.begin(); it != _map.end(); ++it)
+ {
+ if (it->second == node)
+ return it->first;
+ }
+ return "";
+}
+
};