MCPcopy Create free account
hub / github.com/KDAB/GammaRay / operator==

Method operator==

core/objectinstance.cpp:75–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool ObjectInstance::operator==(const ObjectInstance &rhs) const
76{
77 if (type() != rhs.type())
78 return false;
79 switch (type()) {
80 case Invalid:
81 return false;
82 case QtObject:
83 case QtGadgetPointer:
84 case Object:
85 return object() == rhs.object();
86 case QtMetaObject:
87 return metaObject() == rhs.metaObject();
88 case Value:
89 case QtVariant:
90 case QtGadgetValue:
91 return variant() == rhs.variant();
92 }
93
94 Q_ASSERT(false);
95 return false;
96}
97
98ObjectInstance::Type ObjectInstance::type() const
99{

Callers

nothing calls this directly

Calls 6

typeEnum · 0.85
objectFunction · 0.85
typeMethod · 0.45
objectMethod · 0.45
metaObjectMethod · 0.45
variantMethod · 0.45

Tested by

no test coverage detected