cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Classes | Macros | Functions
pybind11_tests.h File Reference
#include <pybind11/pybind11.h>
#include <pybind11/eval.h>

Go to the source code of this file.

Classes

class  test_initializer
 
struct  UnregisteredType
 Dummy type which is not exported anywhere – something to trigger a conversion error. More...
 
class  UserType
 A user-defined type which is exported and can be used by any test. More...
 
class  IncType
 Like UserType, but increments value on copy for quick reference vs. copy tests. More...
 
union  IntFloat
 A simple union for basic testing. More...
 
struct  RValueCaster
 
class  type_caster< RValueCaster >
 

Macros

#define TEST_SUBMODULE(name, variable)
 

Functions

template<typename F >
void ignoreOldStyleInitWarnings (F &&body)
 

Macro Definition Documentation

◆ TEST_SUBMODULE

#define TEST_SUBMODULE (   name,
  variable 
)
Value:
void test_submodule_##name(py::module_ &); \
test_initializer name(#name, test_submodule_##name); \
void test_submodule_##name(py::module_ &variable)

Definition at line 22 of file pybind11_tests.h.

Function Documentation

◆ ignoreOldStyleInitWarnings()

template<typename F >
void ignoreOldStyleInitWarnings ( F &&  body)

Definition at line 75 of file pybind11_tests.h.

name
Annotation for function names.
Definition: attr.h:36