Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T > Class Template Reference

#include <ifelse.h>

Inheritance diagram for Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >:
Collaboration diagram for Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >:

Public Types

typedef Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > COND_TYPE
typedef Rcpp::VectorBase< RTYPE,LHS_NA,LHS_T > LHS_TYPE
typedef Rcpp::VectorBase< RTYPE,RHS_NA,RHS_T > RHS_TYPE
typedef traits::storage_type< RTYPE >::type STORAGE
Public Types inherited from Rcpp::VectorBase< RTYPE,(COND_NA||LHS_NA||RHS_NA), IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_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

 IfElse (const COND_TYPE &cond_, const LHS_TYPE &lhs_, const RHS_TYPE &rhs_)
STORAGE operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE,(COND_NA||LHS_NA||RHS_NA), IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T > >
IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_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 COND_TYPEcond
const LHS_T & lhs
const RHS_T & rhs

Detailed Description

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
class Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >

Definition at line 34 of file ifelse.h.

Member Typedef Documentation

◆ COND_TYPE

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
typedef Rcpp::VectorBase<LGLSXP,COND_NA,COND_T> Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::COND_TYPE

Definition at line 40 of file ifelse.h.

◆ LHS_TYPE

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
typedef Rcpp::VectorBase<RTYPE ,LHS_NA ,LHS_T> Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::LHS_TYPE

Definition at line 41 of file ifelse.h.

◆ RHS_TYPE

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
typedef Rcpp::VectorBase<RTYPE ,RHS_NA ,RHS_T> Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::RHS_TYPE

Definition at line 42 of file ifelse.h.

◆ STORAGE

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
typedef traits::storage_type<RTYPE>::type Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::STORAGE

Definition at line 43 of file ifelse.h.

Constructor & Destructor Documentation

◆ IfElse()

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::IfElse ( const COND_TYPE & cond_,
const LHS_TYPE & lhs_,
const RHS_TYPE & rhs_ )
inline

Member Function Documentation

◆ operator[]()

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
STORAGE Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[] ( R_xlen_t i) const
inline

Definition at line 55 of file ifelse.h.

References cond, Rcpp::traits::get_na(), Rcpp::traits::is_na(), lhs, and rhs.

Here is the call graph for this function:

◆ size()

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
R_xlen_t Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::size ( ) const
inline

Definition at line 62 of file ifelse.h.

References cond.

Member Data Documentation

◆ cond

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
const COND_TYPE& Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::cond
private

Definition at line 65 of file ifelse.h.

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

◆ lhs

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
const LHS_T& Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::lhs
private

Definition at line 66 of file ifelse.h.

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

◆ rhs

template<int RTYPE, bool COND_NA, typename COND_T, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
const RHS_T& Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::rhs
private

Definition at line 67 of file ifelse.h.

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


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