μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Functions
test_smart_ptr.cpp File Reference
#include "object.h"
#include "pybind11_tests.h"
Include dependency graph for test_smart_ptr.cpp:

Go to the source code of this file.

Classes

struct  PYBIND11_NAMESPACE::detail::holder_helper< ref< T > >
 

Namespaces

namespace  PYBIND11_NAMESPACE
 
namespace  PYBIND11_NAMESPACE::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 >)
 
 TEST_SUBMODULE (smart_ptr, m)
 

Function Documentation

◆ PYBIND11_DECLARE_HOLDER_TYPE() [1/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
custom_unique_ptr< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [2/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
huge_unique_ptr< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [3/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
ref< T >  ,
true   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [4/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
shared_ptr_with_addressof_operator< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [5/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
std::shared_ptr< T >   
)

◆ PYBIND11_DECLARE_HOLDER_TYPE() [6/6]

PYBIND11_DECLARE_HOLDER_TYPE ( ,
unique_ptr_with_addressof_operator< T >   
)

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( smart_ptr  ,
 
)

Definition at line 287 of file test_smart_ptr.cpp.

References list::append(), Object::getRefCount(), and self.