src/core/traced-value.h
changeset 2965 4b28e9740e3b
parent 2959 5c620cfd9492
child 2972 d76553495b91
equal deleted inserted replaced
2964:4e8cb1577144 2965:4b28e9740e3b
    58   TracedValue &operator = (const TracedValue &o) {
    58   TracedValue &operator = (const TracedValue &o) {
    59     TRACED_VALUE_DEBUG ("x=");
    59     TRACED_VALUE_DEBUG ("x=");
    60     Set (o.m_v);
    60     Set (o.m_v);
    61     return *this;
    61     return *this;
    62   }
    62   }
    63   TracedValue (const Integer &value) 
    63   TracedValue (const IntegerValue &value) 
    64     : m_v (value.Get ()) {}
    64     : m_v (value.Get ()) {}
    65   operator Integer () const {
    65   operator IntegerValue () const {
    66     return Integer (m_v);
    66     return IntegerValue (m_v);
    67   }
    67   }
    68   TracedValue (const Uinteger &value)
    68   TracedValue (const UintegerValue &value)
    69     : m_v (value.Get ()) {}
    69     : m_v (value.Get ()) {}
    70   operator Uinteger () const {
    70   operator UintegerValue () const {
    71     return Uinteger (m_v);
    71     return UintegerValue (m_v);
    72   }
    72   }
    73   TracedValue (const Boolean &value)
    73   TracedValue (const BooleanValue &value)
    74     : m_v (value.Get ()) {}
    74     : m_v (value.Get ()) {}
    75   operator Boolean () const {
    75   operator BooleanValue () const {
    76     return Boolean (m_v);
    76     return BooleanValue (m_v);
    77   }
    77   }
    78   TracedValue (const Enum &value)
    78   TracedValue (const EnumValue &value)
    79     : m_v (value.Get ()) {}
    79     : m_v (value.Get ()) {}
    80   operator Enum () const {
    80   operator EnumValue () const {
    81     return Enum (m_v);
    81     return EnumValue (m_v);
    82   }
    82   }
    83   void ConnectWithoutContext (const CallbackBase &cb) {
    83   void ConnectWithoutContext (const CallbackBase &cb) {
    84     m_cb.ConnectWithoutContext (cb);
    84     m_cb.ConnectWithoutContext (cb);
    85   }
    85   }
    86   void Connect (const CallbackBase &cb, std::string path) {
    86   void Connect (const CallbackBase &cb, std::string path) {