Lines Matching refs:MyInt
79 class MyInt : boost::operators<MyInt> class
84 MyInt(int n = 0) : val(n) {} in MyInt() function in __anon224f28730111::MyInt
85 friend MyInt operator+ (const MyInt&);
86 friend MyInt operator- (const MyInt&);
87 MyInt& operator+= (const MyInt& rhs) { val += rhs.val; return *this; } in operator +=()
88 MyInt& operator-= (const MyInt& rhs) { val -= rhs.val; return *this; } in operator -=()
89 MyInt& operator*= (const MyInt& rhs) { val *= rhs.val; return *this; } in operator *=()
90 MyInt& operator/= (const MyInt& rhs) { val /= rhs.val; return *this; } in operator /=()
91 MyInt& operator%= (const MyInt& rhs) { val %= rhs.val; return *this; } in operator %=()
92 MyInt& operator|= (const MyInt& rhs) { val |= rhs.val; return *this; } in operator |=()
93 MyInt& operator&= (const MyInt& rhs) { val &= rhs.val; return *this; } in operator &=()
94 MyInt& operator^= (const MyInt& rhs) { val ^= rhs.val; return *this; } in operator ^=()
95 const MyInt& operator++() { ++val; return *this; } in operator ++()
96 const MyInt& operator--() { --val; return *this; } in operator --()
97 bool operator< (const MyInt& rhs) const { return val < rhs.val; } in operator <()
98 bool operator== (const MyInt& rhs) const { return val == rhs.val; } in operator ==()
100 friend std::istream& operator>>(std::istream&, MyInt&);
101 friend std::ostream& operator<<(std::ostream&, const MyInt&);
104 inline MyInt operator+(const MyInt& rhs) { return rhs; } in operator +()
105 inline MyInt operator-(const MyInt& rhs) { return MyInt(-rhs.val); } in operator -()
106 inline std::istream& operator>>(std::istream& is, MyInt& i) { is >> i.val; return is; } in operator >>()
107 inline std::ostream& operator<<(std::ostream& os, const MyInt& i) { os << i.val; return os; } in operator <<()
108 inline MyInt abs(MyInt rhs) { if (rhs < MyInt()) rhs = -rhs; return rhs; } in abs()
153 explicit MyOverflowingUnsigned( MyInt const &m ) : v_( m.val ) {} in MyOverflowingUnsigned()
241 class numeric_limits< MyInt >
248 static MyInt min BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return in BOOST_PREVENT_MACRO_SUBSTITUTION()
250 static MyInt max BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return in BOOST_PREVENT_MACRO_SUBSTITUTION()
252 static MyInt lowest() throw() { return min BOOST_PREVENT_MACRO_SUBSTITUTION in lowest()
262 static MyInt epsilon() throw() { return limits_type::epsilon(); } in epsilon()
263 static MyInt round_error() throw() { return limits_type::round_error(); } in round_error()
276 static MyInt infinity() throw() { return limits_type::infinity(); } in infinity()
277 static MyInt quiet_NaN() throw() { return limits_type::quiet_NaN(); } in quiet_NaN()
278 static MyInt signaling_NaN() throw() {return limits_type::signaling_NaN();} in signaling_NaN()
279 static MyInt denorm_min() throw() { return limits_type::denorm_min(); } in denorm_min()
434 typedef ::boost::mpl::list<short, int, long, MyInt> all_signed_test_types;
441 ::boost::rational<MyInt> dummy4;
1282 BOOST_CHECK_EQUAL( boost::rational_cast<MyInt>(half), MyInt() ); in BOOST_AUTO_TEST_CASE()
1283 BOOST_CHECK_EQUAL( boost::rational_cast<boost::rational<MyInt> >(half), in BOOST_AUTO_TEST_CASE()
1284 boost::rational<MyInt>(1, 2) ); in BOOST_AUTO_TEST_CASE()
1289 boost::rational<MyInt> const threehalves( 3, 2 ); in BOOST_AUTO_TEST_CASE()
1429 rational<MyInt> const half_mi( half_i ); in BOOST_AUTO_TEST_CASE()
1434 BOOST_CHECK_EQUAL( half_mi.numerator(), MyInt(1) ); in BOOST_AUTO_TEST_CASE()
1435 BOOST_CHECK_EQUAL( half_mi.denominator(), MyInt(2) ); in BOOST_AUTO_TEST_CASE()