\func{void}{operator $=$}{\param{void* }{value}}
+\func{void}{operator $=$}{\param{wxObject* }{value}}
+
\func{void}{operator $=$}{\param{const wxList\& }{value}}
\func{void}{operator $=$}{\param{const wxDateTime\& }{value}}
\constfunc{bool}{operator $==$}{\param{void* }{value}}
+\constfunc{bool}{operator $==$}{\param{wxObject* }{value}}
+
\constfunc{bool}{operator $==$}{\param{const wxList\& }{value}}
\constfunc{bool}{operator $==$}{\param{const wxArrayString\& }{value}}
\constfunc{bool}{operator $!=$}{\param{void* }{value}}
+\constfunc{bool}{operator $!=$}{\param{wxObject* }{value}}
+
\constfunc{bool}{operator $!=$}{\param{const wxList\& }{value}}
\constfunc{bool}{operator $!=$}{\param{const wxArrayString\& }{value}}
void operator= (const wxList& value) ;
bool operator== (void* value) const;
bool operator!= (void* value) const;
- void operator= (void* value) ;
+ void operator= (void* value);
+ bool operator== (wxObject* value) const;
+ bool operator!= (wxObject* value) const;
+ void operator= (wxObject* value);
+
// Treat a list variant as an array
wxVariant operator[] (size_t idx) const;
}
}
+bool wxVariant::operator== (wxObject* value) const
+{
+ return (value == ((wxVariantDataWxObjectPtr*)GetData())->GetValue());
+}
+
+bool wxVariant::operator!= (wxObject* value) const
+{
+ return (!((*this) == (void*) value));
+}
+
+void wxVariant::operator= (wxObject* value)
+{
+ if (m_data)
+ delete m_data;
+ m_data = new wxVariantDataWxObjectPtr(value);
+}
+
#if wxUSE_DATETIME
bool wxVariant::operator== (const wxDateTime& value) const
{