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

#include <pow.h>

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

Public Types

typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
Public Types inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
typedef traits::storage_type< RTYPE >::type stored_type
typedef traits::storage_type< RTYPE >::type elem_type
typedef iter_base< iter_traitsiterator
typedef iter_base< const_iter_traitsconst_iterator

Public Member Functions

 Pow (const T &object_, EXPONENT_TYPE exponent)
double operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
VECTOR & get_ref ()
const VECTOR & 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

const T & object
EXPONENT_TYPE op

Detailed Description

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

Definition at line 29 of file pow.h.

Member Typedef Documentation

◆ STORAGE

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

Definition at line 31 of file pow.h.

Constructor & Destructor Documentation

◆ Pow()

template<int RTYPE, bool NA, typename T, typename EXPONENT_TYPE>
Rcpp::sugar::Pow< RTYPE, NA, T, EXPONENT_TYPE >::Pow ( const T & object_,
EXPONENT_TYPE exponent )
inline

Definition at line 33 of file pow.h.

References object, and op.

Member Function Documentation

◆ operator[]()

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

Definition at line 35 of file pow.h.

References op.

◆ size()

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

Definition at line 38 of file pow.h.

Member Data Documentation

◆ object

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

Definition at line 41 of file pow.h.

Referenced by Pow().

◆ op

template<int RTYPE, bool NA, typename T, typename EXPONENT_TYPE>
EXPONENT_TYPE Rcpp::sugar::Pow< RTYPE, NA, T, EXPONENT_TYPE >::op
private

Definition at line 42 of file pow.h.

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


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