Lines Matching refs:_n
205 Rational(void) : _n(0), _d(1) {} in Rational()
206 Rational(uint32_t n, uint32_t d) : _n(n), _d(d) {} in Rational()
207 uint32_t numerator(void) { return _n; } in numerator()
209 void setNumerator(uint32_t numerator) { _n = numerator; } in setNumerator()
221 operator double() const { return (double) _n / (double) _d; } in operator double()
225 uint32_t _n; member in Rational
1341 if (((uint64_t) _n * other._d) in operator ==()
1342 == ((uint64_t) _d * other._n)) { return true; } in operator ==()
1349 if (((uint64_t) _n * other._d) in operator <()
1350 < ((uint64_t) _d * other._n)) { return true; } in operator <()
1359 out << _n << '/' << _d; in operator string()