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;};
Updatable value. This class stores value and its TimeStamp.
bool operator==(const asl::UValue< T > &a, const T &v)
const T & operator=(const T &a)
updates UValue::ts automaticaly
bool operator!=(const asl::UValue< T > &a, const T &v)
Advanced Simulation Library.
bool operator==(const std::vector< T > &vector1, const std::vector< T > &vector2)
Compares two vectors.
const bool operator!=(const AVec< T > &a, const AVec< T > &b)