コード例 #1
0
Pobject *Collection::Clone( ) const {
   std::map< std::string, BundledObject * >::const_iterator i;
   Collection *tmp = new Collection;
   for (i = _objs.begin(); i != _objs.end(); ++i) {
//      std::cerr<< "Collection :: Clone object " <<i->first<<std::endl;
      tmp->Set( i->first, i->second->Clone() );
   }
   return tmp;
}