* Returns an ordered vector containing all keys * which are currently set in this directory. * * @returns an ordered vector of key names */
| 254 | * @returns an ordered vector of key names |
| 255 | */ |
| 256 | std::vector<String> Dictionary::GetKeys() const |
| 257 | { |
| 258 | std::shared_lock<std::shared_timed_mutex> lock (m_DataMutex); |
| 259 | |
| 260 | std::vector<String> keys; |
| 261 | |
| 262 | for (const Dictionary::Pair& kv : m_Data) { |
| 263 | keys.push_back(kv.first); |
| 264 | } |
| 265 | |
| 266 | return keys; |
| 267 | } |
| 268 | |
| 269 | String Dictionary::ToString() const |
| 270 | { |
no test coverage detected