aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/container.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util/container.h b/src/util/container.h
index bdf560979..8c1ae02fb 100644
--- a/src/util/container.h
+++ b/src/util/container.h
@@ -107,6 +107,17 @@ public:
return true;
}
+ core::list<Value> getValues()
+ {
+ core::list<Value> result;
+ for(typename core::map<Key, Value>::Iterator
+ i = m_values.getIterator();
+ i.atEnd() == false; i++){
+ result.push_back(i.getNode()->getValue());
+ }
+ return result;
+ }
+
private:
core::map<Key, Value> m_values;
JMutex m_mutex;