34 template<
typename T>
class UValue
40 inline explicit UValue(
const T & a):p(new T(a)){ts.update();}
42 inline const T &
operator=(
const T& a){ts.update();
return (*p = a);}
43 inline const T &
v()
const {
return *
p;};
44 inline T &
v() {
return *
p;};
Advanced Simulation Library.
bool operator==(const asl::UValue< T > &a, const T &v)
bool operator!=(const asl::UValue< T > &a, const T &v)
Updatable value. This class stores value and its TimeStamp.
const T & operator=(const T &a)
updates UValue::ts automaticaly