resonance
1.0.1
Loading...
Searching...
No Matches
fromapi.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
script/cxx/config.h
"
4
5
namespace
Py
{
6
25
class
FromAPI
{
26
public
:
32
explicit
FromAPI
(PyObject *pyob) :
mPtr
(pyob) {
33
}
34
41
virtual
~FromAPI
() {
42
Py_XDECREF(
mPtr
);
43
}
44
55
PyObject *
mPtr
;
56
};
57
58
}
// namespace Py
Py::FromAPI::~FromAPI
virtual ~FromAPI()
Release the adopted reference.
Definition
fromapi.h:41
Py::FromAPI::FromAPI
FromAPI(PyObject *pyob)
Adopt a new reference.
Definition
fromapi.h:32
Py::FromAPI::mPtr
PyObject * mPtr
Adopted reference, null when the API call failed.
Definition
fromapi.h:55
config.h
Configuration header of the PyCXX binding layer.
Py
C++ wrappers for the embedded Python interpreter's objects, types, and extension modules.
Definition
attributeerror.h:7
src
script
cxx
fromapi.h
Generated by
1.15.0