/third_party/boost/libs/numeric/conversion/test/ |
D | udt_support_test.cpp | 47 typedef conversion_traits<MyInt , MyFloat> MyFloat_to_MyInt_Traits; 48 typedef conversion_traits<int , MyInt > MyInt_to_int_Traits; 49 typedef conversion_traits<MyFloat, MyInt > MyInt_to_MyFloat_Traits; 50 typedef conversion_traits<MyInt , double > double_to_MyInt_Traits; 94 static MyUDT::MyInt low_level_convert ( MyUDT::MyFloat const& s ) in low_level_convert() 95 { return MyUDT::MyInt( static_cast<int>(s.to_builtin()) ) ; } in low_level_convert() 101 static int low_level_convert ( MyUDT::MyInt const& s ) { return s.to_builtin() ; } in low_level_convert() 107 static MyUDT::MyFloat low_level_convert ( MyUDT::MyInt const& s ) in low_level_convert() 116 static MyUDT::MyInt low_level_convert ( double s ) in low_level_convert() 117 { return MyUDT::MyInt( static_cast<int>(s) ) ; } in low_level_convert() [all …]
|
D | test_helpers.cpp | 56 typedef UDT<int> MyInt ; typedef 65 inline MyInt ceil ( MyInt const& x ) { return x ; } in ceil() 66 inline MyInt floor ( MyInt const& x ) { return x ; } in floor() 97 class numeric_limits<MyUDT::MyInt> : public numeric_limits<int>
|
D | traits_test.cpp | 86 DEFINE_CONVERSION(MyInt , boost::uint8_t, !cTrivial, integral_to_integral, unsigned_to_si… 98 DEFINE_CONVERSION(MyInt , boost::int8_t, !cTrivial, integral_to_integral, signed_to_signe… 110 DEFINE_CONVERSION(MyInt , boost::uint16_t, !cTrivial, integral_to_integral, unsigned_to_s… 122 DEFINE_CONVERSION(MyInt , boost::int16_t, !cTrivial, integral_to_integral, signed_to_sign… 134 DEFINE_CONVERSION(MyInt , boost::uint32_t, !cTrivial, integral_to_integral, unsigned_to_s… 146 DEFINE_CONVERSION(MyInt , boost::int32_t, !cTrivial, integral_to_integral, signed_to_sign… 158 DEFINE_CONVERSION(MyInt , float, !cTrivial, float_to_integral, signed_to_signed , builti… 170 DEFINE_CONVERSION(MyInt , double, !cTrivial, float_to_integral, signed_to_signed , built… 182 DEFINE_CONVERSION(MyInt , long double, !cTrivial, float_to_integral, signed_to_signed , … 185 DEFINE_CONVERSION(boost::uint8_t , MyInt, !cTrivial, integral_to_integral, signed_to_unsigned, udt… [all …]
|
/third_party/python/Lib/ctypes/test/ |
D | test_simplesubclasses.py | 4 class MyInt(c_int): class 6 if type(other) != MyInt: 13 self.assertEqual(MyInt(3), MyInt(3)) 14 self.assertNotEqual(MyInt(42), MyInt(43)) 33 cb = CFUNCTYPE(None, MyInt)(func) 36 self.assertEqual(type(args[-1]), MyInt) 45 _fields_ = [("x", MyInt)] 47 self.assertEqual(X().x, MyInt()) 50 s.x = MyInt(42) 52 self.assertEqual(s.x, MyInt(42))
|
/third_party/boost/libs/container/bench/ |
D | bench_alloc_expand_fwd.cpp | 62 class MyInt class 67 explicit MyInt(int i = 0) in MyInt() function in MyInt 71 MyInt(const MyInt &other) in MyInt() function in MyInt 75 MyInt & operator=(const MyInt &other) in operator =() 81 ~MyInt() in ~MyInt() 137 v.push_back(MyInt(e)); in vector_test_template() 196 vector_test_template< bc::vector<MyInt, std::allocator<MyInt> > >(numit[i], numele[i]); in main() 197 vector_test_template< bc::vector<MyInt, bc::allocator<MyInt, 1> > >(numit[i], numele[i]); in main() 198 …vector_test_template<bc::vector<MyInt, bc::allocator<MyInt, 2, bc::expand_bwd | bc::expand_fwd> > … in main() 199 vector_test_template<bc::vector<MyInt, bc::allocator<MyInt, 2> > >(numit[i], numele[i]); in main()
|
D | bench_alloc_expand_bwd.cpp | 52 class MyInt class 57 MyInt(int i = 0) in MyInt() function in MyInt 61 MyInt(const MyInt &other) in MyInt() function in MyInt 65 MyInt & operator=(const MyInt &other) in operator =() 71 ~MyInt() in ~MyInt() 82 struct has_trivial_destructor_after_move<MyInt> 101 typedef typename Allocator::template rebind<MyInt>::other IntAllocator; in vector_test_template() 109 bc::vector<MyInt, IntAllocator> v; in vector_test_template() 113 first_mem = bc::dlmalloc_malloc(sizeof(MyInt)*num_elements*3/2); in vector_test_template() 114 v.push_back(MyInt(0)); in vector_test_template() [all …]
|
D | bench_alloc_shrink_to_fit.cpp | 49 class MyInt class 54 MyInt(int i = 0) : int_(i){} in MyInt() function in MyInt 56 MyInt(const MyInt &other) in MyInt() function in MyInt 60 MyInt & operator=(const MyInt &other) in operator =() 76 typedef typename Allocator::template rebind<MyInt>::other IntAllocator; in vector_test_template() 92 bc::vector<MyInt, IntAllocator> v(num_elements); in vector_test_template()
|
D | bench_alloc_stable_vector_burst.cpp | 61 class MyInt class 66 MyInt(int i = 0) : int_(i){} in MyInt() function in MyInt 67 MyInt(const MyInt &other) in MyInt() function in MyInt 70 MyInt & operator=(const MyInt &other) in operator =() 81 <MyInt, typename Allocator::template rebind<MyInt>::other> type; 92 <MyInt, typename Allocator::template rebind<MyInt>::other> type; 112 l.insert(l.end(), num_elements, MyInt(r)); in stable_vector_test_template()
|
D | bench_adaptive_node_pool.cpp | 117 class MyInt class 122 explicit MyInt(std::size_t i = 0) : int_(i){} in MyInt() function in MyInt 123 MyInt(const MyInt &other) in MyInt() function in MyInt 126 MyInt & operator=(const MyInt &other) in operator =() 136 typedef typename Allocator::template rebind<MyInt>::other IntAllocator; in list_test_template() 142 typedef bc::list<MyInt, IntAllocator> list_t; in list_test_template() 149 l.insert(l.end(), num_elements, MyInt(r)); in list_test_template()
|
/third_party/boost/libs/rational/test/ |
D | rational_test.cpp | 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 |=() [all …]
|
/third_party/boost/libs/spirit/test/qi/ |
D | regression_stream_eof.cpp | 15 struct MyInt struct 20 friend Istream operator>>(Istream& is, MyInt& self) in operator >>() argument 34 rule<Iterator, int()> my_int = stream_parser<char, MyInt>(); in main()
|
/third_party/PyYAML/tests/data/ |
D | construct-python-object.code | 22 MyInt(3),
|
D | construct-python-object.data | 21 - !!python/object/new:test_constructor.MyInt [3]
|
/third_party/PyYAML/tests/lib/ |
D | test_constructor.py | 19 NewArgs, NewArgsWithState, Reduce, ReduceWithState, Slots, MyInt, MyList, MyDict, \ 200 class MyInt(int): class
|
/third_party/python/Lib/test/ |
D | test_index.py | 61 class MyInt(int): class 65 my_int = MyInt(7)
|
D | test_abc.py | 407 class MyInt(int): class 409 self.assertTrue(issubclass(MyInt, A)) 410 self.assertTrue(issubclass(MyInt, (A,)))
|
D | test_int.py | 445 class MyInt(int): class 453 my_int = MyInt(7)
|
D | test_complex.py | 472 class MyInt: class 476 self.assertRaises(TypeError, complex, MyInt()) 477 self.assertRaises(TypeError, complex, 123, MyInt())
|
D | test_cmath.py | 226 class MyInt: class 264 self.assertRaises(TypeError, f, MyInt())
|
D | test_enum.py | 670 class MyInt(int): class 674 class Huh(MyStr, MyInt, Enum): 2107 class MyInt(int): class 2115 class MyIntEnum(HexMixin, MyInt, enum.Enum): 2120 self.assertTrue(isinstance(Foo.TEST, MyInt))
|
D | test_float.py | 238 class MyInt: class 242 self.assertRaises(TypeError, float, MyInt())
|
/third_party/boost/libs/utility/test/ |
D | operators_test.cpp | 296 typedef Wrapped1<int> MyInt; typedef 644 MyInt i1(1); in main() 645 MyInt i2(2); in main() 646 MyInt i; in main()
|
/third_party/boost/libs/numeric/conversion/doc/ |
D | definitions.qbk | 190 class MyInt 192 MyInt ( long long v ) ; 196 template<> numeric_limits<MyInt> { ... } ; 210 MyInt i(1234);
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
D | UnittestProto3.cs | 4589 public long MyInt { property in Google.Protobuf.TestProtos.TestFieldOrderings 4632 if (MyInt != other.MyInt) return false; in Equals() 4642 if (MyInt != 0L) hash ^= MyInt.GetHashCode(); in GetHashCode() 4661 if (MyInt != 0L) { in WriteTo() 4663 output.WriteInt64(MyInt); in WriteTo() 4686 if (MyInt != 0L) { in IBufferMessage.InternalWriteTo() 4688 output.WriteInt64(MyInt); in IBufferMessage.InternalWriteTo() 4714 if (MyInt != 0L) { in CalculateSize() 4715 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); in CalculateSize() 4737 if (other.MyInt != 0L) { in MergeFrom() [all …]
|
/third_party/boost/libs/log/doc/ |
D | rationale.qbk | 110 …BOOST_LOG(logger) << logging::add_value("MyInt", 10) << logging::add_value("MyString", "string att… 113 However, filters will not be able to use MyInt and MyString attributes. The reason for this behavio…
|