Rcpp Version 0.12.12
Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION > Class Template Reference

#include <sapply.h>

Inheritance diagram for Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >:
Collaboration diagram for Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >:

Public Types

typedef ::Rcpp::sugar::sapply_application_result_of< Function, T >::type result_type
 
typedef Rcpp::VectorBase< RTYPE, NA, T > VEC
 
typedef Rcpp::traits::r_vector_element_converter< RESULT_R_TYPE >::type converter_type
 
typedef Rcpp::traits::storage_type< RESULT_R_TYPE >::type STORAGE
 
typedef Rcpp::traits::Extractor< RTYPE, NA, T >::type EXT
 
- Public Types inherited from Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< ::Rcpp::sugar::sapply_application_result_of< Function, T >::type >::rtype, true, Sapply< RTYPE, NA, T, Function, NO_CONVERSION > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iterator const_iterator
 

Public Member Functions

 Sapply (const VEC &vec_, Function fun_)
 
STORAGE operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< ::Rcpp::sugar::sapply_application_result_of< Function, T >::type >::rtype, true, Sapply< RTYPE, NA, T, Function, NO_CONVERSION > >
Sapply< RTYPE, NA, T, Function, NO_CONVERSION > & get_ref ()
 
const Sapply< RTYPE, NA, T, Function, NO_CONVERSION > & get_ref () const
 
stored_type operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
iterator begin () const
 
iterator end () const
 

Static Public Attributes

static const int RESULT_R_TYPE
 

Private Attributes

const EXTvec
 
Function fun
 

Detailed Description

template<int RTYPE, bool NA, typename T, typename Function, bool NO_CONVERSION>
class Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >

Definition at line 46 of file sapply.h.

Member Typedef Documentation

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
typedef Rcpp::traits::r_vector_element_converter<RESULT_R_TYPE>::type Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::converter_type

Definition at line 59 of file sapply.h.

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
typedef Rcpp::traits::Extractor< RTYPE, NA, T>::type Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::EXT

Definition at line 62 of file sapply.h.

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
typedef ::Rcpp::sugar::sapply_application_result_of<Function, T>::type Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::result_type

Definition at line 54 of file sapply.h.

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
typedef Rcpp::traits::storage_type<RESULT_R_TYPE>::type Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::STORAGE

Definition at line 60 of file sapply.h.

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
typedef Rcpp::VectorBase<RTYPE,NA,T> Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::VEC

Definition at line 58 of file sapply.h.

Constructor & Destructor Documentation

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::Sapply ( const VEC vec_,
Function  fun_ 
)
inline

Definition at line 64 of file sapply.h.

References DEMANGLE, and RCPP_DEBUG_1.

Member Function Documentation

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
STORAGE Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::operator[] ( R_xlen_t  i) const
inline

Definition at line 69 of file sapply.h.

References Rcpp::get().

Here is the call graph for this function:

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
R_xlen_t Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::size ( ) const
inline

Definition at line 73 of file sapply.h.

Member Data Documentation

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
Function Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::fun
private

Definition at line 77 of file sapply.h.

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
const int Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::RESULT_R_TYPE
static
Initial value:

Definition at line 55 of file sapply.h.

template<int RTYPE, bool NA, typename T , typename Function , bool NO_CONVERSION>
const EXT& Rcpp::sugar::Sapply< RTYPE, NA, T, Function, NO_CONVERSION >::vec
private

Definition at line 76 of file sapply.h.


The documentation for this class was generated from the following file: