bool DeaccentuatedTransition::operator== (const TransitionUnit& t) const { if (type() == t.type() && m_deaccentuatedForm == static_cast<const DeaccentuatedTransition&>(t). getDeaccentuatedForm()) { return compareProperties(t); } return false; }
bool TStatusTransition::operator== (const TransitionUnit& tright) const { if ( (type() == tright.type()) && (compareTStatus((static_cast<const TStatusTransition&>(tright).status())))) { return compareProperties(tright); } else { return false; } }
bool LemmaTransition::operator== (const TransitionUnit& tright) const { if (type() == tright.type()) { const LemmaTransition& other= static_cast<const LemmaTransition&>(tright); if (m_lemma == other.lemma() && m_pos == other.partOfSpeech()) { return compareProperties(tright); } } return false; }
bool WordTransition::operator== (const TransitionUnit& tright) const { if ( (type() == tright.type()) && (m_word == static_cast<const WordTransition&>(tright).word()) ) { return compareProperties(tright); } else { return false; } }
bool EntityTransition::operator== (const TransitionUnit& tright) const { if ( (type() == tright.type()) && (m_entityType == static_cast<const EntityTransition&>(tright).entityType()) ) { return compareProperties(tright); } else { return false; } }
void tst_QDeclarativeDebug::recursiveCompareObjects(const QDeclarativeDebugObjectReference &a, const QDeclarativeDebugObjectReference &b) const { QCOMPARE(a.debugId(), b.debugId()); QCOMPARE(a.className(), b.className()); QCOMPARE(a.name(), b.name()); QCOMPARE(a.contextDebugId(), b.contextDebugId()); QCOMPARE(a.source().url(), b.source().url()); QCOMPARE(a.source().lineNumber(), b.source().lineNumber()); QCOMPARE(a.source().columnNumber(), b.source().columnNumber()); QCOMPARE(a.properties().count(), b.properties().count()); QCOMPARE(a.children().count(), b.children().count()); QList<QDeclarativeDebugPropertyReference> aprops = a.properties(); QList<QDeclarativeDebugPropertyReference> bprops = b.properties(); for (int i=0; i<aprops.count(); i++) compareProperties(aprops[i], bprops[i]); for (int i=0; i<a.children().count(); i++) recursiveCompareObjects(a.children()[i], b.children()[i]); }
int compareEdgePtr(void* target, void* source){ /* NOTE: This only compares the IDs (might be insufficient */ Edge* tempA = (Edge*) (target); Edge* tempB = (Edge*) (source); if((tempA == NULL) || (tempB == NULL)){ printf("compareEdgePtr: Edge comparison cannot occur with NULL pointers!\nSending EXIT Value!\n"); return EXIT_VALUE; } if( (tempA->startNodeID == tempB->startNodeID) && (tempA->endNodeID == tempB->endNodeID) && (compareProperties(tempA->properties, tempB->properties) != -1) ){ return 0; } else return -1; }
bool StarTransition::operator== (const TransitionUnit& t) const { if ( type() == t.type() ) { return compareProperties(t); } else { return false; } }