Classes | Macros | Functions
pybind11_tests.h File Reference
#include <pybind11/eval.h>
#include <pybind11/pybind11.h>
#include <memory>
Include dependency graph for pybind11_tests.h:

Go to the source code of this file.

Classes

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  test_initializer
 
class  type_caster< RValueCaster >
 
struct  UnregisteredType
 Dummy type which is not exported anywhere – something to trigger a conversion error. More...
 
class  UnusualOpRef
 
class  UserType
 A user-defined type which is exported and can be used by any test. More...
 

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 19 of file pybind11_tests.h.

Function Documentation

◆ ignoreOldStyleInitWarnings()

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

Definition at line 88 of file pybind11_tests.h.

name
Annotation for function names.
Definition: attr.h:51
name
static char name[]
Definition: rgamma.c:72


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:50