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

#include <Comparator_With_One_Value.h>

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

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
typedef traits::storage_type< RTYPE >::type STORAGE
typedef int(Comparator_With_One_Value::* METHOD) (int) const
Public Types inherited from Rcpp::VectorBase< LGLSXP, true, Comparator_With_One_Value< RTYPE, Operator, 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

 Comparator_With_One_Value (const VEC_TYPE &lhs_, STORAGE rhs_)
int operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< LGLSXP, true, Comparator_With_One_Value< RTYPE, Operator, NA, T > >
Comparator_With_One_Value< RTYPE, Operator, 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 Member Functions

int rhs_is_na (int i) const
int rhs_is_not_na (int i) const

Private Attributes

const VEC_TYPElhs
STORAGE rhs
METHOD m
Operator op

Detailed Description

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

Definition at line 30 of file Comparator_With_One_Value.h.

Member Typedef Documentation

◆ METHOD

template<int RTYPE, typename Operator, bool NA, typename T>
typedef int(Comparator_With_One_Value::* Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::METHOD) (int) const

Definition at line 34 of file Comparator_With_One_Value.h.

◆ STORAGE

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

Definition at line 33 of file Comparator_With_One_Value.h.

◆ VEC_TYPE

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

Definition at line 32 of file Comparator_With_One_Value.h.

Constructor & Destructor Documentation

◆ Comparator_With_One_Value()

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

Definition at line 36 of file Comparator_With_One_Value.h.

References Rcpp::traits::is_na(), lhs, m, op, rhs, rhs_is_na(), and rhs_is_not_na().

Here is the call graph for this function:

Member Function Documentation

◆ operator[]()

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

Definition at line 45 of file Comparator_With_One_Value.h.

References m.

◆ rhs_is_na()

template<int RTYPE, typename Operator, bool NA, typename T>
int Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::rhs_is_na ( int i) const
inlineprivate

◆ rhs_is_not_na()

template<int RTYPE, typename Operator, bool NA, typename T>
int Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::rhs_is_not_na ( int i) const
inlineprivate

◆ size()

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

Definition at line 49 of file Comparator_With_One_Value.h.

References lhs.

Member Data Documentation

◆ lhs

template<int RTYPE, typename Operator, bool NA, typename T>
const VEC_TYPE& Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::lhs
private

Definition at line 52 of file Comparator_With_One_Value.h.

Referenced by Comparator_With_One_Value(), rhs_is_not_na(), and size().

◆ m

template<int RTYPE, typename Operator, bool NA, typename T>
METHOD Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::m
private

Definition at line 54 of file Comparator_With_One_Value.h.

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

◆ op

template<int RTYPE, typename Operator, bool NA, typename T>
Operator Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::op
private

◆ rhs

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

Definition at line 53 of file Comparator_With_One_Value.h.

Referenced by Comparator_With_One_Value(), rhs_is_na(), and rhs_is_not_na().


The documentation for this class was generated from the following file: