Class MetadataDictionary¶
Defined in File CacheData.h
Class Documentation¶
-
class
ral::cache
::
MetadataDictionary
¶ Lightweight wrapper for a map that will one day be used for compile time checks. Currently it is just a wrapper for map but in the future the intention is for us to manage the Metadata in a struct as opposed to a map of string to string.
Public Functions
-
inline void
add_value
(std::string key, std::string value)¶ Gets the type of CacheData that was used to construct this CacheData
- Parameters
key
: The key in the map that we will be modifying.value
: The value that we will set the key to.
-
inline void
add_value
(std::string key, int value)¶ Gets the type of CacheData that was used to construct this CacheData
- Parameters
key
: The key in the map that we will be modifying.value
: The value that we will set the key to.
-
inline int
get_kernel_id
()¶ Gets id of creating kernel.
- Return
Get the id of the kernel that created this message.
-
inline void
print
()¶ Print every key => value pair in the map. Only used for debugging purposes.
-
inline std::map<std::string, std::string>
get_values
() const¶ Gets the map storing the metadata.
- Return
the map storing all of the metadata.
-
inline void
set_values
(std::map<std::string, std::string> new_values)¶ Erases all current metadata and sets new values.
- Parameters
new_values
: A map to copy into this->values .
-
inline bool
has_value
(std::string key)¶ Checks if metadata has a specific key
- Return
true if the key is in the metadata, otherwise return false
- Parameters
key
: The key to check if is in the metadata
-
std::string
get_value
(std::string key)¶
-
void
set_value
(std::string key, std::string value)¶
-
inline void