Loading [MathJax]/extensions/tex2jax.js
ROOT
6.12/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
n
o
p
r
s
v
w
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
bindings
pyroot
src
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
16
class
TPyBufferFactory
{
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
(
Char_t
* buf,
Py_ssize_t
size = -1 );
23
PyObject
*
PyBuffer_FromMemory
(
Char_t
* buf,
PyObject
* sizeCallback );
24
PyObject
*
PyBuffer_FromMemory
(
UChar_t
* buf,
Py_ssize_t
size = -1 );
25
PyObject
*
PyBuffer_FromMemory
(
UChar_t
* buf,
PyObject
* sizeCallback );
26
PyObject
*
PyBuffer_FromMemory
(
Short_t
* buf,
Py_ssize_t
size = -1 );
27
PyObject
*
PyBuffer_FromMemory
(
Short_t
* buf,
PyObject
* sizeCallback );
28
PyObject
*
PyBuffer_FromMemory
(
UShort_t
* buf,
Py_ssize_t
size = -1 );
29
PyObject
*
PyBuffer_FromMemory
(
UShort_t
* buf,
PyObject
* sizeCallback );
30
PyObject
*
PyBuffer_FromMemory
(
Int_t
* buf,
Py_ssize_t
size = -1 );
31
PyObject
*
PyBuffer_FromMemory
(
Int_t
* buf,
PyObject
* sizeCallback );
32
PyObject
*
PyBuffer_FromMemory
(
UInt_t
* buf,
Py_ssize_t
size = -1 );
33
PyObject
*
PyBuffer_FromMemory
(
UInt_t
* buf,
PyObject
* sizeCallback );
34
PyObject
*
PyBuffer_FromMemory
(
Long_t
* buf,
Py_ssize_t
size = -1 );
35
PyObject
*
PyBuffer_FromMemory
(
Long_t
* buf,
PyObject
* sizeCallback );
36
PyObject
*
PyBuffer_FromMemory
(
ULong_t
* buf,
Py_ssize_t
size = -1 );
37
PyObject
*
PyBuffer_FromMemory
(
ULong_t
* buf,
PyObject
* sizeCallback );
38
PyObject
*
PyBuffer_FromMemory
(
Float_t
* buf,
Py_ssize_t
size = -1 );
39
PyObject
*
PyBuffer_FromMemory
(
Float_t
* buf,
PyObject
* sizeCallback );
40
PyObject
*
PyBuffer_FromMemory
(
Double_t
* buf,
Py_ssize_t
size = -1 );
41
PyObject
*
PyBuffer_FromMemory
(
Double_t
* buf,
PyObject
* sizeCallback );
42
43
protected
:
44
TPyBufferFactory
();
45
~TPyBufferFactory
();
46
};
47
48
typedef
TPyBufferFactory
BufFac_t
;
49
50
}
// namespace PyROOT
51
52
53
#endif // !PYROOT_TPYBUFFERFACTORY_H
Float_t
float Float_t
Definition:
RtypesCore.h:53
PyROOT::TPyBufferFactory::~TPyBufferFactory
~TPyBufferFactory()
Definition:
TPyBufferFactory.cxx:305
UShort_t
unsigned short UShort_t
Definition:
RtypesCore.h:36
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
PyROOT::TPyBufferFactory::TPyBufferFactory
TPyBufferFactory()
Definition:
TPyBufferFactory.cxx:287
PyROOT::BufFac_t
TPyBufferFactory BufFac_t
Definition:
TPyBufferFactory.h:48
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
Short_t
short Short_t
Definition:
RtypesCore.h:35
PyROOT::TPyBufferFactory::PyBuffer_FromMemory
PyObject * PyBuffer_FromMemory(Bool_t *buf, Py_ssize_t size=-1)
Long_t
long Long_t
Definition:
RtypesCore.h:50
Double_t
double Double_t
Definition:
RtypesCore.h:55
ULong_t
unsigned long ULong_t
Definition:
RtypesCore.h:51
PyROOT::TPyBufferFactory
Factory for python buffers of non-string type.
Definition:
TPyBufferFactory.h:16
PyROOT
Definition:
TPyException.h:40
Char_t
char Char_t
Definition:
RtypesCore.h:29
Py_ssize_t
int Py_ssize_t
Definition:
PyROOT.h:156
PyROOT::TPyBufferFactory::Instance
static TPyBufferFactory * Instance()
Definition:
TPyBufferFactory.cxx:259
UChar_t
unsigned char UChar_t
Definition:
RtypesCore.h:34
PyObject
_object PyObject
Definition:
TPyArg.h:20