forked from Ironholds/olctools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRcppExports.cpp
More file actions
118 lines (115 loc) · 3.92 KB
/
RcppExports.cpp
File metadata and controls
118 lines (115 loc) · 3.92 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// This file was generated by Rcpp::compileAttributes
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
// validate_olc
LogicalVector validate_olc(CharacterVector codes);
RcppExport SEXP olctools_validate_olc(SEXP codesSEXP) {
BEGIN_RCPP
SEXP __sexp_result;
{
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< CharacterVector >::type codes(codesSEXP );
LogicalVector __result = validate_olc(codes);
PROTECT(__sexp_result = Rcpp::wrap(__result));
}
UNPROTECT(1);
return __sexp_result;
END_RCPP
}
// validate_short
LogicalVector validate_short(CharacterVector codes);
RcppExport SEXP olctools_validate_short(SEXP codesSEXP) {
BEGIN_RCPP
SEXP __sexp_result;
{
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< CharacterVector >::type codes(codesSEXP );
LogicalVector __result = validate_short(codes);
PROTECT(__sexp_result = Rcpp::wrap(__result));
}
UNPROTECT(1);
return __sexp_result;
END_RCPP
}
// validate_full
LogicalVector validate_full(CharacterVector codes);
RcppExport SEXP olctools_validate_full(SEXP codesSEXP) {
BEGIN_RCPP
SEXP __sexp_result;
{
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< CharacterVector >::type codes(codesSEXP );
LogicalVector __result = validate_full(codes);
PROTECT(__sexp_result = Rcpp::wrap(__result));
}
UNPROTECT(1);
return __sexp_result;
END_RCPP
}
// encode_olc
CharacterVector encode_olc(NumericVector lats, NumericVector longs, IntegerVector length);
RcppExport SEXP olctools_encode_olc(SEXP latsSEXP, SEXP longsSEXP, SEXP lengthSEXP) {
BEGIN_RCPP
SEXP __sexp_result;
{
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< NumericVector >::type lats(latsSEXP );
Rcpp::traits::input_parameter< NumericVector >::type longs(longsSEXP );
Rcpp::traits::input_parameter< IntegerVector >::type length(lengthSEXP );
CharacterVector __result = encode_olc(lats, longs, length);
PROTECT(__sexp_result = Rcpp::wrap(__result));
}
UNPROTECT(1);
return __sexp_result;
END_RCPP
}
// decode_olc
DataFrame decode_olc(CharacterVector olcs);
RcppExport SEXP olctools_decode_olc(SEXP olcsSEXP) {
BEGIN_RCPP
SEXP __sexp_result;
{
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< CharacterVector >::type olcs(olcsSEXP );
DataFrame __result = decode_olc(olcs);
PROTECT(__sexp_result = Rcpp::wrap(__result));
}
UNPROTECT(1);
return __sexp_result;
END_RCPP
}
// shorten_olc
CharacterVector shorten_olc(CharacterVector olcs, NumericVector lats, NumericVector longs);
RcppExport SEXP olctools_shorten_olc(SEXP olcsSEXP, SEXP latsSEXP, SEXP longsSEXP) {
BEGIN_RCPP
SEXP __sexp_result;
{
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< CharacterVector >::type olcs(olcsSEXP );
Rcpp::traits::input_parameter< NumericVector >::type lats(latsSEXP );
Rcpp::traits::input_parameter< NumericVector >::type longs(longsSEXP );
CharacterVector __result = shorten_olc(olcs, lats, longs);
PROTECT(__sexp_result = Rcpp::wrap(__result));
}
UNPROTECT(1);
return __sexp_result;
END_RCPP
}
// recover_olc
CharacterVector recover_olc(CharacterVector olcs, NumericVector lats, NumericVector longs);
RcppExport SEXP olctools_recover_olc(SEXP olcsSEXP, SEXP latsSEXP, SEXP longsSEXP) {
BEGIN_RCPP
SEXP __sexp_result;
{
Rcpp::RNGScope __rngScope;
Rcpp::traits::input_parameter< CharacterVector >::type olcs(olcsSEXP );
Rcpp::traits::input_parameter< NumericVector >::type lats(latsSEXP );
Rcpp::traits::input_parameter< NumericVector >::type longs(longsSEXP );
CharacterVector __result = recover_olc(olcs, lats, longs);
PROTECT(__sexp_result = Rcpp::wrap(__result));
}
UNPROTECT(1);
return __sexp_result;
END_RCPP
}