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

#include <clamp.h>

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

Public Types

typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
typedef clamp_operator< RTYPE, NAOPERATOR
Public Types inherited from Rcpp::VectorBase< RTYPE, NA, Clamp_Primitive_Vector_Primitive< RTYPE, 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

 Clamp_Primitive_Vector_Primitive (STORAGE lhs_, const T &vec_, STORAGE rhs_)
STORAGE operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE, NA, Clamp_Primitive_Vector_Primitive< RTYPE, NA, T > >
Clamp_Primitive_Vector_Primitive< RTYPE, 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 Attributes

const T & vec
OPERATOR op

Detailed Description

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

Definition at line 57 of file clamp.h.

Member Typedef Documentation

◆ OPERATOR

template<int RTYPE, bool NA, typename T>
typedef clamp_operator<RTYPE,NA> Rcpp::sugar::Clamp_Primitive_Vector_Primitive< RTYPE, NA, T >::OPERATOR

Definition at line 64 of file clamp.h.

◆ STORAGE

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

Definition at line 63 of file clamp.h.

Constructor & Destructor Documentation

◆ Clamp_Primitive_Vector_Primitive()

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

Definition at line 66 of file clamp.h.

References op, and vec.

Member Function Documentation

◆ operator[]()

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

Definition at line 68 of file clamp.h.

References op, and vec.

◆ size()

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

Definition at line 71 of file clamp.h.

References vec.

Member Data Documentation

◆ op

template<int RTYPE, bool NA, typename T>
OPERATOR Rcpp::sugar::Clamp_Primitive_Vector_Primitive< RTYPE, NA, T >::op
private

Definition at line 75 of file clamp.h.

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

◆ vec

template<int RTYPE, bool NA, typename T>
const T& Rcpp::sugar::Clamp_Primitive_Vector_Primitive< RTYPE, NA, T >::vec
private

Definition at line 74 of file clamp.h.

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


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