Scarab  v2.9.0
Project 8 C++ Utility Library
Classes | Macros | Functions | Variables
test_multiple_inheritance.cpp File Reference
#include "pybind11_tests.h"
#include "constructor_stats.h"
Include dependency graph for test_multiple_inheritance.cpp:

Go to the source code of this file.

Classes

struct  BaseN< N >
 
struct  Vanilla
 
struct  WithStatic1
 
struct  WithStatic2
 
struct  VanillaStaticMix1
 
struct  VanillaStaticMix2
 

Macros

#define PYBIND11_BASEN(N)   py::class_<BaseN<N>>(m, "BaseN" #N).def(py::init<int>()).def("f" #N, [](BaseN<N> &b) { return b.i + N; })
 

Functions

void test_submodule_multiple_inheritance (py::module &)
 

Variables

test_initializer multiple_inheritance ("multiple_inheritance", test_submodule_multiple_inheritance)
 

Macro Definition Documentation

◆ PYBIND11_BASEN

#define PYBIND11_BASEN (   N)    py::class_<BaseN<N>>(m, "BaseN" #N).def(py::init<int>()).def("f" #N, [](BaseN<N> &b) { return b.i + N; })

Function Documentation

◆ test_submodule_multiple_inheritance()

void test_submodule_multiple_inheritance ( py::module m)

Definition at line 46 of file test_multiple_inheritance.cpp.

Variable Documentation

◆ multiple_inheritance

test_initializer multiple_inheritance("multiple_inheritance", test_submodule_multiple_inheritance)