Rcpp Version 1.0.9
Rcpp::sugar::Lapply< RTYPE, NA, T, Function > Class Template Reference

#include <lapply.h>

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

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC
 
typedef ::Rcpp::traits::result_of< Function >::type result_type
 
- Public Types inherited from Rcpp::VectorBase< VECSXP, true, Lapply< RTYPE, NA, T, Function > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iter_base< iter_traits > iterator
 
typedef iter_base< const_iter_traits > const_iterator
 

Public Member Functions

 Lapply (const VEC &vec_, Function fun_)
 
SEXP operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< VECSXP, true, Lapply< RTYPE, NA, T, Function > >
Lapply< RTYPE, NA, T, Function > & get_ref ()
 
const Lapply< RTYPE, NA, T, Function > & get_ref () const
 
stored_type operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 

Private Attributes

const VECvec
 
Function fun
 

Detailed Description

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

Definition at line 29 of file lapply.h.

Member Typedef Documentation

◆ result_type

template<int RTYPE, bool NA, typename T , typename Function >
typedef ::Rcpp::traits::result_of<Function>::type Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::result_type

Definition at line 36 of file lapply.h.

◆ VEC

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

Definition at line 35 of file lapply.h.

Constructor & Destructor Documentation

◆ Lapply()

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

Definition at line 38 of file lapply.h.

Member Function Documentation

◆ operator[]()

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

Definition at line 41 of file lapply.h.

References Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::fun, Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::vec, and Rcpp::wrap().

Here is the call graph for this function:

◆ size()

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

Definition at line 44 of file lapply.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::size(), and Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::vec.

Here is the call graph for this function:

Member Data Documentation

◆ fun

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

Definition at line 48 of file lapply.h.

Referenced by Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::operator[]().

◆ vec

template<int RTYPE, bool NA, typename T , typename Function >
const VEC& Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::vec
private

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