Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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, T >::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 ()
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 30 of file lapply.h.

Member Typedef Documentation

◆ result_type

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

Definition at line 37 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 36 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 39 of file lapply.h.

References fun, and vec.

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 42 of file lapply.h.

References fun, 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 45 of file lapply.h.

References vec.

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 49 of file lapply.h.

Referenced by Lapply(), and operator[]().

◆ vec

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

Definition at line 48 of file lapply.h.

Referenced by Lapply(), operator[](), and size().


The documentation for this class was generated from the following file:
  • inst/include/Rcpp/sugar/functions/lapply.h