Example #1
0
	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();
}
Example #4
0
 /// \brief Clone this Arg.
 ///
 std::unique_ptr<Arg> clone() const { return cloneImpl(); }
Example #5
0
 Expression * clone() const
 {
     return cloneImpl();
 }
std::unique_ptr<OneWayTranslator> OneWayTranslator::clone() const {
  return std::unique_ptr<OneWayTranslator>(cloneImpl());
}
Example #7
0
ObjectData *c_DateTimeZone::clone() {
  ObjectData *obj = cloneImpl();
  c_DateTimeZone *dtz = static_cast<c_DateTimeZone*>(obj);
  dtz->m_tz = m_tz->cloneTimeZone();
  return obj;
}
Example #8
0
ObjectData *c_DateTime::clone() {
  ObjectData *obj = cloneImpl();
  c_DateTime *dt = static_cast<c_DateTime*>(obj);
  dt->m_dt = m_dt->cloneDateTime();
  return obj;
}
Example #9
0
//------------------------------------------------------------------------------
//                                  CLONE
//------------------------------------------------------------------------------
Subsystem::Guts* Subsystem::Guts::clone() const {
    return cloneImpl();
}