| 14616 | } |
| 14617 | virtual const ParamType* Current() const { return ¤t_value_; } |
| 14618 | virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { |
| 14619 | // Having the same base generator guarantees that the other |
| 14620 | // iterator is of the same type and we can downcast. |
| 14621 | GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) |
| 14622 | << "The program attempted to compare iterators " |
| 14623 | << "from different generators." << std::endl; |
| 14624 | const Iterator* typed_other = |
| 14625 | CheckedDowncastToActualType<const Iterator>(&other); |
| 14626 | // We must report iterators equal if they both point beyond their |
| 14627 | // respective ranges. That can happen in a variety of fashions, |
| 14628 | // so we have to consult AtEnd(). |
| 14629 | return (AtEnd() && typed_other->AtEnd()) || |
| 14630 | ( |
| 14631 | current1_ == typed_other->current1_ && |
| 14632 | current2_ == typed_other->current2_ && |
| 14633 | current3_ == typed_other->current3_ && |
| 14634 | current4_ == typed_other->current4_ && |
| 14635 | current5_ == typed_other->current5_ && |
| 14636 | current6_ == typed_other->current6_ && |
| 14637 | current7_ == typed_other->current7_); |
| 14638 | } |
| 14639 | |
| 14640 | private: |
| 14641 | Iterator(const Iterator& other) |
nothing calls this directly
no test coverage detected