Home
last modified time | relevance | path

Searched refs:wrapped_int (Results 1 – 4 of 4) sorted by relevance

/third_party/boost/libs/mpi/test/
Dreduce_test.cpp159 struct wrapped_int struct
161 wrapped_int() : value(0) { } in wrapped_int() argument
162 explicit wrapped_int(int value) : value(value) { } in wrapped_int() argument
173 wrapped_int operator+(const wrapped_int& x, const wrapped_int& y) in operator +() argument
175 return wrapped_int(x.value + y.value); in operator +()
178 bool operator==(const wrapped_int& x, const wrapped_int& y) in operator ==()
186 typedef wrapped_int result_type;
190 wrapped_int operator()(int p) const { return wrapped_int(base + p); } in operator ()()
200 struct is_commutative<std::plus<wrapped_int>, wrapped_int>
232 std::plus<wrapped_int>(), "sum", wrapped_int(0)); in BOOST_AUTO_TEST_CASE()
Dscan_test.cpp151 struct wrapped_int struct
153 wrapped_int() : value(0) { } in wrapped_int() function
154 explicit wrapped_int(int value) : value(value) { } in wrapped_int() function
165 wrapped_int operator+(const wrapped_int& x, const wrapped_int& y) in operator +() argument
167 return wrapped_int(x.value + y.value); in operator +()
170 bool operator==(const wrapped_int& x, const wrapped_int& y) in operator ==()
178 typedef wrapped_int result_type;
182 wrapped_int operator()(int p) const { return wrapped_int(base + p); } in operator ()()
192 struct is_commutative<std::plus<wrapped_int>, wrapped_int>
223 std::plus<wrapped_int>(), "sum"); in BOOST_AUTO_TEST_CASE()
Dall_reduce_test.cpp230 struct wrapped_int struct
232 wrapped_int() : value(0) { } in wrapped_int() function
233 explicit wrapped_int(int value) : value(value) { } in wrapped_int() argument
244 wrapped_int operator+(const wrapped_int& x, const wrapped_int& y) in operator +() argument
246 return wrapped_int(x.value + y.value); in operator +()
249 bool operator==(const wrapped_int& x, const wrapped_int& y) in operator ==()
254 bool operator<(const wrapped_int& x, const wrapped_int& y) in operator <()
262 typedef wrapped_int result_type;
266 wrapped_int operator()(int p) const { return wrapped_int(base + p); } in operator ()()
276 struct is_commutative<std::plus<wrapped_int>, wrapped_int>
[all …]
/third_party/boost/libs/mpi/example/
Dreduce_performance_test.cpp20 struct wrapped_int struct
22 wrapped_int() : value(0) { } in wrapped_int() argument
23 wrapped_int(int value) : value(value) { } in wrapped_int() argument
33 inline wrapped_int operator+(wrapped_int x, wrapped_int y) in operator +() argument
35 return wrapped_int(x.value + y.value); in operator +()
39 template<> struct is_mpi_datatype<wrapped_int> : mpl::true_ { };
77 wrapped_int wi_value = world.rank(); in main()
78 wrapped_int wi_result; in main()
86 reduce(world, wi_value, wi_result, std::plus<wrapped_int>(), 0); in main()
115 reduce(world, wi_value, wi_result, std::plus<wrapped_int>(), 0); in main()