Rcpp Version 0.12.12
barrier.cpp File Reference
#include <Rinternals.h>
#include <Rcpp/barrier.h>
#include "internal.h"
#include <algorithm>
#include <Rcpp/protection/Shield.h>
Include dependency graph for barrier.cpp:

Go to the source code of this file.

Namespaces

 Rcpp
 Rcpp API.
 
 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 Rcpp::Rcpp_eval (SEXP expr, SEXP env)
 
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)
 
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
 

Macro Definition Documentation

#define COMPILING_RCPP

Definition at line 22 of file barrier.cpp.

#define RCPP_CACHE_SIZE   5

Definition at line 87 of file barrier.cpp.

Referenced by init_Rcpp_cache().

#define RCPP_HASH_CACHE_INDEX   4

Definition at line 86 of file barrier.cpp.

Referenced by get_cache(), and init_Rcpp_cache().

#define RCPP_HASH_CACHE_INITIAL_SIZE   1024

Definition at line 90 of file barrier.cpp.

Referenced by init_Rcpp_cache().

#define USE_RINTERNALS

Definition at line 24 of file barrier.cpp.

Function Documentation

const char* char_get_string_elt ( SEXP  x,
R_xlen_t  i 
)
inline

Definition at line 39 of file barrier.cpp.

Referenced by registerFunctions().

const char* char_nocheck ( SEXP  x)
inline

Definition at line 79 of file barrier.cpp.

Referenced by registerFunctions(), and Rcpp::String::setBuffer().

void char_set_string_elt ( SEXP  x,
R_xlen_t  i,
const char *  value 
)
inline

Definition at line 49 of file barrier.cpp.

Referenced by registerFunctions().

void* dataptr ( SEXP  x)
inline

Definition at line 74 of file barrier.cpp.

Referenced by registerFunctions().

int error_occured ( )

Definition at line 174 of file barrier.cpp.

References get_rcpp_cache().

Here is the call graph for this function:

int* get_cache ( int  m)

Definition at line 198 of file barrier.cpp.

References get_rcpp_cache(), and RCPP_HASH_CACHE_INDEX.

Here is the call graph for this function:

SEXP get_rcpp_cache ( )
SEXP get_string_elt ( SEXP  x,
R_xlen_t  i 
)
inline

Definition at line 34 of file barrier.cpp.

Referenced by registerFunctions().

SEXP* get_string_ptr ( SEXP  x)
inline

Definition at line 54 of file barrier.cpp.

Referenced by Rcpp::sugar::get_const_begin(), and registerFunctions().

SEXP get_vector_elt ( SEXP  x,
R_xlen_t  i 
)
inline

Definition at line 59 of file barrier.cpp.

Referenced by registerFunctions().

SEXP* get_vector_ptr ( SEXP  x)
inline

Definition at line 69 of file barrier.cpp.

Referenced by registerFunctions().

SEXP init_Rcpp_cache ( )

Definition at line 138 of file barrier.cpp.

References RCPP_CACHE_SIZE, Rcpp::Rcpp_eval(), RCPP_HASH_CACHE_INDEX, RCPP_HASH_CACHE_INITIAL_SIZE, set_current_error(), and set_error_occured().

Referenced by R_init_Rcpp().

Here is the call graph for this function:

SEXP rcpp_error_recorder ( SEXP  e)

Definition at line 180 of file barrier.cpp.

References get_rcpp_cache(), set_current_error(), and set_error_occured().

Here is the call graph for this function:

SEXP rcpp_get_current_error ( )

Definition at line 193 of file barrier.cpp.

References get_rcpp_cache().

Here is the call graph for this function:

SEXP rcpp_get_stack_trace ( )

Definition at line 118 of file barrier.cpp.

References get_rcpp_cache().

Here is the call graph for this function:

SEXP rcpp_set_stack_trace ( SEXP  e)

Definition at line 123 of file barrier.cpp.

References get_rcpp_cache().

Here is the call graph for this function:

SEXP reset_current_error ( )

Definition at line 158 of file barrier.cpp.

References get_rcpp_cache(), set_current_error(), and set_error_occured().

Here is the call graph for this function:

SEXP set_current_error ( SEXP  cache,
SEXP  e 
)

Definition at line 133 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 128 of file barrier.cpp.

Referenced by init_Rcpp_cache(), rcpp_error_recorder(), and reset_current_error().

void set_string_elt ( SEXP  x,
R_xlen_t  i,
SEXP  value 
)
inline

Definition at line 44 of file barrier.cpp.

Referenced by registerFunctions().

void set_vector_elt ( SEXP  x,
R_xlen_t  i,
SEXP  value 
)
inline

Definition at line 64 of file barrier.cpp.

Referenced by registerFunctions().

Variable Documentation

SEXP Rcpp_cache = R_NilValue
static

Definition at line 84 of file barrier.cpp.

Referenced by get_rcpp_cache().

bool Rcpp_cache_know = false
static

Definition at line 83 of file barrier.cpp.

Referenced by get_rcpp_cache().