Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
e96c06e6
Commit
e96c06e6
authored
Jan 24, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming files in include directory, creating pybind11/smart_holder.h.
parent
661eeb38
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
14 additions
and
18 deletions
+14
-18
include/pybind11/classh.h
+0
-10
include/pybind11/detail/smart_holder_poc.h
+0
-0
include/pybind11/detail/smart_holder_type_casters.h
+4
-1
include/pybind11/smart_holder.h
+3
-0
tests/classh_module_local_0.cpp
+1
-1
tests/classh_module_local_1.cpp
+1
-1
tests/classh_module_local_2.cpp
+1
-1
tests/core/smart_holder_poc_test.cpp
+1
-1
tests/test_classh_inheritance.cpp
+1
-1
tests/test_classh_wip.cpp
+1
-1
tests/test_unique_ptr_member.cpp
+1
-1
No files found.
include/pybind11/classh.h
deleted
100644 → 0
View file @
661eeb38
#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
)
include/pybind11/smart_holder_poc.h
→
include/pybind11/
detail/
smart_holder_poc.h
View file @
e96c06e6
File moved
include/pybind11/detail/
classh
_type_casters.h
→
include/pybind11/detail/
smart_holder
_type_casters.h
View file @
e96c06e6
...
@@ -2,11 +2,11 @@
...
@@ -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 @@
...
@@ -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
,
...
...
include/pybind11/smart_holder.h
0 → 100644
View file @
e96c06e6
#pragma once
#include "detail/smart_holder_type_casters.h"
tests/classh_module_local_0.cpp
View file @
e96c06e6
#include <pybind11/classh.h>
#include <pybind11/pybind11.h>
#include <pybind11/pybind11.h>
#include <pybind11/smart_holder.h>
#include <string>
#include <string>
...
...
tests/classh_module_local_1.cpp
View file @
e96c06e6
// 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>
...
...
tests/classh_module_local_2.cpp
View file @
e96c06e6
// 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>
...
...
tests/core/smart_holder_poc_test.cpp
View file @
e96c06e6
#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"
...
...
tests/test_classh_inheritance.cpp
View file @
e96c06e6
#include "pybind11_tests.h"
#include "pybind11_tests.h"
#include <pybind11/
classh
.h>
#include <pybind11/
smart_holder
.h>
#include <memory>
#include <memory>
...
...
tests/test_classh_wip.cpp
View file @
e96c06e6
#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>
...
...
tests/test_unique_ptr_member.cpp
View file @
e96c06e6
#include "pybind11_tests.h"
#include "pybind11_tests.h"
#include <pybind11/
classh
.h>
#include <pybind11/
smart_holder
.h>
#include <memory>
#include <memory>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment