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

#include <sum.h>

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

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
typedef Rcpp::traits::Extractor< RTYPE, NA, T >::type VEC_EXT

Public Member Functions

 Sum (const VEC_TYPE &object_)
STORAGE get () const
Public Member Functions inherited from Rcpp::sugar::Lazy< Rcpp::traits::storage_type< RTYPE >::type, Sum< RTYPE, NA, T > >
 operator Rcpp::traits::storage_type< RTYPE >::type () const

Private Attributes

const VEC_EXTobject

Detailed Description

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

Definition at line 30 of file sum.h.

Member Typedef Documentation

◆ STORAGE

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

Definition at line 33 of file sum.h.

◆ VEC_EXT

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

Definition at line 34 of file sum.h.

◆ VEC_TYPE

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

Definition at line 32 of file sum.h.

Constructor & Destructor Documentation

◆ Sum()

template<int RTYPE, bool NA, typename T>
Rcpp::sugar::Sum< RTYPE, NA, T >::Sum ( const VEC_TYPE & object_)
inline

Definition at line 36 of file sum.h.

References object.

Member Function Documentation

◆ get()

template<int RTYPE, bool NA, typename T>
STORAGE Rcpp::sugar::Sum< RTYPE, NA, T >::get ( ) const
inline

Definition at line 38 of file sum.h.

References Rcpp::traits::get_na(), Rcpp::traits::is_na(), and RCPP_SAFE_ADD.

Here is the call graph for this function:

Member Data Documentation

◆ object

template<int RTYPE, bool NA, typename T>
const VEC_EXT& Rcpp::sugar::Sum< RTYPE, NA, T >::object
private

Definition at line 51 of file sum.h.

Referenced by Sum().


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