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
▼
bench
►
functioncalls.cxx
►
functioncalls.h
►
functioncalls_main.cxx
►
py11_functioncalls.cxx
►
runvector.cxx
►
runvector.h
►
runvector_main.cxx
►
cppyy-backend
►
CPyCppyy
►
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
functioncalls.cxx
Go to the documentation of this file.
1
#include "
functioncalls.h
"
2
3
#include <exception>
4
#include <math.h>
5
6
7
//- group: empty -------------------------------------------------------------
8
void
empty_call
() {
9
/* empty, to measure pure call overhead */
10
}
11
12
void
EmptyCall::empty_call
() {
13
/* empty, to measure pure call overhead */
14
}
15
16
17
//- group: builtin-args-free -------------------------------------------------
18
void
take_an_int
(
int
/* unused */
) {
19
/* empty, to measure pure call overhead */
20
}
21
22
void
take_a_double
(
double
/* unused */
) {
23
/* empty, to measure pure call overhead */
24
}
25
26
void
take_a_struct
(
Value
/* unused */
) {
27
/* empty, to measure pure call overhead */
28
}
29
30
//- group: builtin-args-inst -------------------------------------------------
31
void
TakeAValue::take_an_int
(
int
/* unused */
) {
32
/* empty, to measure pure call overhead */
33
}
34
35
void
TakeAValue::take_a_double
(
double
/* unused */
) {
36
/* empty, to measure pure call overhead */
37
}
38
39
void
TakeAValue::take_a_struct
(
Value
/* unused */
) {
40
/* empty, to measure pure call overhead */
41
}
42
43
//- group: builtin-args-pass -------------------------------------------------
44
int
TakeAValue::pass_int
(
int
a
) {
45
return
a
+ 42;
46
}
47
48
49
//- group: do-work -----------------------------------------------------------
50
double
do_work
(
double
arg) {
51
return
atan(arg);
52
}
53
54
double
DoWork::do_work
(
double
arg) {
55
return
atan(arg);
56
}
57
58
59
//- group: overload-inst -----------------------------------------------------
60
double
OverloadedCall::add_it
(
int
a
,
int
b
) { std::terminate(); }
61
double
OverloadedCall::add_it
(
short
a
) { std::terminate(); }
62
double
OverloadedCall::add_it
(
long
a
) { std::terminate(); }
63
double
OverloadedCall::add_it
(
int
a
,
int
b
,
int
c
) { std::terminate(); }
64
double
OverloadedCall::add_it
(
double
a
) {
return
3.1415 +
a
; }
65
double
OverloadedCall::add_it
(
float
a
) {
return
3.1415 +
a
; }
66
double
OverloadedCall::add_it
(
int
a
) { std::terminate(); }
b
#define b(i)
Definition
RSha256.hxx:100
c
#define c(i)
Definition
RSha256.hxx:101
a
#define a(i)
Definition
RSha256.hxx:99
DoWork::do_work
double do_work(double)
Definition
functioncalls.cxx:54
EmptyCall::empty_call
void empty_call()
Definition
functioncalls.cxx:12
OverloadedCall::add_it
double add_it(int a, int b)
Definition
functioncalls.cxx:60
TakeAValue::take_a_struct
void take_a_struct(Value)
Definition
functioncalls.cxx:39
TakeAValue::take_a_double
void take_a_double(double)
Definition
functioncalls.cxx:35
TakeAValue::take_an_int
void take_an_int(int)
Definition
functioncalls.cxx:31
TakeAValue::pass_int
int pass_int(int)
Definition
functioncalls.cxx:44
do_work
double do_work(double arg)
Definition
functioncalls.cxx:50
take_a_double
void take_a_double(double)
Definition
functioncalls.cxx:22
take_a_struct
void take_a_struct(Value)
Definition
functioncalls.cxx:26
empty_call
void empty_call()
Definition
functioncalls.cxx:8
take_an_int
void take_an_int(int)
Definition
functioncalls.cxx:18
functioncalls.h
Value
Definition
functioncalls.h:15
bindings
pyroot
cppyy
cppyy
bench
functioncalls.cxx
ROOT v6-32 - Reference Guide Generated on Sun Feb 23 2025 04:51:54 (GVA Time) using Doxygen 1.10.0