MCPcopy Create free account
hub / github.com/devosoft/avida / LookupMethod

Method LookupMethod

avida-core/source/script/cASNativeObject.h:83–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 cASCPPParameter CallMethod(int mid, cASCPPParameter args[]) const { return (*s_methods)[mid]->Call(m_object, args); }
82
83 bool LookupMethod(const cString& meth_name, int& mid) { return s_method_dict->Find(meth_name, mid); }
84
85 int GetArity(int mid) const { return (*s_methods)[mid]->GetArity(); }
86 const sASTypeInfo& GetArgumentType(int mid, int arg) const { return (*s_methods)[mid]->GetArgumentType(arg); }

Callers 1

VisitObjectCallMethod · 0.80

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected