minimc 0.5.1
Loading...
Searching...
No Matches
ContinuousMap< Key, T > Class Template Reference

Continuously maps elements from a domain to a range, provided a limited set of points, by interpolating. More...

#include <ContinuousMap.hpp>

Public Types

using elements_type = std::map< Key, T >
 Type used to store elements internally.
 

Public Member Functions

template<typename... Args>
at (const Key k, Args... inner_keys) const noexcept
 Returns a linearly interpolated value at the given key. More...
 
T & operator[] (const Key &k)
 Returns a reference to the value at a given key.
 

Protected Attributes

elements_type elements
 This class essentially wraps an STL container.
 

Detailed Description

template<typename Key, typename T>
class ContinuousMap< Key, T >

Continuously maps elements from a domain to a range, provided a limited set of points, by interpolating.

Template Parameters
KeyType of the domain
TType of the range

Member Function Documentation

◆ at()

template<typename Key , typename T >
template<typename... Args>
T ContinuousMap< Key, T >::at ( const Key  k,
Args...  inner_keys 
) const
inlinenoexcept

Returns a linearly interpolated value at the given key.

Template Parameters
ArgsType of inner keys
Todo:
Support other interpolation methods

The documentation for this class was generated from the following file: