RIT VEXU Core API
|
#include <interpolating_map.h>
Public Member Functions | |
void | insert (const KEY &key, const VALUE &value) |
VALUE | operator[] (const KEY &key) |
void | clear () |
This class implements a map of key-value pairs.
If there is not a pair with the given key in the map, the value will be a linear interpolation of the preceding and following values.
KEY | The type of the key. |
VALUE | The type of the value. |
|
inline |
Clears the contents of the map.
|
inline |
Inserts a key value pair.
key | The key. |
vlue | The value. |
|
inline |
Obtains the value at the given key.
If the key does not exactly match a pair in the map, it will interpolate between the preceding and following pairs.
key | The key. |