Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T > Class Template Reference

#include <ifelse.h>

Inheritance diagram for Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >:
Collaboration diagram for Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >:

Public Types

typedef Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > COND_TYPE
typedef traits::storage_type< RTYPE >::type STORAGE
Public Types inherited from Rcpp::VectorBase< RTYPE, true, IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_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_Primitive_Primitive (const COND_TYPE &cond_, STORAGE lhs_, STORAGE rhs_)
STORAGE operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE, true, IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T > >
IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_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
STORAGE lhs
STORAGE rhs
STORAGE na

Detailed Description

template<int RTYPE, bool COND_NA, typename COND_T>
class Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >

Definition at line 273 of file ifelse.h.

Member Typedef Documentation

◆ COND_TYPE

template<int RTYPE, bool COND_NA, typename COND_T>
typedef Rcpp::VectorBase<LGLSXP,COND_NA,COND_T> Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::COND_TYPE

Definition at line 279 of file ifelse.h.

◆ STORAGE

template<int RTYPE, bool COND_NA, typename COND_T>
typedef traits::storage_type<RTYPE>::type Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::STORAGE

Definition at line 280 of file ifelse.h.

Constructor & Destructor Documentation

◆ IfElse_Primitive_Primitive()

template<int RTYPE, bool COND_NA, typename COND_T>
Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::IfElse_Primitive_Primitive ( const COND_TYPE & cond_,
STORAGE lhs_,
STORAGE rhs_ )
inline

Definition at line 282 of file ifelse.h.

References cond, lhs, and rhs.

Member Function Documentation

◆ operator[]()

template<int RTYPE, bool COND_NA, typename COND_T>
STORAGE Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::operator[] ( R_xlen_t i) const
inline

Definition at line 287 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>
R_xlen_t Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::size ( ) const
inline

Definition at line 293 of file ifelse.h.

References cond.

Member Data Documentation

◆ cond

template<int RTYPE, bool COND_NA, typename COND_T>
const COND_TYPE& Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::cond
private

Definition at line 296 of file ifelse.h.

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

◆ lhs

template<int RTYPE, bool COND_NA, typename COND_T>
STORAGE Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::lhs
private

Definition at line 297 of file ifelse.h.

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

◆ na

template<int RTYPE, bool COND_NA, typename COND_T>
STORAGE Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::na
private

Definition at line 299 of file ifelse.h.

◆ rhs

template<int RTYPE, bool COND_NA, typename COND_T>
STORAGE Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::rhs
private

Definition at line 298 of file ifelse.h.

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


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