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

#include <sapply.h>

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

Public Types

typedef ::Rcpp::sugar::sapply_application_result_of< Function, T >::type result_type
 
typedef Rcpp::VectorBase< RTYPE, NA, T > VEC
 
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, true > >
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, true > >
Sapply< RTYPE, NA, T, Function, true > & get_ref ()
 
const Sapply< RTYPE, NA, T, Function, true > & 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>
class Rcpp::sugar::Sapply< RTYPE, NA, T, Function, true >

Definition at line 83 of file sapply.h.

Member Typedef Documentation

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

Definition at line 98 of file sapply.h.

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

Definition at line 91 of file sapply.h.

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

Definition at line 96 of file sapply.h.

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

Definition at line 95 of file sapply.h.

Constructor & Destructor Documentation

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

Definition at line 100 of file sapply.h.

References DEMANGLE, and RCPP_DEBUG_1.

Member Function Documentation

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

Definition at line 104 of file sapply.h.

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

Definition at line 107 of file sapply.h.

Member Data Documentation

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

Definition at line 111 of file sapply.h.

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

Definition at line 92 of file sapply.h.

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

Definition at line 110 of file sapply.h.


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