41 : m_value(ref), m_info(info) {}
43 : m_value(f.m_value), m_info(f.m_info) {}
44 const Type& operator=(
const ThatClassType& f)
45 { setValue(f.m_value);
return m_value; }
46 const Type& operator=(Type v)
47 { setValue(v);
return m_value; }
51 {
return getValue(); }
55 ThatClassType& operator+= (
const Type& b)
57 return setValue(getValue()+b);
61 setValue(getValue()+1);
71 setValue(getValue()-1);
79 ThatClassType& operator-= (
const Type& b)
81 return setValue(getValue()-b);
83 ThatClassType& operator*= (
const Type& b)
85 return setValue(getValue()*b);
87 ThatClassType& operator/= (
const Type& b)
89 return setValue(getValue()/b);
94 ThatClassType& setValue(
const Type& v)
100 Type getValue()
const
105 Type& getValueMutable()
107 m_info.setReadOrWrite();