Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::Range< RTYPE, NA, T > Class Template Reference

#include <range.h>

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

Public Types

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

Public Member Functions

 Range (const T &obj_)
 operator Vector< RTYPE > ()

Private Attributes

const T & obj
STORAGE min_
STORAGE max_
STORAGE current

Detailed Description

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

Definition at line 29 of file range.h.

Member Typedef Documentation

◆ STORAGE

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

Definition at line 31 of file range.h.

Constructor & Destructor Documentation

◆ Range()

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

Definition at line 33 of file range.h.

References obj.

Member Function Documentation

◆ operator Vector< RTYPE >()

template<int RTYPE, bool NA, typename T>
Rcpp::sugar::Range< RTYPE, NA, T >::operator Vector< RTYPE > ( )
inline

Definition at line 35 of file range.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::create(), current, Rcpp::traits::is_na(), max_, min_, and obj.

Here is the call graph for this function:

Member Data Documentation

◆ current

template<int RTYPE, bool NA, typename T>
STORAGE Rcpp::sugar::Range< RTYPE, NA, T >::current
private

Definition at line 53 of file range.h.

Referenced by operator Vector< RTYPE >().

◆ max_

template<int RTYPE, bool NA, typename T>
STORAGE Rcpp::sugar::Range< RTYPE, NA, T >::max_
private

Definition at line 53 of file range.h.

Referenced by operator Vector< RTYPE >().

◆ min_

template<int RTYPE, bool NA, typename T>
STORAGE Rcpp::sugar::Range< RTYPE, NA, T >::min_
private

Definition at line 53 of file range.h.

Referenced by operator Vector< RTYPE >().

◆ obj

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

Definition at line 52 of file range.h.

Referenced by operator Vector< RTYPE >(), and Range().


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