ROOT
Version v6.32
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
v6.04
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
▼
bindings
▼
pyroot
▼
cppyy
►
cppyy
►
cppyy-backend
▼
CPyCppyy
►
include
▼
src
►
API.cxx
CallContext.cxx
►
CallContext.h
►
Converters.cxx
►
Converters.h
CPPClassMethod.cxx
►
CPPClassMethod.h
CPPConstructor.cxx
►
CPPConstructor.h
►
CPPDataMember.cxx
►
CPPDataMember.h
►
CPPEnum.cxx
►
CPPEnum.h
►
CPPExcInstance.cxx
►
CPPExcInstance.h
CPPFunction.cxx
►
CPPFunction.h
►
CPPGetSetItem.cxx
►
CPPGetSetItem.h
►
CPPInstance.cxx
►
CPPInstance.h
►
CPPMethod.cxx
►
CPPMethod.h
CPPOperator.cxx
►
CPPOperator.h
►
CPPOverload.cxx
►
CPPOverload.h
►
CPPScope.cxx
►
CPPScope.h
►
Cppyy.h
►
CPyCppyy.h
►
CPyCppyyModule.cxx
►
CustomPyTypes.cxx
►
CustomPyTypes.h
►
DeclareConverters.h
►
DeclareExecutors.h
►
Dimensions.h
►
Dispatcher.cxx
►
Dispatcher.h
►
DispatchPtr.cxx
►
Executors.cxx
►
Executors.h
►
LowLevelViews.cxx
►
LowLevelViews.h
►
MemoryRegulator.cxx
►
MemoryRegulator.h
►
ProxyWrappers.cxx
►
ProxyWrappers.h
►
PyCallable.h
►
PyException.cxx
PyObjectDir27.inc
►
PyResult.cxx
►
PyStrings.cxx
►
PyStrings.h
►
Pythonize.cxx
►
Pythonize.h
►
SignalTryCatch.h
►
TemplateProxy.cxx
►
TemplateProxy.h
►
TPyArg.cxx
TPyClassGenerator.cxx
TPyClassGenerator.h
►
TupleOfInstances.cxx
►
TupleOfInstances.h
►
TypeManip.cxx
►
TypeManip.h
►
Utility.cxx
►
Utility.h
►
pythonizations
►
r
►
tpython
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
CPPExcInstance.h
Go to the documentation of this file.
1
#ifndef CPYCPPYY_CPPEXCINSTANCE_H
2
#define CPYCPPYY_CPPEXCINSTANCE_H
3
4
//////////////////////////////////////////////////////////////////////////////
5
// //
6
// CpyCppyy::CPPExceptionInstance //
7
// //
8
// Python-side proxy, encapsulaties a C++ exception object. //
9
// //
10
//////////////////////////////////////////////////////////////////////////////
11
12
namespace
CPyCppyy
{
13
14
class
CPPExcInstance
{
15
public
:
16
PyBaseExceptionObject
fBase
;
17
PyObject
*
fCppInstance
;
18
PyObject
*
fTopMessage
;
19
};
20
21
22
//- object proxy type and type verification ----------------------------------
23
CPYCPPYY_IMPORT
PyTypeObject
CPPExcInstance_Type
;
24
25
template
<
typename
T>
26
inline
bool
CPPExcInstance_Check
(T*
object
)
27
{
28
return
object
&&
PyObject_TypeCheck
(
object
, &
CPPExcInstance_Type
);
29
}
30
31
template
<
typename
T>
32
inline
bool
CPPExcInstance_CheckExact
(T*
object
)
33
{
34
return
object
&&
Py_TYPE
(
object
) == &
CPPExcInstance_Type
;
35
}
36
37
}
// namespace CPyCppyy
38
39
#endif
// !CPYCPPYY_CPPEXCINSTANCE_H
Py_TYPE
#define Py_TYPE(ob)
Definition
CPyCppyy.h:196
PyObject
_object PyObject
Definition
PyMethodBase.h:43
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
CPYCPPYY_IMPORT
#define CPYCPPYY_IMPORT
Definition
CommonDefs.h:26
CPyCppyy::CPPExcInstance
Definition
CPPExcInstance.h:14
CPyCppyy::CPPExcInstance::fCppInstance
PyObject * fCppInstance
Definition
CPPExcInstance.h:17
CPyCppyy::CPPExcInstance::fTopMessage
PyObject * fTopMessage
Definition
CPPExcInstance.h:18
CPyCppyy::CPPExcInstance::fBase
PyBaseExceptionObject fBase
Definition
CPPExcInstance.h:16
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
CPyCppyy
Definition
callcontext.h:10
CPyCppyy::CPPExcInstance_Type
PyTypeObject CPPExcInstance_Type
Definition
CPPExcInstance.cxx:226
CPyCppyy::CPPExcInstance_Check
bool CPPExcInstance_Check(T *object)
Definition
CPPExcInstance.h:26
CPyCppyy::CPPExcInstance_CheckExact
bool CPPExcInstance_CheckExact(T *object)
Definition
CPPExcInstance.h:32
bindings
pyroot
cppyy
CPyCppyy
src
CPPExcInstance.h
ROOT v6-32 - Reference Guide Generated on Fri Feb 28 2025 14:26:22 (GVA Time) using Doxygen 1.10.0