示例#1
0
   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;
   };
示例#2
0
   ~MessageObserverState () {

      if (context) { context->unref (); context = 0; }
      if (handlePtr) { delete handlePtr; handlePtr = 0; }
      msgTable.empty ();
   }
示例#3
0
 ~State () { table.empty (); }
示例#4
0
   ~MessageObserverState () {

      if (dispatch) { dispatch->unref (); dispatch = 0; }
      if (handlePtr) { delete handlePtr; handlePtr = 0; }
      msgTable.empty ();
   }
示例#5
0
   void empty () {

      cache = 0;
      dataTable.empty ();
      if (stringTable) { delete stringTable; stringTable = 0; }
   }