10 #include <AtomsCore/Globals.h>
11 #include <AtomsCore/Metadata/Metadata.h>
27 typedef std::string Key;
29 typedef std::map<Key, AtomsPtr<Metadata> >
valueType;
72 virtual AtomsPtr<Metadata>
clone()
const;
113 AtomsPtr<const Metadata>
getEntry(
const Key& key)
const;
121 AtomsPtr<T> getTypedEntry(
const Key& key);
129 AtomsPtr<const T> getTypedEntry(
const Key& key)
const;
137 T* getTypedEntryRaw(
const Key& key);
151 void addEntry(
const Key& key, AtomsPtr<Metadata>& data,
bool cloneData =
true);
159 void addEntry(
const Key& key,
const AtomsPtr<const Metadata>& data);
187 inline valueType::iterator begin();
190 inline valueType::iterator end();
193 inline valueType::const_iterator cbegin()
const;
196 inline valueType::const_iterator cend()
const;
205 virtual void* dataPtr() {
return reinterpret_cast<void*
>(&m_value); }
234 bool deserialiseKeys(
const std::string& filePath,
const std::vector<std::string>& keys,
bool append =
false,
bool multithread =
false);
250 #include "MapMetadata.impl.h"
Archive class.
Definition: Serialiser.h:29
AtomsCore namespace.
Definition: Agent.h:344