MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / findMethod

Method findMethod

src/Object.cpp:303–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303const Object::VTable::MethodItem* Object::findMethod(const VTable& vtable, std::string_view methodName)
304{
305 auto it = std::lower_bound(vtable.methods.begin(), vtable.methods.end(), methodName, [](const auto& methodItem, const auto& methodName)
306 {
307 return methodItem.name < methodName;
308 });
309
310 return it != vtable.methods.end() && it->name == methodName ? &*it : nullptr;
311}
312
313const Object::VTable::PropertyItem* Object::findProperty(const VTable& vtable, std::string_view propertyName)
314{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected