Rcpp Version 1.0.9
Rcpp::sugar::WhichMin< RTYPE, NA, T > Class Template Reference

#include <which_min.h>

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

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
 
typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
 

Public Member Functions

 WhichMin (const VEC_TYPE &obj_)
 
R_xlen_t get () const
 

Private Attributes

const VEC_TYPEobj
 

Detailed Description

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

Definition at line 29 of file which_min.h.

Member Typedef Documentation

◆ STORAGE

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

Definition at line 32 of file which_min.h.

◆ VEC_TYPE

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

Definition at line 31 of file which_min.h.

Constructor & Destructor Documentation

◆ WhichMin()

template<int RTYPE, bool NA, typename T >
Rcpp::sugar::WhichMin< RTYPE, NA, T >::WhichMin ( const VEC_TYPE obj_)
inline

Definition at line 33 of file which_min.h.

Member Function Documentation

◆ get()

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

Definition at line 35 of file which_min.h.

References Rcpp::min(), Rcpp::sugar::WhichMin< RTYPE, NA, T >::obj, and Rcpp::VectorBase< RTYPE, na, VECTOR >::size().

Referenced by Rcpp::which_min().

Here is the call graph for this function:

Member Data Documentation

◆ obj

template<int RTYPE, bool NA, typename T >
const VEC_TYPE& Rcpp::sugar::WhichMin< RTYPE, NA, T >::obj
private

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