Scarab  2.8.1
Project 8 C++ Utility Library
Classes | Namespaces | Functions | Variables
test_smart_ptr.cpp File Reference
#include "pybind11_tests.h"
#include "object.h"
Include dependency graph for test_smart_ptr.cpp:

Go to the source code of this file.

Classes

struct  holder_helper< ref< T > >
 
class  huge_unique_ptr< T >
 
class  custom_unique_ptr< T >
 
class  shared_ptr_with_addressof_operator< T >
 
class  unique_ptr_with_addressof_operator< T >
 

Namespaces

 pybind11
 glibc defines I as a macro which breaks things, e.g., boost template names
 
 pybind11::detail
 

Functions

 PYBIND11_DECLARE_HOLDER_TYPE (T, ref< T >, true)
 
 PYBIND11_DECLARE_HOLDER_TYPE (T, std::shared_ptr< T >)
 
 PYBIND11_DECLARE_HOLDER_TYPE (T, huge_unique_ptr< T >)
 
 PYBIND11_DECLARE_HOLDER_TYPE (T, custom_unique_ptr< T >)
 
 PYBIND11_DECLARE_HOLDER_TYPE (T, shared_ptr_with_addressof_operator< T >)
 
 PYBIND11_DECLARE_HOLDER_TYPE (T, unique_ptr_with_addressof_operator< T >)
 
void test_submodule_smart_ptr (py::module &)
 

Variables

test_initializer smart_ptr ("smart_ptr", test_submodule_smart_ptr)
 

Function Documentation

◆ PYBIND11_DECLARE_HOLDER_TYPE() [1/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
ref< T >  ,
true   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [2/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
std::shared_ptr< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [3/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
huge_unique_ptr< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [4/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
custom_unique_ptr< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [5/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
shared_ptr_with_addressof_operator< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [6/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
unique_ptr_with_addressof_operator< T >   
)

◆ test_submodule_smart_ptr()

void test_submodule_smart_ptr ( py::module m)

Definition at line 88 of file test_smart_ptr.cpp.

Variable Documentation

◆ smart_ptr

test_initializer smart_ptr("smart_ptr", test_submodule_smart_ptr)