Lines Matching defs:other
37 Measure::Measure(const Measure& other) :
38 UObject(other), unit(nullptr) {
39 *this = other;
42 Measure& Measure::operator=(const Measure& other) {
43 if (this != &other) {
45 number = other.number;
46 if (other.unit != nullptr) {
47 unit = other.unit->clone();
63 bool Measure::operator==(const UObject& other) const {
64 if (this == &other) { // Same object, equal
67 if (typeid(*this) != typeid(other)) { // Different types, not equal
70 const Measure &m = static_cast<const Measure&>(other);