Rcpp Version 1.0.9
Rcpp::traits Namespace Reference

traits used to dispatch wrap More...

Classes

struct  wrap_type_traits< Rcpp::Date >
 
struct  r_type_traits< Rcpp::Date >
 
struct  r_type_traits< std::pair< const std::string, Rcpp::Date > >
 
struct  r_sexptype_traits< Rcpp::Date >
 
struct  wrap_type_traits< Rcpp::Datetime >
 
struct  r_type_traits< Rcpp::Datetime >
 
struct  r_type_traits< std::pair< const std::string, Rcpp::Datetime > >
 
struct  r_sexptype_traits< Rcpp::Datetime >
 
class  ContainerExporter
 
struct  container_exporter< Container, int >
 
struct  container_exporter< Container, double >
 
struct  Extractor
 
struct  input_parameter
 
struct  input_parameter< T & >
 
struct  input_parameter< const T >
 
struct  input_parameter< const T & >
 
struct  r_type_traits< Rcpp::String >
 
struct  r_sexptype_traits< Rcpp::String >
 
struct  char_type
 
struct  char_type< const wchar_t * >
 
struct  char_type< const char * >
 
struct  enable_if
 
struct  enable_if< true, T >
 
struct  expands_to_logical__impl
 
struct  expands_to_logical__impl< LGLSXP >
 
class  _has_rtype_helper
 
struct  expands_to_logical
 
struct  __sfinae_types
 
class  _has_iterator_helper
 
class  _is_importer_helper
 
class  _is_generator_helper
 
class  _is_exporter_helper
 
struct  has_iterator
 
struct  is_importer
 
struct  is_exporter
 
struct  is_generator
 
struct  has_na
 
struct  has_na< INTSXP >
 
struct  has_na< REALSXP >
 
struct  has_na< CPLXSXP >
 
struct  has_na< STRSXP >
 
struct  has_na< LGLSXP >
 
struct  if_
 
struct  if_< false, LHS, RHS >
 
struct  init_type
 
struct  init_type< STRSXP >
 
struct  init_type< LGLSXP >
 
struct  integral_constant
 
struct  both
 
struct  is_arithmetic
 
struct  is_arithmetic< short >
 
struct  is_arithmetic< const short >
 
struct  is_arithmetic< unsigned short >
 
struct  is_arithmetic< const unsigned short >
 
struct  is_arithmetic< int >
 
struct  is_arithmetic< const int >
 
struct  is_arithmetic< unsigned int >
 
struct  is_arithmetic< const unsigned int >
 
struct  is_arithmetic< long >
 
struct  is_arithmetic< const long >
 
struct  is_arithmetic< unsigned long >
 
struct  is_arithmetic< const unsigned long >
 
struct  is_arithmetic< float >
 
struct  is_arithmetic< const float >
 
struct  is_arithmetic< double >
 
struct  is_arithmetic< const double >
 
struct  is_arithmetic< long double >
 
struct  is_arithmetic< const long double >
 
struct  is_bool
 
struct  is_bool< bool >
 
struct  is_bool< const bool >
 
struct  is_bool< volatile bool >
 
struct  is_const
 type properties [4.5.3]. More...
 
struct  is_const< _Tp const >
 
class  is_convertible
 
class  _is_eigen_helper
 
struct  is_eigen_base
 
struct  is_module_object
 
struct  is_pointer
 
struct  is_pointer< T * >
 
struct  is_primitive
 
struct  is_reference
 
struct  is_reference< _Tp & >
 
class  _is_sugar_expression_helper
 
struct  is_sugar_expression
 
struct  is_trivial
 
struct  is_trivial< VECSXP >
 
struct  is_trivial< EXPRSXP >
 
struct  is_wide_string
 
struct  is_wide_string< const wchar_t * >
 
struct  is_wide_string< const char * >
 
struct  is_wide_string< wchar_t >
 
struct  is_wide_string< char >
 
class  _has_matrix_interface_helper
 
struct  matrix_interface
 
struct  normal_wrap_tag
 
struct  void_wrap_tag
 
struct  pointer_wrap_tag
 
struct  module_wrap_traits
 
struct  module_wrap_traits< void >
 
struct  module_wrap_traits< T * >
 
struct  needs_protection
 
struct  needs_protection< SEXP >
 
class  named_object
 
class  named_object< SEXP >
 
struct  is_named
 
struct  is_named< named_object< T > >
 
struct  is_named< Rcpp::Argument >
 
struct  num2type
 
struct  allowed_matrix_type
 
struct  allowed_matrix_type< true >
 
class  one_type
 
class  zero_type
 
struct  r_sexptype_traits
 
struct  r_sexptype_traits< int >
 
struct  r_sexptype_traits< const int >
 
struct  r_sexptype_traits< double >
 
struct  r_sexptype_traits< const double >
 
