ROOT
master
Reference Guide
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 master - Reference Guide Generated on Mon Nov 4 2024 09:34:26 (GVA Time) using Doxygen 1.9.8