Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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  index_sequence
struct  make_index_sequence
struct  make_index_sequence< 0, Is... >
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< rcpp_long_long_type >
struct  is_arithmetic< const rcpp_long_long_type >
struct  is_arithmetic< rcpp_ulong_long_type >
struct  is_arithmetic< const rcpp_ulong_long_type >
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 >
struct  r_sexptype_traits< rcpp_long_long_type >
struct  r_sexptype_traits< rcpp_ulong_long_type >
struct  r_type_traits< rcpp_long_long_type >
struct  r_type_traits< std::pair< const std::string, rcpp_long_long_type > >
struct  r_type_traits< rcpp_ulong_long_type >
struct  r_type_traits< std::pair< const std::string, rcpp_ulong_long_type > >
struct  wrap_type_traits< rcpp_long_long_type >
struct  wrap_type_traits< rcpp_ulong_long_type >
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  is_any_named
struct  is_any_named< T >
struct  is_any_named< T, TArgs... >
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< T >
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()

◆ 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.

Referenced by Rcpp::sugar::All< NA, T >::apply(), Rcpp::sugar::And_SingleLogicalResult_SingleLogicalResult< LHS_NA, LHS_T, RHS_NA, RHS_T >::apply(), Rcpp::sugar::Any< NA, T >::apply(), Rcpp::sugar::not_< RTYPE, NA >::apply(), Rcpp::sugar::Or_SingleLogicalResult_SingleLogicalResult< LHS_NA, LHS_T, RHS_NA, RHS_T >::apply(), Rcpp::sugar::unary_minus< RTYPE, NA >::apply(), Rcpp::sugar::unary_minus< CPLXSXP, NA >::apply(), Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::Comparator_With_One_Value(), Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, false, T >::Comparator_With_One_Value(), Rcpp::sugar::ColMeansImpl< RTYPE, NA, T, true >::get(), Rcpp::sugar::ColSumsImpl< RTYPE, NA, T, true >::get(), Rcpp::sugar::Cummax< RTYPE, NA, T >::get(), Rcpp::sugar::Cummin< RTYPE, NA, T >::get(), Rcpp::sugar::Cumprod< RTYPE, NA, T >::get(), Rcpp::sugar::Cumsum< RTYPE, NA, T >::get(), Rcpp::sugar::RowMeansImpl< RTYPE, NA, T, true >::get(), Rcpp::sugar::RowSumsImpl< RTYPE, NA, T, true >::get(), Rcpp::sugar::sign__impl< NA, RTYPE >::get(), Rcpp::sugar::Sum< RTYPE, NA, T >::get(), Rcpp::sugar::WhichMax< RTYPE, NA, T >::get(), Rcpp::sugar::WhichMin< RTYPE, NA, T >::get(), Rcpp::Vector< VECSXP, StoragePolicy >::is_na(), Rcpp::sugar::Max< RTYPE, NA, T >::operator STORAGE(), Rcpp::sugar::Min< RTYPE, NA, T >::operator STORAGE(), Rcpp::sugar::Range< RTYPE, NA, T >::operator Vector< RTYPE >(), Rcpp::sugar::clamp_operator< REALSXP, true >::operator()(), Rcpp::sugar::pmax_op< REALSXP, true, true >::operator()(), Rcpp::sugar::pmax_op_Vector_Primitive< REALSXP, true >::operator()(), Rcpp::sugar::pmin_op< REALSXP, true, true >::operator()(), Rcpp::sugar::pmin_op_Vector_Primitive< REALSXP, true >::operator()(), Rcpp::Vector< VECSXP, StoragePolicy >::operator+=(), Rcpp::Vector< VECSXP, StoragePolicy >::operator+=(), Rcpp::sugar::Comparator< RTYPE, Operator, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Comparator< RTYPE, Operator, false, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Diff< RTYPE, LHS_NA, LHS_T >::operator[](), Rcpp::sugar::Divides_Primitive_Vector< RTYPE, NA, T >::operator[](), Rcpp::sugar::Divides_Vector_Primitive< RTYPE, NA, T >::operator[](), Rcpp::sugar::Divides_Vector_Primitive< RTYPE, false, T >::operator[](), Rcpp::sugar::Divides_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Divides_Vector_Vector< RTYPE, false, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Divides_Vector_Vector< RTYPE, LHS_NA, LHS_T, false, RHS_T >::operator[](), Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::operator[](), Rcpp::sugar::IfElse_Primitive_Vector< RTYPE, COND_NA, COND_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::IfElse_Vector_Primitive< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T >::operator[](), Rcpp::sugar::Minus_Vector_Primitive< RTYPE, NA, T >::operator[](), Rcpp::sugar::Minus_Vector_Primitive< RTYPE, false, T >::operator[](), Rcpp::sugar::Minus_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Minus_Vector_Vector< RTYPE, false, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Minus_Vector_Vector< RTYPE, LHS_NA, LHS_T, false, RHS_T >::operator[](), Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::operator[](), Rcpp::sugar::Plus_Vector_Primitive_nona< RTYPE, NA, T >::operator[](), Rcpp::sugar::Plus_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Plus_Vector_Vector< RTYPE, false, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Plus_Vector_Vector< RTYPE, LHS_NA, LHS_T, false, RHS_T >::operator[](), Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >::operator[](), Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, int, T1, FunPtr >::operator[](), Rcpp::sugar::Times_Vector_Primitive< RTYPE, NA, T >::operator[](), Rcpp::sugar::Times_Vector_Primitive_nona< RTYPE, NA, T >::operator[](), Rcpp::sugar::Times_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Times_Vector_Vector< RTYPE, false, LHS_T, RHS_NA, RHS_T >::operator[](), Rcpp::sugar::Times_Vector_Vector< RTYPE, LHS_NA, LHS_T, false, RHS_T >::operator[](), Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::rhs_is_not_na(), Rcpp::sugar::Diff< RTYPE, LHS_NA, LHS_T >::set_previous(), Rcpp::trimws(), Rcpp::trimws(), and Rcpp::trimws().

◆ is_na< CPLXSXP >()

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

◆ is_na< INTSXP >()

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

Definition at line 37 of file is_na.h.

Referenced by Rcpp::Na_Proxy::operator==, and Rcpp::Na_Proxy::operator==.

◆ is_na< LGLSXP >()

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

◆ is_na< REALSXP >()

◆ is_na< STRSXP >()

◆ 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.