Lines Matching refs:acc
23 accumulator_set<int, stats<tag::rolling_sum> > acc(tag::rolling_window::window_size = 3); in test_stat() local
25 BOOST_CHECK_EQUAL(0, rolling_sum(acc)); in test_stat()
27 acc(1); in test_stat()
28 BOOST_CHECK_EQUAL(1, rolling_sum(acc)); in test_stat()
30 acc(2); in test_stat()
31 BOOST_CHECK_EQUAL(3, rolling_sum(acc)); in test_stat()
33 acc(3); in test_stat()
34 BOOST_CHECK_EQUAL(6, rolling_sum(acc)); in test_stat()
36 acc(4); in test_stat()
37 BOOST_CHECK_EQUAL(9, rolling_sum(acc)); in test_stat()
39 acc(5); in test_stat()
40 BOOST_CHECK_EQUAL(12, rolling_sum(acc)); in test_stat()
50 accumulator_set<int, stats<tag::rolling_sum> > acc(tag::rolling_window::window_size = 3); in test_persistency() local
51 acc(1); in test_persistency()
52 acc(2); in test_persistency()
53 acc(3); in test_persistency()
54 acc(4); in test_persistency()
55 acc(5); in test_persistency()
56 BOOST_CHECK_EQUAL(12, rolling_sum(acc)); in test_persistency()
58 acc.serialize(oa, 0); in test_persistency()
60 accumulator_set<int, stats<tag::rolling_sum> > acc(tag::rolling_window::window_size = 3); in test_persistency() local
62 acc.serialize(ia, 0); in test_persistency()
63 BOOST_CHECK_EQUAL(12, rolling_sum(acc)); in test_persistency()