ObjectMap.h
Go to the documentation of this file.
long map(long x, long in_min, long in_max, long out_min, long out_max)
V * extract()
Get the value for a given key and remove it from the map, without destroying it.
Definition: ObjectMap.h:109
Implementation of a HashMap for owned objects, i.e. anything created with new().
Definition: ObjectMap.h:49
unsigned count() const
Get the number of entries in this map.
Definition: ObjectMap.h:123
ObjectMap()=default
void removeAt(unsigned index)
Remove entry at given index.
Definition: ObjectMap.h:253
V * find(const K &key) const
Find the value for a given key, if it exists.
Definition: ObjectMap.h:223
V * extract(const K &key)
Get the value for a given key and remove it from the map, without destroying it.
Definition: ObjectMap.h:279
V * extractAt(unsigned index)
Get the value at a given index and remove it from the map, without destroying it.
Definition: ObjectMap.h:291
const V * operator[](const K &key) const
Get value for given key, if it exists.
Definition: ObjectMap.h:176
bool contains(const K &key) const
Check if a key is contained within this map.
Definition: ObjectMap.h:244
Value operator[](const K &key)
Access map entry by reference.
Definition: ObjectMap.h:188
1.9.1