struct  r_sexptype_traits< bool >
 
struct  r_sexptype_traits< std::string >
 
struct  r_sexptype_traits< Rcomplex >
 
struct  r_sexptype_traits< Rbyte >
 
struct  r_sexptype_traits< unsigned int >
 
struct  r_sexptype_traits< float >
 
struct  r_sexptype_traits< long >
 
struct  r_sexptype_traits< unsigned long >
 
struct  r_sexptype_traits< long double >
 
struct  r_sexptype_traits< short >
 
struct  r_sexptype_traits< unsigned short >
 
struct  r_sexptype_traits< std::complex< double > >
 
struct  r_sexptype_traits< std::complex< float > >
 
struct  r_sexptype_needscast
 
struct  r_sexptype_needscast< int >
 
struct  r_sexptype_needscast< double >
 
struct  r_sexptype_needscast< Rcomplex >
 
struct  r_sexptype_needscast< Rbyte >
 
struct  r_type_primitive_tag
 
struct  r_type_string_tag
 
struct  r_type_generic_tag
 
struct  r_type_pairstring_primitive_tag
 
struct  r_type_pairstring_string_tag
 
struct  r_type_pairstring_generic_tag
 
struct  r_type_pair_tag
 
struct  r_type_module_object_pointer_tag
 
struct  r_type_module_object_const_pointer_tag
 
struct  r_type_module_object_tag
 
struct  r_type_module_object_reference_tag
 
struct  r_type_module_object_const_reference_tag
 
struct  r_type_enum_tag
 
struct  r_type_RcppString_tag
 
struct  r_type_traits
 
struct  r_type_traits< Rcpp::object< T > >
 
struct  r_type_traits< std::pair< const KEY, VALUE > >
 
struct  r_type_traits< std::pair< const std::string, T > >
 
struct  r_type_traits< std::pair< const std::string, int > >
 
struct  r_type_traits< std::pair< const std::string, const int > >
 
struct  r_type_traits< std::pair< const std::string, double > >
 
struct  r_type_traits< std::pair< const std::string, Rbyte > >
 
struct  r_type_traits< std::pair< const std::string, Rcomplex > >
 
struct  r_type_traits< std::pair< const std::string, bool > >
 
struct  r_type_traits< std::pair< const std::string, std::string > >
 
struct  r_type_traits< std::pair< const std::string, std::wstring > >
 
struct  r_type_traits< std::pair< const std::string, char > >
 
struct  r_type_traits< std::pair< const std::string, wchar_t > >
 
struct  r_type_traits< std::pair< const std::string, unsigned int > >
 
struct  r_type_traits< std::pair< const std::string, float > >
 
struct  r_type_traits< int >
 
struct  r_type_traits< const int >
 
struct  r_type_traits< double >
 
struct  r_type_traits< const double >
 
struct  r_type_traits< Rbyte >
 
struct  r_type_traits< Rcomplex >
 
struct  r_type_traits< bool >
 
struct  r_type_traits< std::string >
 
struct  r_type_traits< std::wstring >
 
struct  r_type_traits< char >
 
struct  r_type_traits< wchar_t >
 
struct  r_type_traits< unsigned int >
 
struct  r_type_traits< float >
 
struct  r_type_traits< const char * >
 
struct  r_type_traits< const wchar_t * >
 
struct  r_type_traits< long >
 
struct  r_type_traits< std::pair< const std::string, long > >
 
struct  r_type_traits< unsigned long >
 
struct  r_type_traits< std::pair< const std::string, unsigned long > >
 
struct  r_type_traits< long double >
 
struct  r_type_traits< std::pair< const std::string, long double > >
 
struct  r_type_traits< short >
 
struct  r_type_traits< std::pair< const std::string, short > >
 
struct  r_type_traits< unsigned short >
 
struct  r_type_traits< std::pair< const std::string, unsigned short > >
 
struct  r_type_traits< std::complex< double > >
 
struct  r_type_traits< std::pair< const std::string, std::complex< double > > >
 
struct  r_type_traits< std::complex< float > >
 
struct  r_type_traits< std::pair< const std::string, std::complex< float > > >
 
struct  remove_const
 const-volatile modifications [4.7.1]. More...
 
struct  remove_const< _Tp const >
 
struct  remove_const_and_reference
 
struct  remove_reference
 reference modifications [4.7.2]. More...
 
struct  remove_reference< _Tp & >
 
struct  result_of
 
struct  result_of< RESULT_TYPE(*)(INPUT_TYPE) >
 
struct  result_of< RESULT_TYPE(*)(U1, U2) >
 
struct  result_of< RESULT_TYPE(*)(U1, U2, U3) >
 
struct  same_type
 
struct  same_type< T, T >
 
struct  storage_type
 
struct  storage_type< INTSXP >
 
struct  storage_type< REALSXP >
 
struct  storage_type< CPLXSXP >
 
struct  storage_type< RAWSXP >
 
struct  storage_type< LGLSXP >
 
struct  identity
 
struct  int2type
 
struct  un_pointer
 
struct  un_pointer< T * >
 
struct  un_pointer< object< T > >
 
struct  wrap_type_primitive_tag
 
struct  wrap_type_unknown_tag
 
struct  wrap_type_module_object_pointer_tag
 
struct  wrap_type_module_object_tag
 
struct  wrap_type_enum_tag
 
struct  wrap_type_char_array
 
struct  wrap_type_traits
 
struct  wrap_type_traits< char[N]>
 
struct  wrap_type_traits< const char[N]>
 
struct  wrap_type_traits< int >
 
struct  wrap_type_traits< const int >
 
struct  wrap_type_traits< double >
 
struct  wrap_type_traits< Rbyte >
 
struct  wrap_type_traits< Rcomplex >
 
struct  wrap_type_traits< unsigned int >
 
struct  wrap_type_traits< bool >
 
struct  wrap_type_traits< std::string >
 
struct  wrap_type_traits< std::wstring >
 
struct  wrap_type_traits< Rcpp::String >
 
struct  wrap_type_traits< char >
 
struct  wrap_type_traits< wchar_t >
 
struct  wrap_type_traits< float >
 
struct  wrap_type_traits< std::complex< float > >
 
struct  wrap_type_traits< std::complex< double > >
 
struct  wrap_type_traits< long >
 
struct  wrap_type_traits< unsigned long >
 
struct  wrap_type_traits< long double >
 
struct  wrap_type_traits< short >
 
struct  wrap_type_traits< unsigned short >
 
struct  wrap_type_traits< Rcpp::object< T > >
 
struct  r_vector_cache_type
 
class  r_vector_cache
 
struct  r_vector_name_proxy
 
struct  r_vector_proxy
 
struct  r_vector_const_proxy
 
struct  r_vector_iterator
 
struct  r_vector_const_iterator
 
struct  r_vector_element_converter
 
struct  r_vector_element_converter< STRSXP >
 
struct  r_vector_element_converter< VECSXP >
 
struct  r_vector_element_converter< EXPRSXP >
 
struct  r_vector_name_proxy< STRSXP, StoragePolicy >
 
struct  r_vector_name_proxy< VECSXP, StoragePolicy >
 
struct  r_vector_name_proxy< EXPRSXP, StoragePolicy >
 
struct  r_vector_proxy< STRSXP, StoragePolicy >
 
struct  r_vector_proxy< EXPRSXP, StoragePolicy >
 
struct  r_vector_proxy< VECSXP, StoragePolicy >
 
struct  r_vector_const_proxy< STRSXP, StoragePolicy >
 
struct  r_vector_const_proxy< VECSXP, StoragePolicy >
 
struct  r_vector_const_proxy< EXPRSXP, StoragePolicy >
 
struct  proxy_based_iterator
 
struct  r_vector_iterator< VECSXP, StoragePolicy >
 
struct  r_vector_iterator< EXPRSXP, StoragePolicy >
 
struct  r_vector_iterator< STRSXP, StoragePolicy >
 
struct  proxy_based_const_iterator
 
struct  r_vector_const_iterator< VECSXP, StoragePolicy >
 
struct  r_vector_const_iterator< EXPRSXP, StoragePolicy >
 
struct  r_vector_const_iterator< STRSXP, StoragePolicy >
 
class  proxy_cache
 
struct  r_vector_cache_type< VECSXP, StoragePolicy >
 
struct  r_vector_cache_type< EXPRSXP, StoragePolicy >
 
struct  r_vector_cache_type< STRSXP, StoragePolicy >
 

Typedefs

typedef integral_constant< bool, true > true_type
 
typedef integral_constant< bool, false > false_type
 

Functions

template<int RTYPE>
storage_type< RTYPE >::type get_na ()
 
template<>
int get_na< INTSXP > ()
 
template<>
int get_na< LGLSXP > ()
 
template<>
double get_na< REALSXP > ()
 
template<>
Rcomplex get_na< CPLXSXP > ()
 
template<>
SEXP get_na< STRSXP > ()
 
template<>
SEXP get_na< VECSXP > ()
 
template<int RTYPE>
bool is_finite (typename storage_type< RTYPE >::type)
 
template<>
bool is_finite< INTSXP > (int x)
 
template<>
bool is_finite< REALSXP > (double x)
 
template<>
bool is_finite< CPLXSXP > (Rcomplex x)
 
template<>
bool is_finite< STRSXP > (SEXP)
 
template<>
bool is_finite< LGLSXP > (int x)
 
template<int RTYPE>
bool is_infinite (typename storage_type< RTYPE >::type)
 
template<>
bool is_infinite< REALSXP > (double x)
 
