1 #ifndef __TakeoverValue_h__
2 #define __TakeoverValue_h__
18 template<
typename T,
typename Value = SimpleValue<T>>
48 update(Value::get() + other);
52 update(Value::get() - other);
56 update(Value::get() * other);
60 update(Value::get() / other);
TakeoverValue< int > TakeoverInt
TakeoverValue< float > TakeoverFloat
TakeoverValue allows parameters to implement Takeover logic.
void setLocked(bool value)
TakeoverValue< T, Value > & operator=(const T &x)
TakeoverValue< T, Value > & operator/=(const T &other)
TakeoverValue< T, Value > & operator*=(const T &other)
TakeoverValue(const TakeoverValue< T > &other)
TakeoverValue(T threshold, T init)
TakeoverValue< T, Value > & operator+=(const T &other)
TakeoverValue< T, Value > & operator-=(const T &other)