Instance* Instance::Clone(){ if(Archivable){ Instance* newGuy = cloneImpl(); if(newGuy == NULL){ return NULL; } for(std::vector<Instance*>::size_type i = 0; i != children.size(); i++){ Instance* kid = children[i]; if(kid != NULL){ Instance* kidClone = kid->Clone(); if(kidClone != NULL){ kidClone->setParent(newGuy); } } } } return NULL; }
ObjectData* DynamicObjectData::clone() { ObjectData *clone = cloneImpl(); clone->setRoot(clone); return clone; }
BitmaskValueWrapper::Ptr BitmaskValueWrapper::clone() { return cloneImpl(); }
/// \brief Clone this Arg. /// std::unique_ptr<Arg> clone() const { return cloneImpl(); }
Expression * clone() const { return cloneImpl(); }
std::unique_ptr<OneWayTranslator> OneWayTranslator::clone() const { return std::unique_ptr<OneWayTranslator>(cloneImpl()); }
ObjectData *c_DateTimeZone::clone() { ObjectData *obj = cloneImpl(); c_DateTimeZone *dtz = static_cast<c_DateTimeZone*>(obj); dtz->m_tz = m_tz->cloneTimeZone(); return obj; }
ObjectData *c_DateTime::clone() { ObjectData *obj = cloneImpl(); c_DateTime *dt = static_cast<c_DateTime*>(obj); dt->m_dt = m_dt->cloneDateTime(); return obj; }
//------------------------------------------------------------------------------ // CLONE //------------------------------------------------------------------------------ Subsystem::Guts* Subsystem::Guts::clone() const { return cloneImpl(); }