Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

Linear< Key, V, Pair, InputIterator > Class Template Reference
[mappingDetails - mostly internal mapping classes]

Given two iterators defining a range of key-value-pairs this class provides linear interpolation of the value at an arbitrary key-position. More...

#include <Interpolation.h>

Collaboration diagram for Linear< Key, V, Pair, InputIterator >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Interpolated< V > interpolated

Public Member Functions

 Linear (V oorv)
void setOutOfRangeVal (V oorv)
interpolated operator() (const InputIterator &first, const InputIterator &last, const Key &pos) const
interpolated operator() (const InputIterator &first, const InputIterator &last, const Key &pos, InputIterator upperBound) const

Static Public Member Functions

static double linearInterpolation (const Key &t, const Key &t0, const Key &t1, const V &v0, const V &v1)

Protected Attributes

PairLess< Pair, Key > comp
bool continueOutOfRange
outOfRangeVal

Detailed Description

template<class Key, class V, class Pair, class InputIterator>
class Linear< Key, V, Pair, InputIterator >

Given two iterators defining a range of key-value-pairs this class provides linear interpolation of the value at an arbitrary key-position.

Author:
Karl Wessel

Definition at line 223 of file Interpolation.h.


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