Renaming files in include directory, creating pybind11/smart_holder.h.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-01-24 22:15:58 -08:00
parent 661eeb381c
commit e96c06e61a
11 changed files with 14 additions and 18 deletions

View File

@ -1,10 +0,0 @@
#pragma once
#include "detail/classh_type_casters.h"
#include "smart_holder_poc.h"
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
using pybindit::memory::smart_holder;
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)

View File

@ -2,11 +2,11 @@
#include "../cast.h" #include "../cast.h"
#include "../pytypes.h" #include "../pytypes.h"
#include "../smart_holder_poc.h"
#include "class.h" #include "class.h"
#include "common.h" #include "common.h"
#include "descr.h" #include "descr.h"
#include "internals.h" #include "internals.h"
#include "smart_holder_poc.h"
#include <memory> #include <memory>
#include <stdexcept> #include <stdexcept>
@ -15,6 +15,9 @@
#include <utility> #include <utility>
namespace pybind11 { namespace pybind11 {
using pybindit::memory::smart_holder;
namespace detail { namespace detail {
inline std::pair<bool, handle> find_existing_python_instance(void *src_void_ptr, inline std::pair<bool, handle> find_existing_python_instance(void *src_void_ptr,

View File

@ -0,0 +1,3 @@
#pragma once
#include "detail/smart_holder_type_casters.h"

View File

@ -1,5 +1,5 @@
#include <pybind11/classh.h>
#include <pybind11/pybind11.h> #include <pybind11/pybind11.h>
#include <pybind11/smart_holder.h>
#include <string> #include <string>

View File

@ -1,6 +1,6 @@
// Identical to classh_module_local_2.cpp, except 2 replaced with 1. // Identical to classh_module_local_2.cpp, except 2 replaced with 1.
#include <pybind11/classh.h>
#include <pybind11/pybind11.h> #include <pybind11/pybind11.h>
#include <pybind11/smart_holder.h>
#include <string> #include <string>

View File

@ -1,6 +1,6 @@
// Identical to classh_module_local_1.cpp, except 1 replaced with 2. // Identical to classh_module_local_1.cpp, except 1 replaced with 2.
#include <pybind11/classh.h>
#include <pybind11/pybind11.h> #include <pybind11/pybind11.h>
#include <pybind11/smart_holder.h>
#include <string> #include <string>

View File

@ -1,4 +1,4 @@
#include "pybind11/smart_holder_poc.h" #include "pybind11/detail/smart_holder_poc.h"
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN
#include "catch.hpp" #include "catch.hpp"

View File

@ -1,6 +1,6 @@
#include "pybind11_tests.h" #include "pybind11_tests.h"
#include <pybind11/classh.h> #include <pybind11/smart_holder.h>
#include <memory> #include <memory>

View File

@ -1,6 +1,6 @@
#include "pybind11_tests.h" #include "pybind11_tests.h"
#include <pybind11/classh.h> #include <pybind11/smart_holder.h>
#include <memory> #include <memory>
#include <string> #include <string>

View File

@ -1,6 +1,6 @@
#include "pybind11_tests.h" #include "pybind11_tests.h"
#include <pybind11/classh.h> #include <pybind11/smart_holder.h>
#include <memory> #include <memory>