MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / find

Method find

xrepo/packages/d/daScriptCore/port/daScript/src/ast/ast.cpp:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153
154 pair<ExpressionPtr,bool> Enumeration::find ( const string & na ) const {
155 auto it = find_if(list.begin(), list.end(), [&](const EnumEntry & arg){
156 return arg.name == na;
157 });
158 return it!=list.end() ?
159 pair<ExpressionPtr,bool>(it->value,true) :
160 pair<ExpressionPtr,bool>(nullptr,false);
161 }
162
163 int64_t Enumeration::find ( const string & na, int64_t def ) const {
164 auto it = find_if(list.begin(), list.end(), [&](const EnumEntry & arg){

Callers 15

lookMethod · 0.45
compilation_fail_testFunction · 0.45
tickSpecificDebugAgentFunction · 0.45
onCppDebugAgentFunction · 0.45
uninstallCppDebugAgentFunction · 0.45
installDebugAgentFunction · 0.45
simulate.cppFile · 0.45
hasDebugAgentContextFunction · 0.45
isMethod · 0.45
is2Method · 0.45
visitMethod · 0.45
collectMethod · 0.45

Calls 5

find_ifFunction · 0.85
getConstExprIntOrUIntFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by 2

lookMethod · 0.36
compilation_fail_testFunction · 0.36