Public Types | Public Member Functions | Protected Attributes

NextSmaller< 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 interpolation of values for an arbitrary key by returning the value of the next smaller entry. More...

#include <Interpolation.h>

List of all members.

Public Types

typedef Interpolated< V > interpolated

Public Member Functions

 NextSmaller (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

Protected Attributes

PairLess< Pair, Key > comp
bool continueOutOfRange
outOfRangeVal

Detailed Description

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

Given two iterators defining a range of key-value-pairs this class provides interpolation of values for an arbitrary key by returning the value of the next smaller entry.

If there is no smaller entry it returns the next bigger or the "out of range"-value, if set.

Author:
Karl Wessel

Definition at line 84 of file Interpolation.h.


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