| 15058 | } |
| 15059 | virtual const ParamType* Current() const { return ¤t_value_; } |
| 15060 | virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { |
| 15061 | // Having the same base generator guarantees that the other |
| 15062 | // iterator is of the same type and we can downcast. |
| 15063 | GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) |
| 15064 | << "The program attempted to compare iterators " |
| 15065 | << "from different generators." << std::endl; |
| 15066 | const Iterator* typed_other = |
| 15067 | CheckedDowncastToActualType<const Iterator>(&other); |
| 15068 | // We must report iterators equal if they both point beyond their |
| 15069 | // respective ranges. That can happen in a variety of fashions, |
| 15070 | // so we have to consult AtEnd(). |
| 15071 | return (AtEnd() && typed_other->AtEnd()) || |
| 15072 | ( |
| 15073 | current1_ == typed_other->current1_ && |
| 15074 | current2_ == typed_other->current2_ && |
| 15075 | current3_ == typed_other->current3_ && |
| 15076 | current4_ == typed_other->current4_ && |
| 15077 | current5_ == typed_other->current5_ && |
| 15078 | current6_ == typed_other->current6_ && |
| 15079 | current7_ == typed_other->current7_ && |
| 15080 | current8_ == typed_other->current8_ && |
| 15081 | current9_ == typed_other->current9_); |
| 15082 | } |
| 15083 | |
| 15084 | private: |
| 15085 | Iterator(const Iterator& other) |
nothing calls this directly
no test coverage detected