| 1 | // Generated by using Rcpp::compileAttributes() -> do not edit by hand |
| 2 | // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
| 3 | |
| 4 | #include <Rcpp.h> |
| 5 | |
| 6 | using namespace Rcpp; |
| 7 | |
| 8 | #ifdef RCPP_USE_GLOBAL_ROSTREAM |
| 9 | Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); |
| 10 | Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
| 11 | #endif |
| 12 | |
| 13 | // testCallbackOrdering |
| 14 | void testCallbackOrdering(); |
| 15 | RcppExport SEXP _later_testCallbackOrdering() { |
| 16 | BEGIN_RCPP |
| 17 | testCallbackOrdering(); |
| 18 | return R_NilValue; |
| 19 | END_RCPP |
| 20 | } |
| 21 | // log_level |
| 22 | std::string log_level(std::string level); |
| 23 | RcppExport SEXP _later_log_level(SEXP levelSEXP) { |
| 24 | BEGIN_RCPP |
| 25 | Rcpp::RObject rcpp_result_gen; |
| 26 | Rcpp::traits::input_parameter< std::string >::type level(levelSEXP); |
| 27 | rcpp_result_gen = Rcpp::wrap(log_level(level)); |
| 28 | return rcpp_result_gen; |
| 29 | END_RCPP |
| 30 | } |
| 31 | // using_ubsan |
| 32 | bool using_ubsan(); |
| 33 | RcppExport SEXP _later_using_ubsan() { |
| 34 | BEGIN_RCPP |
| 35 | Rcpp::RObject rcpp_result_gen; |
| 36 | rcpp_result_gen = Rcpp::wrap(using_ubsan()); |
| 37 | return rcpp_result_gen; |
| 38 | END_RCPP |
| 39 | } |
| 40 | // execLater_fd |
| 41 | Rcpp::RObject execLater_fd(Rcpp::Function callback, Rcpp::IntegerVector readfds, Rcpp::IntegerVector writefds, Rcpp::IntegerVector exceptfds, Rcpp::NumericVector timeoutSecs, Rcpp::IntegerVector loop_id); |
| 42 | RcppExport SEXP _later_execLater_fd(SEXP callbackSEXP, SEXP readfdsSEXP, SEXP writefdsSEXP, SEXP exceptfdsSEXP, SEXP timeoutSecsSEXP, SEXP loop_idSEXP) { |
| 43 | BEGIN_RCPP |
| 44 | Rcpp::RObject rcpp_result_gen; |
| 45 | Rcpp::traits::input_parameter< Rcpp::Function >::type callback(callbackSEXP); |
| 46 | Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type readfds(readfdsSEXP); |
| 47 | Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type writefds(writefdsSEXP); |
| 48 | Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type exceptfds(exceptfdsSEXP); |
| 49 | Rcpp::traits::input_parameter< Rcpp::NumericVector >::type timeoutSecs(timeoutSecsSEXP); |
| 50 | Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type loop_id(loop_idSEXP); |
| 51 | rcpp_result_gen = Rcpp::wrap(execLater_fd(callback, readfds, writefds, exceptfds, timeoutSecs, loop_id)); |
| 52 | return rcpp_result_gen; |
| 53 | END_RCPP |
| 54 | } |
| 55 | // fd_cancel |
| 56 | Rcpp::LogicalVector fd_cancel(Rcpp::RObject xptr); |
| 57 | RcppExport SEXP _later_fd_cancel(SEXP xptrSEXP) { |
| 58 | BEGIN_RCPP |
| 59 | Rcpp::RObject rcpp_result_gen; |
| 60 | Rcpp::traits::input_parameter< Rcpp::RObject >::type xptr(xptrSEXP); |
| 61 | rcpp_result_gen = Rcpp::wrap(fd_cancel(xptr)); |
| 62 | return rcpp_result_gen; |
| 63 | END_RCPP |
| 64 | } |
| 65 | // setCurrentRegistryId |
| 66 | void setCurrentRegistryId(int id); |
| 67 | RcppExport SEXP _later_setCurrentRegistryId(SEXP idSEXP) { |
| 68 | BEGIN_RCPP |
| 69 | Rcpp::traits::input_parameter< int >::type id(idSEXP); |
| 70 | setCurrentRegistryId(id); |
| 71 | return R_NilValue; |
| 72 | END_RCPP |
| 73 | } |
| 74 | // getCurrentRegistryId |
| 75 | int getCurrentRegistryId(); |
| 76 | RcppExport SEXP _later_getCurrentRegistryId() { |
| 77 | BEGIN_RCPP |
| 78 | Rcpp::RObject rcpp_result_gen; |
| 79 | rcpp_result_gen = Rcpp::wrap(getCurrentRegistryId()); |
| 80 | return rcpp_result_gen; |
| 81 | END_RCPP |
| 82 | } |
| 83 | // deleteCallbackRegistry |
| 84 | bool deleteCallbackRegistry(int loop_id); |
| 85 | RcppExport SEXP _later_deleteCallbackRegistry(SEXP loop_idSEXP) { |
| 86 | BEGIN_RCPP |
| 87 | Rcpp::RObject rcpp_result_gen; |
| 88 | Rcpp::traits::input_parameter< int >::type loop_id(loop_idSEXP); |
| 89 | rcpp_result_gen = Rcpp::wrap(deleteCallbackRegistry(loop_id)); |
| 90 | return rcpp_result_gen; |
| 91 | END_RCPP |
| 92 | } |
| 93 | // notifyRRefDeleted |
| 94 | bool notifyRRefDeleted(int loop_id); |
| 95 | RcppExport SEXP _later_notifyRRefDeleted(SEXP loop_idSEXP) { |
| 96 | BEGIN_RCPP |
| 97 | Rcpp::RObject rcpp_result_gen; |
| 98 | Rcpp::traits::input_parameter< int >::type loop_id(loop_idSEXP); |
| 99 | rcpp_result_gen = Rcpp::wrap(notifyRRefDeleted(loop_id)); |
| 100 | return rcpp_result_gen; |
| 101 | END_RCPP |
| 102 | } |
| 103 | // createCallbackRegistry |
| 104 | void createCallbackRegistry(int id, int parent_id); |
| 105 | RcppExport SEXP _later_createCallbackRegistry(SEXP idSEXP, SEXP parent_idSEXP) { |
| 106 | BEGIN_RCPP |
| 107 | Rcpp::traits::input_parameter< int >::type id(idSEXP); |
| 108 | Rcpp::traits::input_parameter< int >::type parent_id(parent_idSEXP); |
| 109 | createCallbackRegistry(id, parent_id); |
| 110 | return R_NilValue; |
| 111 | END_RCPP |
| 112 | } |
| 113 | // existsCallbackRegistry |
| 114 | bool existsCallbackRegistry(int id); |
| 115 | RcppExport SEXP _later_existsCallbackRegistry(SEXP idSEXP) { |
| 116 | BEGIN_RCPP |
| 117 | Rcpp::RObject rcpp_result_gen; |
| 118 | Rcpp::traits::input_parameter< int >::type id(idSEXP); |
| 119 | rcpp_result_gen = Rcpp::wrap(existsCallbackRegistry(id)); |
| 120 | return rcpp_result_gen; |
| 121 | END_RCPP |
| 122 | } |
| 123 | // list_queue_ |
| 124 | Rcpp::List list_queue_(int id); |
| 125 | RcppExport SEXP _later_list_queue_(SEXP idSEXP) { |
| 126 | BEGIN_RCPP |
| 127 | Rcpp::RObject rcpp_result_gen; |
| 128 | Rcpp::traits::input_parameter< int >::type id(idSEXP); |
| 129 | rcpp_result_gen = Rcpp::wrap(list_queue_(id)); |
| 130 | return rcpp_result_gen; |
| 131 | END_RCPP |
| 132 | } |
| 133 | // execCallbacks |
| 134 | bool execCallbacks(double timeoutSecs, bool runAll, int loop_id); |
| 135 | RcppExport SEXP _later_execCallbacks(SEXP timeoutSecsSEXP, SEXP runAllSEXP, SEXP loop_idSEXP) { |
| 136 | BEGIN_RCPP |
| 137 | Rcpp::RObject rcpp_result_gen; |
| 138 | Rcpp::traits::input_parameter< double >::type timeoutSecs(timeoutSecsSEXP); |
| 139 | Rcpp::traits::input_parameter< bool >::type runAll(runAllSEXP); |
| 140 | Rcpp::traits::input_parameter< int >::type loop_id(loop_idSEXP); |
| 141 | rcpp_result_gen = Rcpp::wrap(execCallbacks(timeoutSecs, runAll, loop_id)); |
| 142 | return rcpp_result_gen; |
| 143 | END_RCPP |
| 144 | } |
| 145 | // idle |
| 146 | bool idle(int loop_id); |
| 147 | RcppExport SEXP _later_idle(SEXP loop_idSEXP) { |
| 148 | BEGIN_RCPP |
| 149 | Rcpp::RObject rcpp_result_gen; |
| 150 | Rcpp::traits::input_parameter< int >::type loop_id(loop_idSEXP); |
| 151 | rcpp_result_gen = Rcpp::wrap(idle(loop_id)); |
| 152 | return rcpp_result_gen; |
| 153 | END_RCPP |
| 154 | } |
| 155 | // ensureInitialized |
| 156 | void ensureInitialized(); |
| 157 | RcppExport SEXP _later_ensureInitialized() { |
| 158 | BEGIN_RCPP |
| 159 | ensureInitialized(); |
| 160 | return R_NilValue; |
| 161 | END_RCPP |
| 162 | } |
| 163 | // execLater |
| 164 | std::string execLater(Rcpp::Function callback, double delaySecs, int loop_id); |
| 165 | RcppExport SEXP _later_execLater(SEXP callbackSEXP, SEXP delaySecsSEXP, SEXP loop_idSEXP) { |
| 166 | BEGIN_RCPP |
| 167 | Rcpp::RObject rcpp_result_gen; |
| 168 | Rcpp::traits::input_parameter< Rcpp::Function >::type callback(callbackSEXP); |
| 169 | Rcpp::traits::input_parameter< double >::type delaySecs(delaySecsSEXP); |
| 170 | Rcpp::traits::input_parameter< int >::type loop_id(loop_idSEXP); |
| 171 | rcpp_result_gen = Rcpp::wrap(execLater(callback, delaySecs, loop_id)); |
| 172 | return rcpp_result_gen; |
| 173 | END_RCPP |
| 174 | } |
| 175 | // cancel |
| 176 | bool cancel(std::string callback_id_s, int loop_id); |
| 177 | RcppExport SEXP _later_cancel(SEXP callback_id_sSEXP, SEXP loop_idSEXP) { |
| 178 | BEGIN_RCPP |
| 179 | Rcpp::RObject rcpp_result_gen; |
| 180 | Rcpp::traits::input_parameter< std::string >::type callback_id_s(callback_id_sSEXP); |
| 181 | Rcpp::traits::input_parameter< int >::type loop_id(loop_idSEXP); |
| 182 | rcpp_result_gen = Rcpp::wrap(cancel(callback_id_s, loop_id)); |
| 183 | return rcpp_result_gen; |
| 184 | END_RCPP |
| 185 | } |
| 186 | // nextOpSecs |
| 187 | double nextOpSecs(int loop_id); |
| 188 | RcppExport SEXP _later_nextOpSecs(SEXP loop_idSEXP) { |
| 189 | BEGIN_RCPP |
| 190 | Rcpp::RObject rcpp_result_gen; |
| 191 | Rcpp::traits::input_parameter< int >::type loop_id(loop_idSEXP); |
| 192 | rcpp_result_gen = Rcpp::wrap(nextOpSecs(loop_id)); |
| 193 | return rcpp_result_gen; |
| 194 | END_RCPP |
| 195 | } |