Logo ROOT   6.10/09
Reference Guide
TPyBufferFactory.h
Go to the documentation of this file.
1 // @(#)root/pyroot:$Id$
2 // Author: Wim Lavrijsen, Apr 2004
3 
4 #ifndef PYROOT_TPYBUFFERFACTORY_H
5 #define PYROOT_TPYBUFFERFACTORY_H
6 
7 
8 namespace PyROOT {
9 
10 /** Factory for python buffers of non-string type
11  @author WLAV
12  @date 10/28/2004
13  @version 1.5
14 */
15 
17 public:
18  static TPyBufferFactory* Instance();
19 
20  PyObject* PyBuffer_FromMemory( Bool_t* buf, Py_ssize_t size = -1 );
21  PyObject* PyBuffer_FromMemory( Bool_t* buf, PyObject* sizeCallback );
22  PyObject* PyBuffer_FromMemory( Short_t* buf, Py_ssize_t size = -1 );
23  PyObject* PyBuffer_FromMemory( Short_t* buf, PyObject* sizeCallback );
24  PyObject* PyBuffer_FromMemory( UShort_t* buf, Py_ssize_t size = -1 );
25  PyObject* PyBuffer_FromMemory( UShort_t* buf, PyObject* sizeCallback );
26  PyObject* PyBuffer_FromMemory( Int_t* buf, Py_ssize_t size = -1 );
27  PyObject* PyBuffer_FromMemory( Int_t* buf, PyObject* sizeCallback );
28  PyObject* PyBuffer_FromMemory( UInt_t* buf, Py_ssize_t size = -1 );
29  PyObject* PyBuffer_FromMemory( UInt_t* buf, PyObject* sizeCallback );
30  PyObject* PyBuffer_FromMemory( Long_t* buf, Py_ssize_t size = -1 );
31  PyObject* PyBuffer_FromMemory( Long_t* buf, PyObject* sizeCallback );
32  PyObject* PyBuffer_FromMemory( ULong_t* buf, Py_ssize_t size = -1 );
33  PyObject* PyBuffer_FromMemory( ULong_t* buf, PyObject* sizeCallback );
34  PyObject* PyBuffer_FromMemory( Float_t* buf, Py_ssize_t size = -1 );
35  PyObject* PyBuffer_FromMemory( Float_t* buf, PyObject* sizeCallback );
36  PyObject* PyBuffer_FromMemory( Double_t* buf, Py_ssize_t size = -1 );
37  PyObject* PyBuffer_FromMemory( Double_t* buf, PyObject* sizeCallback );
38 
39 protected:
42 };
43 
45 
46 } // namespace PyROOT
47 
48 
49 #endif // !PYROOT_TPYBUFFERFACTORY_H
float Float_t
Definition: RtypesCore.h:53
unsigned short UShort_t
Definition: RtypesCore.h:36
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TPyBufferFactory BufFac_t
unsigned int UInt_t
Definition: RtypesCore.h:42
short Short_t
Definition: RtypesCore.h:35
PyObject * PyBuffer_FromMemory(Bool_t *buf, Py_ssize_t size=-1)
long Long_t
Definition: RtypesCore.h:50
double Double_t
Definition: RtypesCore.h:55
unsigned long ULong_t
Definition: RtypesCore.h:51
Factory for python buffers of non-string type.
int Py_ssize_t
Definition: PyROOT.h:156
static TPyBufferFactory * Instance()
_object PyObject
Definition: TPyArg.h:20