cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Classes | Macros | Functions
test_multiple_inheritance.cpp File Reference
#include "pybind11_tests.h"
#include "constructor_stats.h"

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

 TEST_SUBMODULE (multiple_inheritance, m)
 

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()

TEST_SUBMODULE ( multiple_inheritance  ,
 
)

Definition at line 46 of file test_multiple_inheritance.cpp.