Lines Matching refs:mem
28 my_struct(int x) : mem(x) {}; in my_struct()
30 int mem; member
32 int fooc() const { return mem; } in fooc()
33 int foo() { return mem; } in foo()
34 int foo1c(int y) const { return y + mem; } in foo1c()
35 int foo1(int y) { return y + mem; } in foo1()
36 int foo2c(int y, int x) const { return y + x + mem; } in foo2c()
37 int foo2(int y, int x) { return y + x + mem; } in foo2()
38 int foo3c(int y, int x, int z) const { return y + x + z + mem; } in foo3c()
39 int foo3(int y, int x, int z ){ return y + x + z + mem; } in foo3()
40 int foo4c(int a1, int a2, int a3, int a4) const { return a1+a2+a3+a4+mem; } in foo4c()
41 int foo4(int a1, int a2, int a3, int a4){ return a1+a2+a3+a4+mem; } in foo4()
43 int foo3default(int y = 1, int x = 2, int z = 3) { return y + x + z + mem; } in foo3default()
53 BOOST_CHECK((_1 ->* &my_struct::mem)(y) == 3); in pointer_to_data_member_tests()
55 (_1 ->* &my_struct::mem)(y) = 4; in pointer_to_data_member_tests()
56 BOOST_CHECK(x.mem == 4); in pointer_to_data_member_tests()
58 ((_1 ->* &my_struct::mem) = 5)(y); in pointer_to_data_member_tests()
59 BOOST_CHECK(x.mem == 5); in pointer_to_data_member_tests()
62 ((y ->* _1) = 6)(make_const(&my_struct::mem)); in pointer_to_data_member_tests()
63 BOOST_CHECK(x.mem == 6); in pointer_to_data_member_tests()
65 ((_1 ->* _2) = 7)(y, make_const(&my_struct::mem)); in pointer_to_data_member_tests()
66 BOOST_CHECK(x.mem == 7); in pointer_to_data_member_tests()
73 BOOST_CHECK( (_1 ->* &my_struct::foo)(y)() == (y->mem)); in pointer_to_member_function_tests()
74 BOOST_CHECK( (_1 ->* &my_struct::fooc)(y)() == (y->mem)); in pointer_to_member_function_tests()
75 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo))() == (y->mem)); in pointer_to_member_function_tests()
76 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::fooc))() == (y->mem)); in pointer_to_member_function_tests()
77 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo))() == (y->mem)); in pointer_to_member_function_tests()
78 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::fooc))() == (y->mem)); in pointer_to_member_function_tests()
80 BOOST_CHECK( (_1 ->* &my_struct::foo1)(y)(1) == (y->mem+1)); in pointer_to_member_function_tests()
81 BOOST_CHECK( (_1 ->* &my_struct::foo1c)(y)(1) == (y->mem+1)); in pointer_to_member_function_tests()
82 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo1))(1) == (y->mem+1)); in pointer_to_member_function_tests()
83 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo1c))(1) == (y->mem+1)); in pointer_to_member_function_tests()
84 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo1))(1) == (y->mem+1)); in pointer_to_member_function_tests()
85 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo1c))(1) == (y->mem+1)); in pointer_to_member_function_tests()
87 BOOST_CHECK( (_1 ->* &my_struct::foo2)(y)(1,2) == (y->mem+1+2)); in pointer_to_member_function_tests()
88 BOOST_CHECK( (_1 ->* &my_struct::foo2c)(y)(1,2) == (y->mem+1+2)); in pointer_to_member_function_tests()
89 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo2))(1,2) == (y->mem+1+2)); in pointer_to_member_function_tests()
90 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo2c))(1,2) == (y->mem+1+2)); in pointer_to_member_function_tests()
91 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo2))(1,2) == (y->mem+1+2)); in pointer_to_member_function_tests()
92 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo2c))(1,2) == (y->mem+1+2)); in pointer_to_member_function_tests()
94 BOOST_CHECK( (_1 ->* &my_struct::foo3)(y)(1,2,3) == (y->mem+1+2+3)); in pointer_to_member_function_tests()
95 BOOST_CHECK( (_1 ->* &my_struct::foo3c)(y)(1,2,3) == (y->mem+1+2+3)); in pointer_to_member_function_tests()
96 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo3))(1,2,3) == (y->mem+1+2+3)); in pointer_to_member_function_tests()
97 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo3c))(1,2,3) == (y->mem+1+2+3)); in pointer_to_member_function_tests()
98 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo3))(1,2,3) == (y->mem+1+2+3)); in pointer_to_member_function_tests()
99 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo3c))(1,2,3) == (y->mem+1+2+3)); in pointer_to_member_function_tests()
101 BOOST_CHECK( (_1 ->* &my_struct::foo4)(y)(1,2,3,4) == (y->mem+1+2+3+4)); in pointer_to_member_function_tests()
102 BOOST_CHECK( (_1 ->* &my_struct::foo4c)(y)(1,2,3,4) == (y->mem+1+2+3+4)); in pointer_to_member_function_tests()
103 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo4))(1,2,3,4) == (y->mem+1+2+3+4)); in pointer_to_member_function_tests()
104 BOOST_CHECK( (y ->* _1)(make_const(&my_struct::foo4c))(1,2,3,4) == (y->mem+1+2+3+4)); in pointer_to_member_function_tests()
105 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo4))(1,2,3,4) == (y->mem+1+2+3+4)); in pointer_to_member_function_tests()
106 BOOST_CHECK( (_1 ->* _2)(y, make_const(&my_struct::foo4c))(1,2,3,4) == (y->mem+1+2+3+4)); in pointer_to_member_function_tests()