template<>
bool is_infinite< CPLXSXP > (Rcomplex x)
 
template<int RTYPE>
bool is_na (typename storage_type< RTYPE >::type)
 
template<>
bool is_na< INTSXP > (int x)
 
template<>
bool is_na< REALSXP > (double x)
 
template<>
bool is_na< CPLXSXP > (Rcomplex x)
 
template<>
bool is_na< STRSXP > (SEXP x)
 
template<>
bool is_na< LGLSXP > (int x)
 
template<int RTYPE>
bool is_nan (typename storage_type< RTYPE >::type)
 
template<>
bool is_nan< REALSXP > (double x)
 
template<>
bool is_nan< CPLXSXP > (Rcomplex x)
 

Detailed Description

traits used to dispatch wrap

Typedef Documentation

◆ false_type

Definition at line 35 of file integral_constant.h.

◆ true_type

Definition at line 34 of file integral_constant.h.

Function Documentation

◆ get_na()

template<int RTYPE>
storage_type<RTYPE>::type Rcpp::traits::get_na ( )

◆ get_na< CPLXSXP >()

template<>
Rcomplex Rcpp::traits::get_na< CPLXSXP > ( )
inline

Definition at line 42 of file get_na.h.

◆ get_na< INTSXP >()

template<>
int Rcpp::traits::get_na< INTSXP > ( )
inline

Definition at line 33 of file get_na.h.

◆ get_na< LGLSXP >()

template<>
int Rcpp::traits::get_na< LGLSXP > ( )
inline

Definition at line 36 of file get_na.h.

◆ get_na< REALSXP >()

template<>
double Rcpp::traits::get_na< REALSXP > ( )
inline

◆ get_na< STRSXP >()

◆ get_na< VECSXP >()

template<>
SEXP Rcpp::traits::get_na< VECSXP > ( )
inline

Definition at line 54 of file get_na.h.

◆ is_finite()

template<int RTYPE>
bool Rcpp::traits::is_finite ( typename storage_type< RTYPE >::type  )

◆ is_finite< CPLXSXP >()

template<>
bool Rcpp::traits::is_finite< CPLXSXP > ( Rcomplex  x)
inline

Definition at line 44 of file is_finite.h.

◆ is_finite< INTSXP >()

template<>
bool Rcpp::traits::is_finite< INTSXP > ( int  x)
inline

Definition at line 34 of file is_finite.h.

◆ is_finite< LGLSXP >()

template<>
bool Rcpp::traits::is_finite< LGLSXP > ( int  x)
inline

Definition at line 54 of file is_finite.h.

◆ is_finite< REALSXP >()

template<>
bool Rcpp::traits::is_finite< REALSXP > ( double  x)
inline

Definition at line 39 of file is_finite.h.

◆ is_finite< STRSXP >()

template<>
bool Rcpp::traits::is_finite< STRSXP > ( SEXP  )
inline

Definition at line 49 of file is_finite.h.

◆ is_infinite()

template<int RTYPE>
bool Rcpp::traits::is_infinite ( typename storage_type< RTYPE >::type  )

Definition at line 30 of file is_infinite.h.

◆ is_infinite< CPLXSXP >()

template<>
bool Rcpp::traits::is_infinite< CPLXSXP > ( Rcomplex  x)
inline

Definition at line 40 of file is_infinite.h.

References is_infinite< REALSXP >().

Here is the call graph for this function:

◆ is_infinite< REALSXP >()

template<>
bool Rcpp::traits::is_infinite< REALSXP > ( double  x)
inline

Definition at line 35 of file is_infinite.h.

Referenced by is_infinite< CPLXSXP >().

◆ is_na()

template<int RTYPE>
bool Rcpp::traits::is_na ( typename storage_type< RTYPE >::type  )

Definition at line 32 of file is_na.h.

◆ is_na< CPLXSXP >()

◆ is_na< INTSXP >()

template<>
bool Rcpp::traits::is_na< INTSXP > ( int  x)
inline

◆ is_na< LGLSXP >()

◆ is_na< REALSXP >()

◆ is_na< STRSXP >()

template<>
bool Rcpp::traits::is_na< STRSXP > ( SEXP  x)
inline

Definition at line 52 of file is_na.h.

Referenced by Rcpp::trimws().

◆ is_nan()

template<int RTYPE>
bool Rcpp::traits::is_nan ( typename storage_type< RTYPE >::type  )

Definition at line 30 of file is_nan.h.

◆ is_nan< CPLXSXP >()

template<>
bool Rcpp::traits::is_nan< CPLXSXP > ( Rcomplex  x)
inline

Definition at line 40 of file is_nan.h.

◆ is_nan< REALSXP >()

template<>
bool Rcpp::traits::is_nan< REALSXP > ( double  x)
inline

Definition at line 35 of file is_nan.h.