Patate Lib  0.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Vitelotte::PiecewiseLinearFunction< _Value > Class Template Reference

Detailed Description

template<typename _Value>
class Vitelotte::PiecewiseLinearFunction< _Value >

A 1D piecewise linear function.

Public Types

typedef _Value Value
 
typedef Samples::iterator Iterator
 
typedef Samples::const_iterator ConstIterator
 

Public Member Functions

bool empty () const
 
unsigned size () const
 
bool has (float x) const
 
Value & sample (float x)
 
const Value & sample (float x) const
 
void add (float x, const Value &v)
 
void remove (float x)
 
void clear ()
 
Iterator begin ()
 
ConstIterator begin () const
 
Iterator end ()
 
ConstIterator end () const
 
Value operator() (float x) const