/dports/devel/py-aioitertools/aioitertools-0.8.0/aioitertools/tests/ |
H A D | itertools.py | 8 import aioitertools as ait namespace 22 await ait.next(it) 30 await ait.next(it) 41 await ait.next(it) 175 it = ait.count() 181 it = ait.count(42) 219 result = await ait.list(ait.dropwhile(pred, [])) 578 values = await ait.list(ait.takewhile(pred, [])) 640 a, b = await asyncio.gather(ait.next(it1), ait.next(it2)) 671 a, b = await asyncio.gather(ait.next(it1), ait.next(it2)) [all …]
|
H A D | builtins.py | 8 import aioitertools as ait namespace 38 self.assertTrue(await ait.all(ait.iter(srange1))) 39 self.assertFalse(await ait.all(ait.iter(srange))) 62 self.assertTrue(await ait.any(ait.iter(srange))) 63 self.assertTrue(await ait.any(ait.iter(srange1))) 64 self.assertFalse(await ait.any(ait.iter(srange0))) 70 it = ait.iter(slist) 79 it = ait.iter(srange) 124 it = ait.iter(slist) 205 self.assertEqual(await ait.list(ait.iter(slist)), slist) [all …]
|
/dports/games/freeciv/freeciv-2.6.6/ai/default/ |
H A D | aiguard.c | 136 CHECK_GUARD(ait, guard); in aiguard_clear_charge() 166 CHECK_CHARGE_UNIT(ait, charge); in aiguard_clear_guard() 190 CHECK_GUARD(ait, guard); in aiguard_assign_guard_unit() 191 CHECK_CHARGE_UNIT(ait, charge); in aiguard_assign_guard_unit() 222 CHECK_GUARD(ait, guard); in aiguard_assign_guard_city() 236 CHECK_CHARGE_UNIT(ait, punit); in aiguard_request_guard() 244 CHECK_CHARGE_UNIT(ait, charge); in aiguard_wanted() 253 CHECK_GUARD(ait, guard); in aiguard_has_charge() 282 CHECK_GUARD(ait, guard); in aiguard_charge_unit() 292 CHECK_GUARD(ait, guard); in aiguard_charge_city() [all …]
|
H A D | aiferry.c | 112 if (dai_is_ferry(punit, ait)) { in aiferry_init_stats() 139 if (dai_is_ferry(punit, ait)) { in aiferry_print_stats() 172 if (dai_is_ferry(ferry, ait)) { in dai_ferry_init_ferry() 196 bool new_f = dai_is_ferry(ferry, ait); in dai_ferry_transformed() 233 if (dai_is_ferry(punit, ait)) { in dai_ferry_lost() 241 aiferry_clear_boat(ait, punit); in dai_ferry_lost() 301 aiferry_clear_boat(ait, punit); in aiferry_request_boat() 327 aiferry_clear_boat(ait, punit); in aiferry_psngr_meet_boat() 366 if (dai_is_ferry(punit, ait) in aiferry_avail_boats() 375 aiferry_print_stats(ait, pplayer); in aiferry_avail_boats() [all …]
|
H A D | aiguard.h | 21 #define CHECK_GUARD(ait, guard) aiguard_check_guard(ait, guard) argument 22 #define CHECK_CHARGE_UNIT(ait, charge) aiguard_check_charge_unit(ait, charge) argument 24 #define CHECK_GUARD(ait, guard) (void)0 argument 25 #define CHECK_CHARGE_UNIT(ait, charge) (void)0 argument 30 void aiguard_clear_charge(struct ai_type *ait, struct unit *guard); 31 void aiguard_clear_guard(struct ai_type *ait, struct unit *charge); 36 void aiguard_request_guard(struct ai_type *ait, struct unit *punit); 37 bool aiguard_wanted(struct ai_type *ait, struct unit *charge); 38 bool aiguard_has_charge(struct ai_type *ait, struct unit *charge); 39 bool aiguard_has_guard(struct ai_type *ait, struct unit *charge); [all …]
|
H A D | aiplayer.c | 40 player_set_ai_data(pplayer, ait, player_data); in dai_player_alloc() 42 dai_data_init(ait, pplayer); in dai_player_alloc() 50 struct ai_plr *player_data = def_ai_player_data(pplayer, ait); in dai_player_free() 52 dai_data_close(ait, pplayer); in dai_player_free() 55 player_set_ai_data(pplayer, ait, NULL); in dai_player_free() 63 void dai_player_save(struct ai_type *ait, const char *aitstr, in dai_player_save() argument 106 void dai_player_load(struct ai_type *ait, const char *aitstr, in dai_player_load() argument 149 void dai_player_copy(struct ai_type *ait, in dai_player_copy() argument 162 dai_data_phase_finished(ait, original); in dai_player_copy() 165 dai_data_phase_finished(ait, created); in dai_player_copy() [all …]
|
H A D | aiferry.h | 24 bool dai_is_ferry(struct unit *pferry, struct ai_type *ait); 29 void aiferry_init_stats(struct ai_type *ait, struct player *pplayer); 34 int aiferry_find_boat(struct ai_type *ait, struct unit *punit, 45 void dai_ferry_init_ferry(struct ai_type *ait, struct unit *ferry); 46 void dai_ferry_lost(struct ai_type *ait, struct unit *punit); 47 void dai_ferry_transformed(struct ai_type *ait, struct unit *ferry, 53 void aiferry_clear_boat(struct ai_type *ait, struct unit *punit); 60 bool aiferry_gobyboat(struct ai_type *ait, struct player *pplayer, 70 bool dai_amphibious_goto_constrained(struct ai_type *ait, 76 bool is_boat_free(struct ai_type *ait, struct unit *boat, [all …]
|
H A D | aiunit.c | 625 CHECK_GUARD(ait, punit); in dai_military_bodyguard() 861 if (aiguard_has_charge(ait, punit) in dai_military_findjob() 873 if ((aunit && (aiguard_has_guard(ait, aunit) || aiguard_wanted(ait, aunit)) in dai_military_findjob() 934 aiguard_clear_charge(ait, punit); in dai_military_defend() 1843 && (dai_is_ferry(punit, ait) in dai_military_attack() 2311 dai_unit_new_task(ait, punit, in dai_manage_caravan() 2424 aiferry_clear_boat(ait, punit); in dai_manage_military() 2759 dai_airlift(ait, pplayer); in dai_manage_units() 2774 dai_set_defenders(ait, pplayer); in dai_manage_units() 3207 aiguard_clear_charge(ait, punit); in dai_unit_close() [all …]
|
H A D | aidata.c | 43 static void dai_diplomacy_new(struct ai_type *ait, 76 dai_diplomacy_new(ait, pplayer, aplayer); in dai_data_init() 77 dai_diplomacy_defaults(ait, pplayer, aplayer); in dai_data_init() 80 dai_diplomacy_new(ait, aplayer, pplayer); in dai_data_init() 107 dai_data_phase_finished(ait, pplayer); in dai_data_close() 167 dai_diplomacy_begin_new_phase(ait, pplayer); in dai_data_phase_begin() 238 aiferry_init_stats(ait, pplayer); in dai_data_phase_begin() 316 dai_data_phase_finished(ait, pplayer); in dai_plr_data_get() 317 dai_data_phase_begin(ait, pplayer, FALSE); in dai_plr_data_get() 326 dai_data_phase_finished(ait, pplayer); in dai_plr_data_get() [all …]
|
H A D | aitools.c | 169 adip = dai_diplomacy_get(ait, plr1, plr2); in dai_consider_plr_dangerous() 194 aiguard_clear_guard(ait, punit); in dai_gothere_bodyguard() 238 aiguard_request_guard(ait, punit); in dai_gothere_bodyguard() 241 aiguard_clear_guard(ait, punit); in dai_gothere_bodyguard() 305 aiferry_clear_boat(ait, punit); in dai_gothere() 500 && dai_is_ferry(punit, ait)); in dai_fill_unit_param() 670 aiferry_clear_boat(ait, punit); in dai_unit_new_task() 703 aiguard_clear_charge(ait, punit); in dai_unit_new_task() 805 CHECK_GUARD(ait, bodyguard); in dai_unit_bodyguard_move() 806 CHECK_CHARGE_UNIT(ait, punit); in dai_unit_bodyguard_move() [all …]
|
H A D | aiunit.h | 73 || dai_diplomacy_get(ait, pplayer, aplayer)->countdown >= 0) 91 void dai_manage_unit(struct ai_type *ait, struct player *pplayer, 96 int look_for_charge(struct ai_type *ait, struct player *pplayer, 101 struct ai_type *ait); 129 void dai_units_ruleset_init(struct ai_type *ait); 130 void dai_units_ruleset_close(struct ai_type *ait); 132 void dai_unit_init(struct ai_type *ait, struct unit *punit); 133 void dai_unit_turn_end(struct ai_type *ait, struct unit *punit); 134 void dai_unit_close(struct ai_type *ait, struct unit *punit); 146 void dai_unit_save(struct ai_type *ait, const char *aitstr, [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/ai/default/ |
H A D | aiguard.c | 136 CHECK_GUARD(ait, guard); in aiguard_clear_charge() 166 CHECK_CHARGE_UNIT(ait, charge); in aiguard_clear_guard() 190 CHECK_GUARD(ait, guard); in aiguard_assign_guard_unit() 191 CHECK_CHARGE_UNIT(ait, charge); in aiguard_assign_guard_unit() 222 CHECK_GUARD(ait, guard); in aiguard_assign_guard_city() 236 CHECK_CHARGE_UNIT(ait, punit); in aiguard_request_guard() 244 CHECK_CHARGE_UNIT(ait, charge); in aiguard_wanted() 253 CHECK_GUARD(ait, guard); in aiguard_has_charge() 282 CHECK_GUARD(ait, guard); in aiguard_charge_unit() 292 CHECK_GUARD(ait, guard); in aiguard_charge_city() [all …]
|
H A D | aiferry.c | 112 if (dai_is_ferry(punit, ait)) { in aiferry_init_stats() 139 if (dai_is_ferry(punit, ait)) { in aiferry_print_stats() 172 if (dai_is_ferry(ferry, ait)) { in dai_ferry_init_ferry() 196 bool new_f = dai_is_ferry(ferry, ait); in dai_ferry_transformed() 233 if (dai_is_ferry(punit, ait)) { in dai_ferry_lost() 241 aiferry_clear_boat(ait, punit); in dai_ferry_lost() 301 aiferry_clear_boat(ait, punit); in aiferry_request_boat() 327 aiferry_clear_boat(ait, punit); in aiferry_psngr_meet_boat() 366 if (dai_is_ferry(punit, ait) in aiferry_avail_boats() 375 aiferry_print_stats(ait, pplayer); in aiferry_avail_boats() [all …]
|
H A D | aiguard.h | 21 #define CHECK_GUARD(ait, guard) aiguard_check_guard(ait, guard) argument 22 #define CHECK_CHARGE_UNIT(ait, charge) aiguard_check_charge_unit(ait, charge) argument 24 #define CHECK_GUARD(ait, guard) (void)0 argument 25 #define CHECK_CHARGE_UNIT(ait, charge) (void)0 argument 30 void aiguard_clear_charge(struct ai_type *ait, struct unit *guard); 31 void aiguard_clear_guard(struct ai_type *ait, struct unit *charge); 36 void aiguard_request_guard(struct ai_type *ait, struct unit *punit); 37 bool aiguard_wanted(struct ai_type *ait, struct unit *charge); 38 bool aiguard_has_charge(struct ai_type *ait, struct unit *charge); 39 bool aiguard_has_guard(struct ai_type *ait, struct unit *charge); [all …]
|
H A D | aiplayer.c | 40 player_set_ai_data(pplayer, ait, player_data); in dai_player_alloc() 42 dai_data_init(ait, pplayer); in dai_player_alloc() 50 struct ai_plr *player_data = def_ai_player_data(pplayer, ait); in dai_player_free() 52 dai_data_close(ait, pplayer); in dai_player_free() 55 player_set_ai_data(pplayer, ait, NULL); in dai_player_free() 63 void dai_player_save(struct ai_type *ait, const char *aitstr, in dai_player_save() argument 106 void dai_player_load(struct ai_type *ait, const char *aitstr, in dai_player_load() argument 149 void dai_player_copy(struct ai_type *ait, in dai_player_copy() argument 162 dai_data_phase_finished(ait, original); in dai_player_copy() 165 dai_data_phase_finished(ait, created); in dai_player_copy() [all …]
|
H A D | aiferry.h | 24 bool dai_is_ferry(struct unit *pferry, struct ai_type *ait); 29 void aiferry_init_stats(struct ai_type *ait, struct player *pplayer); 34 int aiferry_find_boat(struct ai_type *ait, struct unit *punit, 45 void dai_ferry_init_ferry(struct ai_type *ait, struct unit *ferry); 46 void dai_ferry_lost(struct ai_type *ait, struct unit *punit); 47 void dai_ferry_transformed(struct ai_type *ait, struct unit *ferry, 53 void aiferry_clear_boat(struct ai_type *ait, struct unit *punit); 60 bool aiferry_gobyboat(struct ai_type *ait, struct player *pplayer, 70 bool dai_amphibious_goto_constrained(struct ai_type *ait, 76 bool is_boat_free(struct ai_type *ait, struct unit *boat, [all …]
|
H A D | aiunit.c | 625 CHECK_GUARD(ait, punit); in dai_military_bodyguard() 861 if (aiguard_has_charge(ait, punit) in dai_military_findjob() 873 if ((aunit && (aiguard_has_guard(ait, aunit) || aiguard_wanted(ait, aunit)) in dai_military_findjob() 934 aiguard_clear_charge(ait, punit); in dai_military_defend() 1843 && (dai_is_ferry(punit, ait) in dai_military_attack() 2311 dai_unit_new_task(ait, punit, in dai_manage_caravan() 2424 aiferry_clear_boat(ait, punit); in dai_manage_military() 2759 dai_airlift(ait, pplayer); in dai_manage_units() 2774 dai_set_defenders(ait, pplayer); in dai_manage_units() 3207 aiguard_clear_charge(ait, punit); in dai_unit_close() [all …]
|
H A D | aidata.c | 43 static void dai_diplomacy_new(struct ai_type *ait, 76 dai_diplomacy_new(ait, pplayer, aplayer); in dai_data_init() 77 dai_diplomacy_defaults(ait, pplayer, aplayer); in dai_data_init() 80 dai_diplomacy_new(ait, aplayer, pplayer); in dai_data_init() 107 dai_data_phase_finished(ait, pplayer); in dai_data_close() 167 dai_diplomacy_begin_new_phase(ait, pplayer); in dai_data_phase_begin() 238 aiferry_init_stats(ait, pplayer); in dai_data_phase_begin() 316 dai_data_phase_finished(ait, pplayer); in dai_plr_data_get() 317 dai_data_phase_begin(ait, pplayer, FALSE); in dai_plr_data_get() 326 dai_data_phase_finished(ait, pplayer); in dai_plr_data_get() [all …]
|
H A D | aitools.c | 169 adip = dai_diplomacy_get(ait, plr1, plr2); in dai_consider_plr_dangerous() 194 aiguard_clear_guard(ait, punit); in dai_gothere_bodyguard() 238 aiguard_request_guard(ait, punit); in dai_gothere_bodyguard() 241 aiguard_clear_guard(ait, punit); in dai_gothere_bodyguard() 305 aiferry_clear_boat(ait, punit); in dai_gothere() 500 && dai_is_ferry(punit, ait)); in dai_fill_unit_param() 670 aiferry_clear_boat(ait, punit); in dai_unit_new_task() 703 aiguard_clear_charge(ait, punit); in dai_unit_new_task() 805 CHECK_GUARD(ait, bodyguard); in dai_unit_bodyguard_move() 806 CHECK_CHARGE_UNIT(ait, punit); in dai_unit_bodyguard_move() [all …]
|
H A D | aiunit.h | 73 || dai_diplomacy_get(ait, pplayer, aplayer)->countdown >= 0) 91 void dai_manage_unit(struct ai_type *ait, struct player *pplayer, 96 int look_for_charge(struct ai_type *ait, struct player *pplayer, 101 struct ai_type *ait); 129 void dai_units_ruleset_init(struct ai_type *ait); 130 void dai_units_ruleset_close(struct ai_type *ait); 132 void dai_unit_init(struct ai_type *ait, struct unit *punit); 133 void dai_unit_turn_end(struct ai_type *ait, struct unit *punit); 134 void dai_unit_close(struct ai_type *ait, struct unit *punit); 146 void dai_unit_save(struct ai_type *ait, const char *aitstr, [all …]
|
/dports/devel/pyside2-tools/pyside-setup-opensource-src-5.15.2/sources/shiboken2/generator/ |
H A D | main.cpp | 404 args.options.erase(ait); in main() 415 args.options.erase(ait); in main() 434 args.options.erase(ait); in main() 441 args.options.erase(ait); in main() 447 args.options.erase(ait); in main() 455 args.options.erase(ait); in main() 469 args.options.erase(ait); in main() 568 for (ait = args.options.begin(); ait != args.options.end(); ) { in main() 571 found |= generator->handleOption(ait.key(), ait.value()); in main() 573 ait = args.options.erase(ait); in main() [all …]
|
/dports/devel/pyside2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/generator/ |
H A D | main.cpp | 404 args.options.erase(ait); in main() 415 args.options.erase(ait); in main() 434 args.options.erase(ait); in main() 441 args.options.erase(ait); in main() 447 args.options.erase(ait); in main() 455 args.options.erase(ait); in main() 469 args.options.erase(ait); in main() 568 for (ait = args.options.begin(); ait != args.options.end(); ) { in main() 571 found |= generator->handleOption(ait.key(), ait.value()); in main() 573 ait = args.options.erase(ait); in main() [all …]
|
/dports/devel/shiboken2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/generator/ |
H A D | main.cpp | 404 args.options.erase(ait); in main() 415 args.options.erase(ait); in main() 434 args.options.erase(ait); in main() 441 args.options.erase(ait); in main() 447 args.options.erase(ait); in main() 455 args.options.erase(ait); in main() 469 args.options.erase(ait); in main() 568 for (ait = args.options.begin(); ait != args.options.end(); ) { in main() 571 found |= generator->handleOption(ait.key(), ait.value()); in main() 573 ait = args.options.erase(ait); in main() [all …]
|
/dports/astro/gpstk/GPSTk-8.0.0/ext/lib/Geomatics/ |
H A D | gdc.cpp | 789 for(ait = oldArcs.begin(); ait != oldArcs.end(); ++ait) in fixUpArcs() 812 for(ait = Arcs.begin(); ait != Arcs.end(); ++ait) { in recomputeArcs() 888 for(ait = Arcs.begin(); ait != Arcs.end(); ++ait) { in findLargeGaps() 976 for(ait = Arcs.begin(); ait != Arcs.end(); ++ait) { in fixSlips() 1152 for(ait = Arcs.begin(); ait != Arcs.end(); ++ait) { in DumpArcs() 1176 for(ait = Arcs.begin(); ait != Arcs.end(); ++ait) { in returnMessage() 1177 int n,i,ib(ait->second.index),ie(ait->second.index+ait->second.npts); in returnMessage() 1213 for(ait = Arcs.begin(); ait != Arcs.end(); ++ait) in returnMessage() 1217 for(ait = newArcs.begin(); ait != newArcs.end(); ++ait) { in returnMessage() 1229 for(ait = Arcs.begin(); ait != Arcs.end(); ++ait) { in returnMessage() [all …]
|
/dports/multimedia/gpac-mp4box/gpac-1.0.0/src/media_tools/ |
H A D | ait.c | 67 GF_M2TS_AIT* ait; in on_ait_section() local 68 GF_SAFEALLOC(ait, GF_M2TS_AIT); in on_ait_section() 69 if (!ait) return; in on_ait_section() 72 ait->pid = ait_carry->pid; in on_ait_section() 75 gf_m2ts_process_ait(ts,ait); in on_ait_section() 76 gf_ait_destroy(ait); in on_ait_section() 95 if(ait->common_descriptors == NULL) { in gf_m2ts_decode_ait() 105 ait->table_id = gf_bs_read_int(bs,8); in gf_m2ts_decode_ait() 128 if(!ait->current_next_indicator) { in gf_m2ts_decode_ait() 452 ChanAppInfo->ait_pid = ait->pid; in gf_m2ts_process_ait() [all …]
|