Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
|
#include <GampTypes.hpp>
Public Member Functions | |
void | clear () |
Clears the hash map. | |
bool | containsKey (std::string_view key) const |
Returns true if the given name maps to a value or no_value . | |
std::optional< std::string_view > | containsValue (const Value_type &value) const |
Returns the string_view key of the first value, otherwise std::nullopt. | |
Value_type | get (std::string_view key) const |
Returns the mapped value for the given name or no_value | |
const jau::StringHashMap< Value_type > & | map () const noexcept |
jau::StringHashMap< Value_type > & | map () noexcept |
Value_type | put (std::string_view key, const Value_type &obj) |
Maps the value for the given name, overwrites old mapping if exists. | |
Value_type | remove (std::string_view key) |
Removes value if mapped and returns it, otherwise returns no_value . | |
Definition at line 85 of file GampTypes.hpp.
|
inlinenoexcept |
Definition at line 90 of file GampTypes.hpp.
|
inlinenoexcept |
Definition at line 91 of file GampTypes.hpp.
|
inline |
Returns the mapped value for the given name or no_value
Definition at line 94 of file GampTypes.hpp.
|
inline |
Returns true if the given name maps to a value or no_value
.
Definition at line 103 of file GampTypes.hpp.
|
inline |
Returns the string_view key of the first value, otherwise std::nullopt.
Note: O(n) operation, slow.
Definition at line 108 of file GampTypes.hpp.
|
inline |
Clears the hash map.
Definition at line 118 of file GampTypes.hpp.
|
inline |
Maps the value for the given name, overwrites old mapping if exists.
no_value
. Definition at line 124 of file GampTypes.hpp.
|
inline |
Removes value if mapped and returns it, otherwise returns no_value
.
Definition at line 137 of file GampTypes.hpp.