Home | History | Annotate | Download | only in script

Lines Matching refs:OTHER

38   virtual bool operator == (const WeightImplBase &other) const = 0;
64 virtual bool operator == (const WeightImplBase &other) const {
65 if (Type() != other.Type()) {
69 static_cast<const WeightClassImpl<W> *>(&other);
83 : element_type_(OTHER), impl_(new WeightClassImpl<W>(weight)) { }
87 WeightClass(const WeightClass &other) :
88 element_type_(other.element_type_),
89 impl_(other.impl_ ? other.impl_->Copy() : 0) { }
91 WeightClass &operator = (const WeightClass &other) {
93 impl_ = other.impl_ ? other.impl_->Copy() : 0;
94 element_type_ = other.element_type_;
108 case OTHER:
113 bool operator == (const WeightClass &other) const {
114 return element_type_ == other.element_type_ &&
115 ((impl_ && other.impl_ && (*impl_ == *other.impl_)) ||
116 (impl_ == 0 && other.impl_ == 0));
140 enum ElementType { ZERO, ONE, OTHER };