Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::clamp_operator< RTYPE, NA > Struct Template Reference

#include <clamp.h>

Collaboration diagram for Rcpp::sugar::clamp_operator< RTYPE, NA >:

Public Types

typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE

Public Member Functions

 clamp_operator (STORAGE lhs_, STORAGE rhs_)
STORAGE operator() (STORAGE x) const

Public Attributes

STORAGE lhs
STORAGE rhs

Detailed Description

template<int RTYPE, bool NA>
struct Rcpp::sugar::clamp_operator< RTYPE, NA >

Definition at line 29 of file clamp.h.

Member Typedef Documentation

◆ STORAGE

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

Definition at line 30 of file clamp.h.

Constructor & Destructor Documentation

◆ clamp_operator()

template<int RTYPE, bool NA>
Rcpp::sugar::clamp_operator< RTYPE, NA >::clamp_operator ( STORAGE lhs_,
STORAGE rhs_ )
inline

Definition at line 32 of file clamp.h.

References lhs, and rhs.

Member Function Documentation

◆ operator()()

template<int RTYPE, bool NA>
STORAGE Rcpp::sugar::clamp_operator< RTYPE, NA >::operator() ( STORAGE x) const
inline

Definition at line 34 of file clamp.h.

References lhs, and rhs.

Member Data Documentation

◆ lhs

template<int RTYPE, bool NA>
STORAGE Rcpp::sugar::clamp_operator< RTYPE, NA >::lhs

Definition at line 37 of file clamp.h.

Referenced by clamp_operator(), and operator()().

◆ rhs

template<int RTYPE, bool NA>
STORAGE Rcpp::sugar::clamp_operator< RTYPE, NA >::rhs

Definition at line 37 of file clamp.h.

Referenced by clamp_operator(), and operator()().


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