MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / update

Function update

ogsr_engine/xrGame/safe_map_iterator_inline.h:92–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90IC const typename CSSafeMapIterator::_REGISTRY& CSSafeMapIterator::objects() const { return (m_objects); }
91
92TEMPLATE_SPEZIALIZATION
93template <typename _update_predicate>
94IC u32 CSSafeMapIterator::update(const _update_predicate& predicate)
95{
96 if (empty())
97 return (0);
98
99 start_timer();
100 ++m_cycle_count;
101 _iterator I = next();
102 VERIFY(I != m_objects.end());
103 u32 i = 0;
104 for (; (I != m_objects.end()) && !time_over() && predicate(I, m_cycle_count, true); ++i)
105 {
106 update_next();
107 predicate(I, m_cycle_count);
108 I = next();
109 }
110 m_first_update = false;
111 return (i);
112}
113
114TEMPLATE_SPEZIALIZATION
115IC void CSSafeMapIterator::clear()

Callers 15

try_change_enemyMethod · 0.85
updateMethod · 0.85
updateMethod · 0.85
updateMethod · 0.85
ProcessMethod · 0.85
updateMethod · 0.85
update_enemiesMethod · 0.85
updateMethod · 0.85
shedule_UpdateMethod · 0.85
UpdateCLMethod · 0.85
setup_firedepsMethod · 0.85
updateMethod · 0.85

Calls 3

predicateClass · 0.85
emptyFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected