Logo ROOT  
Reference Guide
TTupleOfInstances.h
Go to the documentation of this file.
1#ifndef PYROOT_TTUPLEOFINSTANCES_H
2#define PYROOT_TTUPLEOFINSTANCES_H
3
4// ROOT
5#include "DllImport.h"
6
7
8namespace PyROOT {
9
10/** Representation of C-style array of instances
11 @author WLAV
12 @date 02/10/2014
13 @version 1.0
14 */
15
16//- custom tuple type that can pass through C-style arrays -------------------
18
19 template< typename T >
21 {
22 return object && PyObject_TypeCheck( object, &TTupleOfInstances_Type );
23 }
24
25 template< typename T >
27 {
28 return object && Py_TYPE(object) == &TTupleOfInstances_Type;
29 }
30
32 Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Py_ssize_t nelems );
33
34} // namespace PyROOT
35
36#endif // !PYROOT_TTUPLEOFINSTANCES_H
#define R__EXTERN
Definition: DllImport.h:27
#define Py_TYPE(ob)
Definition: PyROOT.h:166
int Py_ssize_t
Definition: PyROOT.h:171
bool Bool_t
Definition: RtypesCore.h:59
_object PyObject
Definition: TPyArg.h:20
TCppScope_t TCppType_t
Definition: Cppyy.h:16
void * TCppObject_t
Definition: Cppyy.h:17
Bool_t TTupleOfInstances_CheckExact(T *object)
PyObject * TTupleOfInstances_New(Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Py_ssize_t nelems)
Bool_t TTupleOfInstances_Check(T *object)
PyTypeObject TTupleOfInstances_Type
Representation of C-style array of instances.
double T(double x)
Definition: ChebyshevPol.h:34