State &operator= (const State &Value) { cache = 0; if (Value.context && (Value.context != context)) { if (context) { context->unref (); context = 0; } context = Value.context; if (context) { context->ref (); } } dataTable.empty (); dataTable.copy (Value.dataTable); if (Value.stringTable) { if (!stringTable) { stringTable = new stringStruct; } if (stringTable) { *stringTable = *(Value.stringTable); } } else if (stringTable) { delete stringTable; stringTable = 0; } return *this; };
~MessageObserverState () { if (context) { context->unref (); context = 0; } if (handlePtr) { delete handlePtr; handlePtr = 0; } msgTable.empty (); }
~State () { table.empty (); }
~MessageObserverState () { if (dispatch) { dispatch->unref (); dispatch = 0; } if (handlePtr) { delete handlePtr; handlePtr = 0; } msgTable.empty (); }
void empty () { cache = 0; dataTable.empty (); if (stringTable) { delete stringTable; stringTable = 0; } }