Template Class expression

Inheritance Relationships

Derived Type

Class Documentation

template<class T>
class expression

A base class for easy swapping/manipulating of mathematical expressions.

Subclassed by rcppsw::math::ema< T >

Public Functions

expression(const expression&) = default
inline explicit expression(const T &last)
expression(void) = default
virtual ~expression(void) = default
inline T eval(const T &val)

Evaluate a calculation and set a new value.

inline bool operator<(const expression &other) const
expression &operator=(const expression&) = default
inline bool operator==(const expression &other) const
inline bool operator>(const expression &other) const
inline void reset(void)
inline T v(void) const

Get the last value calculated.