void Object::fieldDeepCopy(const ::fwData::Object::csptr& source, DeepCopyCacheType& cache) { m_fields.clear(); const ::fwData::Object::FieldMapType& sourceFields = source->getFields(); for(const ::fwData::Object::FieldMapType::value_type& elt : sourceFields) { this->setField(elt.first, ::fwData::Object::copy(elt.second, cache)); } }
void Object::fieldShallowCopy(const ::fwData::Object::csptr& source) { this->setFields(source->getFields()); }