Rcpp Version 1.0.9
Rcpp::sugar::clamp_operator< REALSXP, true > Struct Reference

#include <clamp.h>

Public Member Functions

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

Public Attributes

double lhs
 
double rhs
 

Detailed Description

Definition at line 41 of file clamp.h.

Constructor & Destructor Documentation

◆ clamp_operator()

Rcpp::sugar::clamp_operator< REALSXP, true >::clamp_operator ( double  lhs_,
double  rhs_ 
)
inline

Definition at line 42 of file clamp.h.

Member Function Documentation

◆ operator()()

double Rcpp::sugar::clamp_operator< REALSXP, true >::operator() ( double  x) const
inline

Definition at line 44 of file clamp.h.

References Rcpp::traits::is_na< REALSXP >(), Rcpp::sugar::clamp_operator< RTYPE, NA >::lhs, and Rcpp::sugar::clamp_operator< RTYPE, NA >::rhs.

Here is the call graph for this function:

Member Data Documentation

◆ lhs

double Rcpp::sugar::clamp_operator< REALSXP, true >::lhs

Definition at line 48 of file clamp.h.

◆ rhs

double Rcpp::sugar::clamp_operator< REALSXP, true >::rhs

Definition at line 48 of file clamp.h.


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