ReFRACtor
|
This is a map that takes and index and returns a value. More...
#include <bin_map.h>
Public Types | |
typedef std::map< double, T >::const_iterator | const_iterator |
typedef std::map< double, T >::iterator | iterator |
Public Member Functions | |
BinMap () | |
template<class It > | |
BinMap (It xstart, It xend, const T &Initial_value) | |
Constructor. More... | |
template<class It , class C > | |
BinMap (It xstart, It xend, const C &Initial_value_creator) | |
Constructor. More... | |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
const T & | operator[] (double x) const |
Return bin that "x" falls into. More... | |
T & | operator[] (double x) |
std::vector< T > | value () const |
This is a map that takes and index and returns a value.
The index is a double, and we find the bin that it maps to. This extrapolates, so if a index is greater the last bin than we return the last bin.
typedef std::map<double, T>::const_iterator FullPhysics::BinMap< T >::const_iterator |
typedef std::map<double, T>::iterator FullPhysics::BinMap< T >::iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |