Go to the source code of this file.
Value:public: \
virtual int unlucky_number() = 0; \
virtual std::string say_something(unsigned times) { \
for (
unsigned i = 0;
i < times; ++
i) \
} \
std::string say_everything() {
\ return say_something(1) +
" " + std::to_string(unlucky_number()); \
}
for(size_t i=1;i< poses.size();++i)
Definition at line 341 of file test_virtual_functions.cpp.
Value: int unlucky_number()
override {
return 13; } \
std::string say_something(
unsigned times)
override {
\ return "B says hi " + std::to_string(times) +
" times"; \
} \
virtual double lucky_number() { return 7.0; }
Definition at line 359 of file test_virtual_functions.cpp.
Value: int unlucky_number()
override {
return 4444; } \
double lucky_number() override { return 888; }
Definition at line 369 of file test_virtual_functions.cpp.
void initialize_inherited_virtuals |
( |
py::module & |
m | ) |
|
static void test_gil_from_thread |
( |
| ) |
|
|
static |
TEST_SUBMODULE |
( |
virtual_functions |
, |
|
|
m |
|
|
) |
| |