forked from kljohann/genpybind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.cpp
43 lines (33 loc) · 1.5 KB
/
parameters.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-FileCopyrightText: 2024 Johann Klähn <[email protected]>
//
// SPDX-License-Identifier: MIT
#include "parameters.h"
void parameter_names(bool, int, unsigned, double) {}
void missing_names(bool, bool, bool, bool) {}
int return_second(int, int second) { return second; }
Example::Example(bool, bool) {}
void Example::method(bool, bool) const {}
void TakesPointers::accepts_none(Example *) {}
void TakesPointers::required(Example *) {}
void TakesPointers::required_second(Example *, Example *) {}
void TakesPointers::required_both(Example *, Example *) {}
void accepts_none(Example *) {}
void required(Example *) {}
void required_second(Example *, Example *) {}
void required_both(Example *, Example *) {}
bool TakesDouble::overload_is_double(int) const { return false; }
bool TakesDouble::overload_is_double(double) const { return true; }
double TakesDouble::normal(double value) const { return value; }
double TakesDouble::noconvert(double value) const { return value; }
double TakesDouble::noconvert_second(double first, double second) const {
return first + second;
}
double TakesDouble::noconvert_both(double first, double second) const {
return first + second;
}
bool overload_is_double(int) { return false; }
bool overload_is_double(double) { return true; }
double normal(double value) { return value; }
double noconvert(double value) { return value; }
double noconvert_second(double first, double second) { return first + second; }
double noconvert_both(double first, double second) { return first + second; }