@@ -18,6 +18,48 @@ extern "C" SEXP _cpp11test_data_frame_() {
18
18
return cpp11::as_sexp (data_frame_ ());
19
19
END_CPP11
20
20
}
21
+ // find-intervals.cpp
22
+ SEXP remove_altrep (SEXP x);
23
+ extern " C" SEXP _cpp11test_remove_altrep (SEXP x) {
24
+ BEGIN_CPP11
25
+ return cpp11::as_sexp (remove_altrep (cpp11::unmove (cpp11::as_cpp<SEXP>(x))));
26
+ END_CPP11
27
+ }
28
+ // find-intervals.cpp
29
+ double upper_bound (doubles x, doubles breaks);
30
+ extern " C" SEXP _cpp11test_upper_bound (SEXP x, SEXP breaks) {
31
+ BEGIN_CPP11
32
+ return cpp11::as_sexp (upper_bound (cpp11::unmove (cpp11::as_cpp<doubles>(x)), cpp11::unmove (cpp11::as_cpp<doubles>(breaks))));
33
+ END_CPP11
34
+ }
35
+ // find-intervals.cpp
36
+ integers findInterval2 (doubles x, doubles breaks);
37
+ extern " C" SEXP _cpp11test_findInterval2 (SEXP x, SEXP breaks) {
38
+ BEGIN_CPP11
39
+ return cpp11::as_sexp (findInterval2 (cpp11::unmove (cpp11::as_cpp<doubles>(x)), cpp11::unmove (cpp11::as_cpp<doubles>(breaks))));
40
+ END_CPP11
41
+ }
42
+ // find-intervals.cpp
43
+ integers findInterval2_5 (doubles x, doubles breaks);
44
+ extern " C" SEXP _cpp11test_findInterval2_5 (SEXP x, SEXP breaks) {
45
+ BEGIN_CPP11
46
+ return cpp11::as_sexp (findInterval2_5 (cpp11::unmove (cpp11::as_cpp<doubles>(x)), cpp11::unmove (cpp11::as_cpp<doubles>(breaks))));
47
+ END_CPP11
48
+ }
49
+ // find-intervals.cpp
50
+ integers findInterval3 (doubles x, doubles breaks);
51
+ extern " C" SEXP _cpp11test_findInterval3 (SEXP x, SEXP breaks) {
52
+ BEGIN_CPP11
53
+ return cpp11::as_sexp (findInterval3 (cpp11::unmove (cpp11::as_cpp<doubles>(x)), cpp11::unmove (cpp11::as_cpp<doubles>(breaks))));
54
+ END_CPP11
55
+ }
56
+ // find-intervals.cpp
57
+ IntegerVector findInterval4 (NumericVector x, NumericVector breaks);
58
+ extern " C" SEXP _cpp11test_findInterval4 (SEXP x, SEXP breaks) {
59
+ BEGIN_CPP11
60
+ return cpp11::as_sexp (findInterval4 (cpp11::unmove (cpp11::as_cpp<NumericVector>(x)), cpp11::unmove (cpp11::as_cpp<NumericVector>(breaks))));
61
+ END_CPP11
62
+ }
21
63
// grow.cpp
22
64
cpp11::writable::doubles grow_ (R_xlen_t n);
23
65
extern " C" SEXP _cpp11test_grow_ (SEXP n) {
@@ -175,6 +217,10 @@ extern SEXP _cpp11test_cpp11_insert_(SEXP);
175
217
extern SEXP _cpp11test_cpp11_release_ (SEXP);
176
218
extern SEXP _cpp11test_cpp11_safe_ (SEXP);
177
219
extern SEXP _cpp11test_data_frame_ ();
220
+ extern SEXP _cpp11test_findInterval2 (SEXP, SEXP);
221
+ extern SEXP _cpp11test_findInterval2_5 (SEXP, SEXP);
222
+ extern SEXP _cpp11test_findInterval3 (SEXP, SEXP);
223
+ extern SEXP _cpp11test_findInterval4 (SEXP, SEXP);
178
224
extern SEXP _cpp11test_gibbs_cpp (SEXP, SEXP);
179
225
extern SEXP _cpp11test_gibbs_cpp2 (SEXP, SEXP);
180
226
extern SEXP _cpp11test_gibbs_rcpp (SEXP, SEXP);
@@ -185,6 +231,7 @@ extern SEXP _cpp11test_rcpp_release_(SEXP);
185
231
extern SEXP _cpp11test_rcpp_sum_dbl_accumulate_ (SEXP);
186
232
extern SEXP _cpp11test_rcpp_sum_dbl_for_ (SEXP);
187
233
extern SEXP _cpp11test_rcpp_sum_dbl_foreach_ (SEXP);
234
+ extern SEXP _cpp11test_remove_altrep (SEXP);
188
235
extern SEXP _cpp11test_sum_dbl_accumulate_ (SEXP);
189
236
extern SEXP _cpp11test_sum_dbl_accumulate2_ (SEXP);
190
237
extern SEXP _cpp11test_sum_dbl_for_ (SEXP);
@@ -193,6 +240,7 @@ extern SEXP _cpp11test_sum_dbl_for3_(SEXP);
193
240
extern SEXP _cpp11test_sum_dbl_foreach_ (SEXP);
194
241
extern SEXP _cpp11test_sum_dbl_foreach2_ (SEXP);
195
242
extern SEXP _cpp11test_sum_int_for_ (SEXP);
243
+ extern SEXP _cpp11test_upper_bound (SEXP, SEXP);
196
244
extern SEXP run_testthat_tests (SEXP);
197
245
198
246
static const R_CallMethodDef CallEntries[] = {
@@ -201,6 +249,10 @@ static const R_CallMethodDef CallEntries[] = {
201
249
{" _cpp11test_cpp11_release_" , (DL_FUNC) &_cpp11test_cpp11_release_, 1 },
202
250
{" _cpp11test_cpp11_safe_" , (DL_FUNC) &_cpp11test_cpp11_safe_, 1 },
203
251
{" _cpp11test_data_frame_" , (DL_FUNC) &_cpp11test_data_frame_, 0 },
252
+ {" _cpp11test_findInterval2" , (DL_FUNC) &_cpp11test_findInterval2, 2 },
253
+ {" _cpp11test_findInterval2_5" , (DL_FUNC) &_cpp11test_findInterval2_5, 2 },
254
+ {" _cpp11test_findInterval3" , (DL_FUNC) &_cpp11test_findInterval3, 2 },
255
+ {" _cpp11test_findInterval4" , (DL_FUNC) &_cpp11test_findInterval4, 2 },
204
256
{" _cpp11test_gibbs_cpp" , (DL_FUNC) &_cpp11test_gibbs_cpp, 2 },
205
257
{" _cpp11test_gibbs_cpp2" , (DL_FUNC) &_cpp11test_gibbs_cpp2, 2 },
206
258
{" _cpp11test_gibbs_rcpp" , (DL_FUNC) &_cpp11test_gibbs_rcpp, 2 },
@@ -211,6 +263,7 @@ static const R_CallMethodDef CallEntries[] = {
211
263
{" _cpp11test_rcpp_sum_dbl_accumulate_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_accumulate_, 1 },
212
264
{" _cpp11test_rcpp_sum_dbl_for_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_for_, 1 },
213
265
{" _cpp11test_rcpp_sum_dbl_foreach_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_foreach_, 1 },
266
+ {" _cpp11test_remove_altrep" , (DL_FUNC) &_cpp11test_remove_altrep, 1 },
214
267
{" _cpp11test_sum_dbl_accumulate_" , (DL_FUNC) &_cpp11test_sum_dbl_accumulate_, 1 },
215
268
{" _cpp11test_sum_dbl_accumulate2_" , (DL_FUNC) &_cpp11test_sum_dbl_accumulate2_, 1 },
216
269
{" _cpp11test_sum_dbl_for_" , (DL_FUNC) &_cpp11test_sum_dbl_for_, 1 },
@@ -219,6 +272,7 @@ static const R_CallMethodDef CallEntries[] = {
219
272
{" _cpp11test_sum_dbl_foreach_" , (DL_FUNC) &_cpp11test_sum_dbl_foreach_, 1 },
220
273
{" _cpp11test_sum_dbl_foreach2_" , (DL_FUNC) &_cpp11test_sum_dbl_foreach2_, 1 },
221
274
{" _cpp11test_sum_int_for_" , (DL_FUNC) &_cpp11test_sum_int_for_, 1 },
275
+ {" _cpp11test_upper_bound" , (DL_FUNC) &_cpp11test_upper_bound, 2 },
222
276
{" run_testthat_tests" , (DL_FUNC) &run_testthat_tests, 1 },
223
277
{NULL , NULL , 0 }
224
278
};
0 commit comments