* Removes all dictionary items. */
| 193 | * Removes all dictionary items. |
| 194 | */ |
| 195 | void Dictionary::Clear() |
| 196 | { |
| 197 | ObjectLock olock(this); |
| 198 | std::unique_lock<std::shared_timed_mutex> lock (m_DataMutex); |
| 199 | |
| 200 | if (m_Frozen) |
| 201 | BOOST_THROW_EXCEPTION(std::invalid_argument("Dictionary must not be modified.")); |
| 202 | |
| 203 | m_Data.clear(); |
| 204 | } |
| 205 | |
| 206 | void Dictionary::CopyTo(const Dictionary::Ptr& dest) const |
| 207 | { |