void itv_quantifier_check_monoid_et_4_bicremental_types() { typedef IntervalMap<T,U,Trt> IntervalMapT; IntervalMapT map_a, map_b, map_c; map_a.add(IDv(3,6,1)).add(IIv(5,7,1)); map_b.add(CDv(1,3,1)).add(IDv(8,9,1)); map_c.add(IDv(0,9,2)).add(IIv(3,6,1)).add(IDv(5,7,1)); typename IntervalMapT::interval_mapping_type val_pair = IDv(6,9,1); mapping_pair<T,U> map_pair = K_v(5,1); CHECK_MONOID_INSTANCE_WRT(et) (map_a, map_b, map_c, val_pair, map_pair); CHECK_MONOID_INSTANCE_WRT(caret)(map_a, map_b, map_c, val_pair, map_pair); }
void interval_set_check_monoid_et_4_bicremental_types() { typedef IntervalSet<T> IntervalSetT; IntervalSetT set_a, set_b, set_c; set_a.add(I_D(3,6)).add(I_I(5,7)); set_b.add(C_D(1,3)).add(I_D(8,9)); set_c.add(I_D(0,9)).add(I_I(3,6)).add(I_D(5,7)); typename IntervalSetT::segment_type segm = I_D(6,9); T elem = make<T>(5); CHECK_MONOID_INSTANCE_WRT(et) (set_a, set_b, set_c, segm, elem); CHECK_MONOID_INSTANCE_WRT(caret)(set_a, set_b, set_c, segm, elem); }
void interval_set_check_monoid_plus_4_bicremental_types() { typedef IntervalSet<T> IntervalSetT; IntervalSetT set_a, set_b, set_c; set_a.add(I_D(3,6)).add(I_I(5,7)); set_b.add(C_D(1,3)).add(I_D(8,9)); set_c.add(I_D(0,9)).add(I_I(3,6)).add(I_D(5,7)); typename IntervalSetT::segment_type inter_val1 = I_D(6,9); typename IntervalSetT::segment_type inter_val2 = I_I(5,5); CHECK_MONOID_INSTANCE_WRT(plus) (set_a, set_b, set_c, inter_val1, inter_val2); CHECK_MONOID_INSTANCE_WRT(pipe) (set_a, set_b, set_c, inter_val1, inter_val2); }