Ejemplo n.º 1
0
  void add(int cur,Chare *e,int group)
  { // Just grab the name and nothing else:
    ArrayElement *elt = (ArrayElement*)e;
         PUP::er &p=*pp;
	 beginItem(p,cur);
         p.comment("name");
	 char *n=elt->ckDebugChareName();
	 p(n,strlen(n));
	 free(n);
  }
Ejemplo n.º 2
0
 void add(int cur, Chare *e, int group)
 { // Pup the element data
   ArrayElement *elt = (ArrayElement*)e;
   PUP::er &p=*pp;
   beginItem(p,cur);
   //elt->ckDebugPup(p);
   // Now ignore any pupper, just copy all the memory as raw data
   p.comment("name");
   char *n=elt->ckDebugChareName();
   p(n,strlen(n));
   free(n);
   int type = elt->ckGetChareType();
   p.comment("type");
   const char *t = _chareTable[type]->name;
   p((char*)t,strlen(t));
   p.comment("value");
   int size = _chareTable[type]->size;
   p((char*)elt,size);
 }