WPILibC++ 2024.3.2
|
Implements a table of key-value pairs with linear interpolation between values. More...
#include <wpi/interpolating_map.h>
Public Member Functions | |
void | insert (const Key &key, const Value &value) |
Inserts a key-value pair. More... | |
void | insert (Key &&key, Value &&value) |
Inserts a key-value pair. More... | |
Value | operator[] (const Key &key) const |
Returns the value associated with a given key. More... | |
void | clear () |
Clears the contents. More... | |
Implements a table of key-value pairs with linear interpolation between values.
If there's no matching key, the value returned will be a linear interpolation between the keys before and after the provided one.
Key | The key type. |
Value | The value type. |
|
inline |
Clears the contents.
|
inline |
Inserts a key-value pair.
key | The key. |
value | The value. |
|
inline |
Inserts a key-value pair.
key | The key. |
value | The value. |
|
inline |
Returns the value associated with a given key.
If there's no matching key, the value returned will be a linear interpolation between the keys before and after the provided one.
key | The key. |