Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr > Class Template Reference

#include <complex.h>

Inheritance diagram for Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >:
Collaboration diagram for Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >:

Public Types

typedef Rcpp::VectorBase< CPLXSXP, NA, T > VEC_TYPE
Public Types inherited from Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< RESULT_TYPE >::rtype, NA, SugarComplex< NA, RESULT_TYPE, T, 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

 SugarComplex (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, SugarComplex< NA, RESULT_TYPE, T, FunPtr > >
SugarComplex< NA, RESULT_TYPE, T, FunPtr > & 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

FunPtr ptr
const VEC_TYPEvec

Detailed Description

template<bool NA, typename RESULT_TYPE, typename T, typename FunPtr>
class Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >

Definition at line 30 of file complex.h.

Member Typedef Documentation

◆ VEC_TYPE

template<bool NA, typename RESULT_TYPE, typename T, typename FunPtr>
typedef Rcpp::VectorBase<CPLXSXP,NA,T> Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >::VEC_TYPE

Definition at line 37 of file complex.h.

Constructor & Destructor Documentation

◆ SugarComplex()

template<bool NA, typename RESULT_TYPE, typename T, typename FunPtr>
Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >::SugarComplex ( FunPtr ptr_,
const VEC_TYPE & vec_ )
inline

Definition at line 39 of file complex.h.

References ptr, and vec.

Member Function Documentation

◆ operator[]()

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

Definition at line 41 of file complex.h.

References Rcpp::traits::get_na(), Rcpp::traits::is_na(), ptr, and vec.

Here is the call graph for this function:

◆ size()

template<bool NA, typename RESULT_TYPE, typename T, typename FunPtr>
R_xlen_t Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >::size ( ) const
inline

Definition at line 47 of file complex.h.

References vec.

Member Data Documentation

◆ ptr

template<bool NA, typename RESULT_TYPE, typename T, typename FunPtr>
FunPtr Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >::ptr
private

Definition at line 50 of file complex.h.

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

◆ vec

template<bool NA, typename RESULT_TYPE, typename T, typename FunPtr>
const VEC_TYPE& Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >::vec
private

Definition at line 51 of file complex.h.

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


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