Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T > Class Template Reference

#include <plus.h>

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

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
typedef traits::storage_type< RTYPE >::type STORAGE
typedef Rcpp::traits::Extractor< RTYPE, NA, T >::type EXT
Public Types inherited from Rcpp::VectorBase< RTYPE, true, Plus_Vector_Primitive< RTYPE, NA, T > >
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

 Plus_Vector_Primitive (const VEC_TYPE &lhs_, STORAGE rhs_)
STORAGE operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE, true, Plus_Vector_Primitive< RTYPE, NA, T > >
Plus_Vector_Primitive< RTYPE, NA, T > & 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 EXTlhs
STORAGE rhs
bool rhs_na

Detailed Description

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

Definition at line 249 of file plus.h.

Member Typedef Documentation

◆ EXT

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

Definition at line 254 of file plus.h.

◆ STORAGE

template<int RTYPE, bool NA, typename T>
typedef traits::storage_type<RTYPE>::type Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::STORAGE

Definition at line 253 of file plus.h.

◆ VEC_TYPE

template<int RTYPE, bool NA, typename T>
typedef Rcpp::VectorBase<RTYPE,NA,T> Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::VEC_TYPE

Definition at line 252 of file plus.h.

Constructor & Destructor Documentation

◆ Plus_Vector_Primitive()

template<int RTYPE, bool NA, typename T>
Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::Plus_Vector_Primitive ( const VEC_TYPE & lhs_,
STORAGE rhs_ )
inline

Definition at line 256 of file plus.h.

References Rcpp::VectorBase< RTYPE, true, Plus_Vector_Primitive< RTYPE, NA, T > >::get_ref(), Rcpp::is_na(), lhs, rhs, and rhs_na.

Here is the call graph for this function:

Member Function Documentation

◆ operator[]()

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

Definition at line 260 of file plus.h.

References Rcpp::traits::is_na(), lhs, RCPP_SAFE_ADD, rhs, and rhs_na.

Here is the call graph for this function:

◆ size()

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

Definition at line 266 of file plus.h.

References lhs.

Member Data Documentation

◆ lhs

template<int RTYPE, bool NA, typename T>
const EXT& Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::lhs
private

Definition at line 269 of file plus.h.

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

◆ rhs

template<int RTYPE, bool NA, typename T>
STORAGE Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::rhs
private

Definition at line 270 of file plus.h.

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

◆ rhs_na

template<int RTYPE, bool NA, typename T>
bool Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::rhs_na
private

Definition at line 271 of file plus.h.

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


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