Lines Matching refs:_n
206 Rational(void) : _n(0), _d(1) {} in Rational()
207 Rational(uint32_t n, uint32_t d) : _n(n), _d(d) {} in Rational()
208 uint32_t numerator(void) { return _n; } in numerator()
210 void setNumerator(uint32_t numerator) { _n = numerator; } in setNumerator()
222 operator double() const { return (double) _n / (double) _d; } in operator double()
226 uint32_t _n; member in Rational
1342 if (((uint64_t) _n * other._d) in operator ==()
1343 == ((uint64_t) _d * other._n)) { return true; } in operator ==()
1350 if (((uint64_t) _n * other._d) in operator <()
1351 < ((uint64_t) _d * other._n)) { return true; } in operator <()
1360 out << _n << '/' << _d; in operator string()