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

#include <rep_len.h>

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

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
Public Types inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
typedef traits::storage_type< RTYPE >::type stored_type
typedef traits::storage_type< RTYPE >::type elem_type
typedef iter_base< iter_traitsiterator
typedef iter_base< const_iter_traitsconst_iterator

Public Member Functions

 Rep_len (const VEC_TYPE &object_, R_xlen_t len_)
STORAGE operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
VECTOR & get_ref ()
const VECTOR & get_ref () const
stored_type operator[] (R_xlen_t i) const
R_xlen_t size () const
const_iterator begin () const
const_iterator end () const
const_iterator cbegin () const
const_iterator cend () const

Private Attributes

const VEC_TYPEobject
R_xlen_t len
R_xlen_t n

Detailed Description

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

Definition at line 29 of file rep_len.h.

Member Typedef Documentation

◆ STORAGE

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

Definition at line 32 of file rep_len.h.

◆ VEC_TYPE

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

Definition at line 31 of file rep_len.h.

Constructor & Destructor Documentation

◆ Rep_len()

template<int RTYPE, bool NA, typename T>
Rcpp::sugar::Rep_len< RTYPE, NA, T >::Rep_len ( const VEC_TYPE & object_,
R_xlen_t len_ )
inline

Definition at line 34 of file rep_len.h.

References len, n, object, and size().

Here is the call graph for this function:

Member Function Documentation

◆ operator[]()

template<int RTYPE, bool NA, typename T>
STORAGE Rcpp::sugar::Rep_len< RTYPE, NA, T >::operator[] ( R_xlen_t i) const
inline

Definition at line 37 of file rep_len.h.

References n.

◆ size()

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

Definition at line 40 of file rep_len.h.

References len.

Referenced by Rep_len().

Member Data Documentation

◆ len

template<int RTYPE, bool NA, typename T>
R_xlen_t Rcpp::sugar::Rep_len< RTYPE, NA, T >::len
private

Definition at line 44 of file rep_len.h.

Referenced by Rep_len(), and size().

◆ n

template<int RTYPE, bool NA, typename T>
R_xlen_t Rcpp::sugar::Rep_len< RTYPE, NA, T >::n
private

Definition at line 44 of file rep_len.h.

Referenced by operator[](), and Rep_len().

◆ object

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

Definition at line 43 of file rep_len.h.

Referenced by Rep_len().


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