Home
last modified time | relevance | path

Searched refs:MyInt (Results 1 – 25 of 30) sorted by relevance

12

/third_party/boost/libs/numeric/conversion/test/
Dudt_support_test.cpp47 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 …]
Dtest_helpers.cpp56 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>
Dtraits_test.cpp86 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/
Dtest_simplesubclasses.py4 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/
Dbench_alloc_expand_fwd.cpp62 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()
Dbench_alloc_expand_bwd.cpp52 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 …]
Dbench_alloc_shrink_to_fit.cpp49 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()
Dbench_alloc_stable_vector_burst.cpp61 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()
Dbench_adaptive_node_pool.cpp117 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/
Drational_test.cpp79 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/
Dregression_stream_eof.cpp15 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/
Dconstruct-python-object.code22 MyInt(3),
Dconstruct-python-object.data21 - !!python/object/new:test_constructor.MyInt [3]
/third_party/PyYAML/tests/lib/
Dtest_constructor.py19 NewArgs, NewArgsWithState, Reduce, ReduceWithState, Slots, MyInt, MyList, MyDict, \
200 class MyInt(int): class
/third_party/python/Lib/test/
Dtest_index.py61 class MyInt(int): class
65 my_int = MyInt(7)
Dtest_abc.py407 class MyInt(int): class
409 self.assertTrue(issubclass(MyInt, A))
410 self.assertTrue(issubclass(MyInt, (A,)))
Dtest_int.py445 class MyInt(int): class
453 my_int = MyInt(7)
Dtest_complex.py472 class MyInt: class
476 self.assertRaises(TypeError, complex, MyInt())
477 self.assertRaises(TypeError, complex, 123, MyInt())
Dtest_cmath.py226 class MyInt: class
264 self.assertRaises(TypeError, f, MyInt())
Dtest_enum.py670 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))
Dtest_float.py238 class MyInt: class
242 self.assertRaises(TypeError, float, MyInt())
/third_party/boost/libs/utility/test/
Doperators_test.cpp296 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/
Ddefinitions.qbk190 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/
DUnittestProto3.cs4589 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/
Drationale.qbk110 …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…

12