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

#include <which_max.h>

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

Public Types

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

Public Member Functions

 WhichMax (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::WhichMax< RTYPE, NA, T >

Definition at line 29 of file which_max.h.

Member Typedef Documentation

◆ STORAGE

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

Definition at line 32 of file which_max.h.

◆ VEC_TYPE

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

Definition at line 31 of file which_max.h.

Constructor & Destructor Documentation

◆ WhichMax()

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

Definition at line 33 of file which_max.h.

Member Function Documentation

◆ get()

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

Definition at line 35 of file which_max.h.

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

Referenced by Rcpp::which_max().

Here is the call graph for this function:

Member Data Documentation

◆ obj

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

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