MCPcopy Create free account
hub / github.com/pybind/pybind11 / run

Method run

tests/test_virtual_functions.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 virtual ~ExampleVirt() { print_destroyed(this); }
27
28 virtual int run(int value) {
29 py::print("Original implementation of "
30 "ExampleVirt::run(state={}, value={}, str1={}, str2={})"_s.format(
31 state, value, get_string1(), *get_string2()));
32 return state + value;
33 }
34
35 virtual bool run_bool() = 0;
36 virtual void pure_virtual() = 0;

Callers 1

TEST_SUBMODULEFunction · 0.45

Calls 2

printFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected