MCPcopy Create free account
hub / github.com/avast/retdec / hasMethod

Method hasMethod

src/common/class.cpp:82–85  ·  view source on GitHub ↗

* Has the class a method of the given name? * * Only non-virtual methods are considered. If you want to check whether a class * has a virtual method, use hasVirtualMethod(). */

Source from the content-addressed store, hash-verified

80* has a virtual method, use hasVirtualMethod().
81*/
82bool Class::hasMethod(const std::string& name) const
83{
84 return hasItem(methods, name);
85}
86
87/**
88* Has the class a virtual method of the given name?

Callers 2

getTypeOfFuncInClassMethod · 0.80
TEST_FFunction · 0.80

Calls 1

hasItemFunction · 0.85

Tested by 1

TEST_FFunction · 0.64