Go to the source code of this file.
◆ A_METHODS
Value:public: \
virtual int unlucky_number() = 0; \
virtual std::string say_something(unsigned times) { \
std::string s = ""; \
for (
unsigned i = 0;
i < times; ++
i) \
s += "hi"; \
return s; \
} \
std::string say_everything() { \
}
auto to_string(T &&value) -> decltype(std::forward< T >(value))
Convert an object to a string (directly forward if this can become a string)
Definition at line 329 of file test_virtual_functions.cpp.
◆ B_METHODS
Value:public: \
int unlucky_number() override { return 13; } \
std::string say_something(unsigned times) override { \
} \
virtual double lucky_number() { return 7.0; }
auto to_string(T &&value) -> decltype(std::forward< T >(value))
Convert an object to a string (directly forward if this can become a string)
Definition at line 345 of file test_virtual_functions.cpp.
◆ C_METHODS
Value:public: \
int unlucky_number() override { return 4444; } \
double lucky_number() override { return 888; }
Definition at line 355 of file test_virtual_functions.cpp.
◆ D_METHODS
◆ initialize_inherited_virtuals()
| void initialize_inherited_virtuals |
( |
py::module & |
m | ) |
|
◆ test_gil()
◆ test_gil_from_thread()
| static void test_gil_from_thread |
( |
| ) |
|
|
static |
◆ test_submodule_virtual_functions()
| void test_submodule_virtual_functions |
( |
py::module & |
m | ) |
|
◆ virtual_functions
| test_initializer virtual_functions("virtual_functions", test_submodule_virtual_functions) |