MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetMethodByIndex

Method GetMethodByIndex

sdk/angelscript/source/as_objecttype.cpp:264–277  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

262
263// interface
264asIScriptFunction *asCObjectType::GetMethodByIndex(asUINT index, bool getVirtual) const
265{
266 if( index >= methods.GetLength() )
267 return 0;
268
269 asCScriptFunction *func = engine->scriptFunctions[methods[index]];
270 if( !getVirtual )
271 {
272 if( func && func->funcType == asFUNC_VIRTUAL )
273 return virtualFunctionTable[func->vfTableIdx];
274 }
275
276 return func;
277}
278
279// interface
280asIScriptFunction *asCObjectType::GetMethodByName(const char *in_name, bool in_getVirtual) const

Callers 7

CompileClassesMethod · 0.45
CompareRelationFunction · 0.45
CompareEqualityFunction · 0.45
WriteMethod · 0.45
PrecacheMethod · 0.45
DumpObjectTypeFunction · 0.45
Test2Function · 0.45

Calls 1

GetLengthMethod · 0.45

Tested by 2

DumpObjectTypeFunction · 0.36
Test2Function · 0.36