Rcpp Version 0.12.12
Rcpp::sugar::clamp_operator<REALSXP, true > Struct Template 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

template<>
struct Rcpp::sugar::clamp_operator<REALSXP, true >

Definition at line 41 of file clamp.h.

Constructor & Destructor Documentation

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

Definition at line 42 of file clamp.h.

Member Function Documentation

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 >(), and Rcpp::sugar::clamp_operator< RTYPE, NA >::rhs.

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 48 of file clamp.h.

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: