Rcpp Version 1.0.9
Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr > Class Template Reference

#include <SugarMath.h>

Inheritance diagram for Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >:
Collaboration diagram for Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >:

Public Types

typedef Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< RESULT_TYPE >::rtype,NA, T1 > VEC_TYPE
 
- Public Types inherited from Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< RESULT_TYPE >::rtype, NA, SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr > >
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

 SugarMath_1 (FunPtr ptr_, const VEC_TYPE &vec_)
 
RESULT_TYPE operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< RESULT_TYPE >::rtype, NA, SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr > >
SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr > & get_ref ()
 
const SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr > & 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

FunPtr ptr
 
const VEC_TYPEvec
 

Detailed Description

template<bool NA, typename RESULT_TYPE, typename U1, typename T1, typename FunPtr>
class Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >

Definition at line 29 of file SugarMath.h.

Member Typedef Documentation

◆ VEC_TYPE

template<bool NA, typename RESULT_TYPE , typename U1 , typename T1 , typename FunPtr >
typedef Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits<RESULT_TYPE>::rtype ,NA,T1> Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >::VEC_TYPE

Definition at line 36 of file SugarMath.h.

Constructor & Destructor Documentation

◆ SugarMath_1()

template<bool NA, typename RESULT_TYPE , typename U1 , typename T1 , typename FunPtr >
Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >::SugarMath_1 ( FunPtr  ptr_,
const VEC_TYPE vec_ 
)
inline

Definition at line 38 of file SugarMath.h.

Member Function Documentation

◆ operator[]()

template<bool NA, typename RESULT_TYPE , typename U1 , typename T1 , typename FunPtr >
RESULT_TYPE Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >::operator[] ( R_xlen_t  i) const
inline

◆ size()

template<bool NA, typename RESULT_TYPE , typename U1 , typename T1 , typename FunPtr >
R_xlen_t Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >::size ( ) const
inline

Definition at line 45 of file SugarMath.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::size(), and Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >::vec.

Here is the call graph for this function:

Member Data Documentation

◆ ptr

template<bool NA, typename RESULT_TYPE , typename U1 , typename T1 , typename FunPtr >
FunPtr Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >::ptr
private

◆ vec


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