|
Rcpp Version 1.1.2
|
#include <algorithm>#include <Rinternals.h>#include <Rcpp/barrier.h>#include <Rcpp/protection/Shield.h>#include <Rcpp/r/compat.h>#include "internal.h"
Go to the source code of this file.
Namespaces | |
| namespace | Rcpp |
| Rcpp API. | |
| namespace | Rcpp::internal |
| internal implementation details | |
Macros | |
| #define | COMPILING_RCPP |
| #define | USE_RINTERNALS |
| #define | RCPP_HASH_CACHE_INDEX 4 |
| #define | RCPP_CACHE_SIZE 5 |
| #define | RCPP_HASH_CACHE_INITIAL_SIZE 1024 |
Functions | |
| SEXP | get_string_elt (SEXP x, R_xlen_t i) |
| const char * | char_get_string_elt (SEXP x, R_xlen_t i) |
| void | set_string_elt (SEXP x, R_xlen_t i, SEXP value) |
| void | char_set_string_elt (SEXP x, R_xlen_t i, const char *value) |
| SEXP * | get_string_ptr (SEXP x) |
| SEXP | get_vector_elt (SEXP x, R_xlen_t i) |
| void | set_vector_elt (SEXP x, R_xlen_t i, SEXP value) |
| SEXP * | get_vector_ptr (SEXP x) |
| void * | dataptr (SEXP x) |
| const char * | char_nocheck (SEXP x) |
| attribute_hidden void | Rcpp::Rcpp_precious_init () |
| attribute_hidden void | Rcpp::Rcpp_precious_teardown () |
| attribute_hidden SEXP | Rcpp::Rcpp_precious_preserve (SEXP object) |
| attribute_hidden void | Rcpp::Rcpp_precious_remove (SEXP token) |
| SEXP | get_rcpp_cache () |
| attribute_hidden SEXP | Rcpp::internal::get_Rcpp_namespace () |
| SEXP | rcpp_get_stack_trace () |
| SEXP | rcpp_set_stack_trace (SEXP e) |
| SEXP | set_error_occured (SEXP cache, SEXP e) |
| SEXP | set_current_error (SEXP cache, SEXP e) |
| SEXP | init_Rcpp_cache () |
| SEXP | reset_current_error () |
| int | error_occured () |
| SEXP | rcpp_error_recorder (SEXP e) |
| SEXP | rcpp_get_current_error () |
| int * | get_cache (int m) |
Variables | |
| static bool | Rcpp_cache_know = false |
| static SEXP | Rcpp_cache = R_NilValue |
| static SEXP | Rcpp::Rcpp_precious = R_NilValue |
| #define COMPILING_RCPP |
Definition at line 22 of file barrier.cpp.
| #define RCPP_CACHE_SIZE 5 |
Definition at line 92 of file barrier.cpp.
Referenced by init_Rcpp_cache().
| #define RCPP_HASH_CACHE_INDEX 4 |
Definition at line 91 of file barrier.cpp.
Referenced by get_cache(), and init_Rcpp_cache().
| #define RCPP_HASH_CACHE_INITIAL_SIZE 1024 |
Definition at line 95 of file barrier.cpp.
Referenced by init_Rcpp_cache().
| #define USE_RINTERNALS |
Definition at line 24 of file barrier.cpp.
|
inline |
Definition at line 41 of file barrier.cpp.
References GET_CALLABLE.
Referenced by registerFunctions().
|
inline |
Definition at line 84 of file barrier.cpp.
References GET_CALLABLE.
Referenced by registerFunctions(), and Rcpp::String::setBuffer().
|
inline |
Definition at line 51 of file barrier.cpp.
References GET_CALLABLE.
Referenced by registerFunctions().
|
inline |
Definition at line 78 of file barrier.cpp.
References GET_CALLABLE.
Referenced by Rcpp::sugar::IndexHash< RTYPE >::IndexHash(), registerFunctions(), and Rcpp::sugar::SelfHash< RTYPE >::SelfHash().
| int error_occured | ( | ) |
Definition at line 224 of file barrier.cpp.
References get_rcpp_cache().

| int * get_cache | ( | int | m | ) |
Definition at line 248 of file barrier.cpp.
References get_rcpp_cache(), and RCPP_HASH_CACHE_INDEX.

| SEXP get_rcpp_cache | ( | ) |
Definition at line 140 of file barrier.cpp.
References Rcpp_cache, and Rcpp_cache_know.
Referenced by CALLFUN_0(), error_occured(), get_cache(), rcpp_error_recorder(), rcpp_get_current_error(), rcpp_get_stack_trace(), rcpp_set_stack_trace(), and reset_current_error().
|
inline |
Definition at line 36 of file barrier.cpp.
References GET_CALLABLE.
Referenced by registerFunctions().
|
inline |
Definition at line 56 of file barrier.cpp.
References GET_CALLABLE, and RCPP_STRING_PTR.
Referenced by Rcpp::sugar::get_const_begin(), and registerFunctions().
|
inline |
Definition at line 62 of file barrier.cpp.
References GET_CALLABLE.
Referenced by registerFunctions().
|
inline |
Definition at line 72 of file barrier.cpp.
References GET_CALLABLE, and RCPP_VECTOR_PTR.
Referenced by registerFunctions().
| SEXP init_Rcpp_cache | ( | ) |
Definition at line 188 of file barrier.cpp.
References RCPP_CACHE_SIZE, RCPP_HASH_CACHE_INDEX, RCPP_HASH_CACHE_INITIAL_SIZE, set_current_error(), and set_error_occured().
Referenced by CALLFUN_0(), and R_init_Rcpp().

| SEXP rcpp_error_recorder | ( | SEXP | e | ) |
Definition at line 230 of file barrier.cpp.
References get_rcpp_cache(), set_current_error(), and set_error_occured().
Referenced by CALLFUN_1().

| SEXP rcpp_get_current_error | ( | ) |
Definition at line 243 of file barrier.cpp.
References get_rcpp_cache().

| SEXP rcpp_get_stack_trace | ( | ) |
Definition at line 168 of file barrier.cpp.
References get_rcpp_cache().

| SEXP rcpp_set_stack_trace | ( | SEXP | e | ) |
Definition at line 173 of file barrier.cpp.
References get_rcpp_cache().

| SEXP reset_current_error | ( | ) |
Definition at line 208 of file barrier.cpp.
References get_rcpp_cache(), set_current_error(), and set_error_occured().

| SEXP set_current_error | ( | SEXP | cache, |
| SEXP | e ) |
Definition at line 183 of file barrier.cpp.
Referenced by init_Rcpp_cache(), rcpp_error_recorder(), and reset_current_error().
| SEXP set_error_occured | ( | SEXP | cache, |
| SEXP | e ) |
Definition at line 178 of file barrier.cpp.
Referenced by init_Rcpp_cache(), rcpp_error_recorder(), and reset_current_error().
|
inline |
Definition at line 46 of file barrier.cpp.
References GET_CALLABLE.
Referenced by registerFunctions().
|
inline |
Definition at line 67 of file barrier.cpp.
References GET_CALLABLE.
Referenced by registerFunctions().
|
static |
Definition at line 89 of file barrier.cpp.
Referenced by get_rcpp_cache().
|
static |
Definition at line 88 of file barrier.cpp.
Referenced by get_rcpp_cache().