Lines Matching refs:s0
44 boost::signals2::signal<void ()> s0; in test_remove_self() local
46 connections[0] = s0.connect(remove_connection(0)); in test_remove_self()
47 connections[1] = s0.connect(remove_connection(1)); in test_remove_self()
48 connections[2] = s0.connect(remove_connection(2, 2)); in test_remove_self()
49 connections[3] = s0.connect(remove_connection(3)); in test_remove_self()
54 s0(); std::cout << std::endl; in test_remove_self()
58 s0(); std::cout << std::endl; in test_remove_self()
61 s0.disconnect_all_slots(); in test_remove_self()
62 BOOST_CHECK(s0.empty()); in test_remove_self()
64 connections[0] = s0.connect(remove_connection(0)); in test_remove_self()
65 connections[1] = s0.connect(remove_connection(1)); in test_remove_self()
66 connections[2] = s0.connect(remove_connection(2)); in test_remove_self()
67 connections[3] = s0.connect(remove_connection(3, 3)); in test_remove_self()
72 s0(); std::cout << std::endl; in test_remove_self()
76 s0(); std::cout << std::endl; in test_remove_self()
79 s0.disconnect_all_slots(); in test_remove_self()
80 BOOST_CHECK(s0.num_slots() == 0); in test_remove_self()
82 connections[0] = s0.connect(remove_connection(0, 0)); in test_remove_self()
83 connections[1] = s0.connect(remove_connection(1)); in test_remove_self()
84 connections[2] = s0.connect(remove_connection(2)); in test_remove_self()
85 connections[3] = s0.connect(remove_connection(3)); in test_remove_self()
90 s0(); std::cout << std::endl; in test_remove_self()
94 s0(); std::cout << std::endl; in test_remove_self()
97 s0.disconnect_all_slots(); in test_remove_self()
98 BOOST_CHECK(s0.empty()); in test_remove_self()
100 connections[0] = s0.connect(remove_connection(0, 0)); in test_remove_self()
101 connections[1] = s0.connect(remove_connection(1, 1)); in test_remove_self()
102 connections[2] = s0.connect(remove_connection(2, 2)); in test_remove_self()
103 connections[3] = s0.connect(remove_connection(3, 3)); in test_remove_self()
108 s0(); std::cout << std::endl; in test_remove_self()
112 s0(); std::cout << std::endl; in test_remove_self()
119 boost::signals2::signal<void ()> s0; in test_remove_prior() local
121 connections[0] = s0.connect(remove_connection(0)); in test_remove_prior()
122 connections[1] = s0.connect(remove_connection(1, 0)); in test_remove_prior()
123 connections[2] = s0.connect(remove_connection(2)); in test_remove_prior()
124 connections[3] = s0.connect(remove_connection(3)); in test_remove_prior()
129 s0(); std::cout << std::endl; in test_remove_prior()
133 s0(); std::cout << std::endl; in test_remove_prior()
136 s0.disconnect_all_slots(); in test_remove_prior()
137 BOOST_CHECK(s0.empty()); in test_remove_prior()
139 connections[0] = s0.connect(remove_connection(0)); in test_remove_prior()
140 connections[1] = s0.connect(remove_connection(1)); in test_remove_prior()
141 connections[2] = s0.connect(remove_connection(2)); in test_remove_prior()
142 connections[3] = s0.connect(remove_connection(3, 2)); in test_remove_prior()
147 s0(); std::cout << std::endl; in test_remove_prior()
151 s0(); std::cout << std::endl; in test_remove_prior()
158 boost::signals2::signal<void ()> s0; in test_remove_after() local
160 connections[0] = s0.connect(remove_connection(0, 1)); in test_remove_after()
161 connections[1] = s0.connect(remove_connection(1)); in test_remove_after()
162 connections[2] = s0.connect(remove_connection(2)); in test_remove_after()
163 connections[3] = s0.connect(remove_connection(3)); in test_remove_after()
168 s0(); std::cout << std::endl; in test_remove_after()
172 s0(); std::cout << std::endl; in test_remove_after()
175 s0.disconnect_all_slots(); in test_remove_after()
176 BOOST_CHECK(s0.empty()); in test_remove_after()
178 connections[0] = s0.connect(remove_connection(0)); in test_remove_after()
179 connections[1] = s0.connect(remove_connection(1, 3)); in test_remove_after()
180 connections[2] = s0.connect(remove_connection(2)); in test_remove_after()
181 connections[3] = s0.connect(remove_connection(3)); in test_remove_after()
186 s0(); std::cout << std::endl; in test_remove_after()
190 s0(); std::cout << std::endl; in test_remove_after()
197 boost::signals2::signal<void ()> s0; in test_bloodbath() local
199 connections[0] = s0.connect(remove_connection(0, 1)); in test_bloodbath()
200 connections[1] = s0.connect(remove_connection(1, 1)); in test_bloodbath()
201 connections[2] = s0.connect(remove_connection(2, 0)); in test_bloodbath()
202 connections[3] = s0.connect(remove_connection(3, 2)); in test_bloodbath()
207 s0(); std::cout << std::endl; in test_bloodbath()
211 s0(); std::cout << std::endl; in test_bloodbath()
218 boost::signals2::signal<void ()> s0; in test_disconnect_equal() local
220 connections[0] = s0.connect(remove_connection(0)); in test_disconnect_equal()
221 connections[1] = s0.connect(remove_connection(1)); in test_disconnect_equal()
222 connections[2] = s0.connect(remove_connection(2)); in test_disconnect_equal()
223 connections[3] = s0.connect(remove_connection(3)); in test_disconnect_equal()
228 s0(); std::cout << std::endl; in test_disconnect_equal()
234 s0.disconnect(remove_connection(2)); in test_disconnect_equal()
238 s0(); std::cout << std::endl; in test_disconnect_equal()