Class to provide safe access to mapped value.
More...
#include <ObjectMap.h>
template<typename K, typename V>
class ObjectMap< K, V >::Value
Class to provide safe access to mapped value.
- Note
- ObjectMap
operator[]
returns one of these, which provides behaviour consistent with V*
◆ Value()
template<typename K , typename V >
◆ extract()
template<typename K , typename V >
Get the value for a given key and remove it from the map, without destroying it.
- Return values
-
- Note
- The returned object must be freed by the caller when no longer required
◆ getKey()
template<typename K , typename V >
const K& ObjectMap< K, V >::Value::getKey |
( |
| ) |
const |
|
inline |
◆ getValue()
template<typename K , typename V >
V* ObjectMap< K, V >::Value::getValue |
( |
| ) |
const |
|
inline |
◆ operator V*()
template<typename K , typename V >
ObjectMap< K, V >::Value::operator V* |
( |
| ) |
const |
|
inline |
◆ operator->()
template<typename K , typename V >
V* ObjectMap< K, V >::Value::operator-> |
( |
| ) |
const |
|
inline |
◆ operator=()
template<typename K , typename V >
◆ remove()
template<typename K , typename V >
Remove this value from the map.
- Return values
-
bool | true if the value was found and removed |
The documentation for this class was generated from the following file: