MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / canVisitStructure_

Function canVisitStructure_

include/daScript/simulate/data_walker.h:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140 using loop_point = pair<void *,uint64_t>;
141 bool canVisitStructure_ ( char * ps, StructInfo * info ) {
142 auto it = find_if(visited.begin(),visited.end(),[&]( const loop_point & t ){
143 return t.first==ps && t.second==info->hash;
144 });
145 if (it!=visited.end()) {
146 return revisitStructure(ps, info);
147 }
148 return canVisitStructure(ps, info);
149 }
150 bool canVisitHandle_ ( char * ps, TypeInfo * info ) {
151 auto it = find_if(visited_handles.begin(),visited_handles.end(),[&]( const loop_point & t ){
152 return t.first==ps && t.second==info->hash;

Callers 4

walk_structMethod · 0.85
walk_structMethod · 0.85
walk_structMethod · 0.85
walkMethod · 0.85

Calls 4

revisitStructureFunction · 0.85
canVisitStructureFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected