GObject * BioStruct3DObject::clone(const U2DbiRef &dstDbiRef, U2OpStatus &os, const QVariantMap &hints) const { GHintsDefaultImpl gHints(getGHintsMap()); gHints.setAll(hints); const QString dstFolder = gHints.get(DocumentFormat::DBI_FOLDER_HINT, U2ObjectDbi::ROOT_FOLDER).toString(); U2BioStruct3D dstObject; RawDataUdrSchema::cloneObject(entityRef, dstDbiRef, dstFolder, dstObject, os); CHECK_OP(os, NULL); U2EntityRef dstEntRef(dstDbiRef, dstObject.id); BioStruct3DObject *dst = new BioStruct3DObject(getGObjectName(), dstEntRef, gHints.getMap()); dst->setIndexInfo(getIndexInfo()); return dst; }
int TLoopStack::getLoopIndexValue(TIntermSymbol *symbol) { TLoopIndexInfo *info = getIndexInfo(symbol); ASSERT(info); return info->getCurrentValue(); }