Rcpp Version 1.0.9
Rcpp::internal::LazyVector< VECTOR > Class Template Reference

#include <LazyVector.h>

Public Types

typedef VECTOR::r_type r_type
 
typedef Rcpp::traits::storage_type< r_type::value >::type stored_type
 

Public Member Functions

 LazyVector (const VECTOR &vec_)
 
stored_type operator[] (R_xlen_t i) const
 

Private Attributes

const VECTOR & vec
 
R_xlen_t n
 
std::vector< stored_typedata
 
std::vector< bool > known
 

Detailed Description

template<typename VECTOR>
class Rcpp::internal::LazyVector< VECTOR >

Definition at line 29 of file LazyVector.h.

Member Typedef Documentation

◆ r_type

template<typename VECTOR >
typedef VECTOR::r_type Rcpp::internal::LazyVector< VECTOR >::r_type

Definition at line 31 of file LazyVector.h.

◆ stored_type

template<typename VECTOR >
typedef Rcpp::traits::storage_type< r_type::value >::type Rcpp::internal::LazyVector< VECTOR >::stored_type

Definition at line 32 of file LazyVector.h.

Constructor & Destructor Documentation

◆ LazyVector()

template<typename VECTOR >
Rcpp::internal::LazyVector< VECTOR >::LazyVector ( const VECTOR &  vec_)
inline

Definition at line 34 of file LazyVector.h.

Member Function Documentation

◆ operator[]()

template<typename VECTOR >
stored_type Rcpp::internal::LazyVector< VECTOR >::operator[] ( R_xlen_t  i) const
inline

Member Data Documentation

◆ data

template<typename VECTOR >
std::vector<stored_type> Rcpp::internal::LazyVector< VECTOR >::data
mutableprivate

Definition at line 50 of file LazyVector.h.

Referenced by Rcpp::internal::LazyVector< VECTOR >::operator[]().

◆ known

template<typename VECTOR >
std::vector<bool> Rcpp::internal::LazyVector< VECTOR >::known
mutableprivate

Definition at line 51 of file LazyVector.h.

Referenced by Rcpp::internal::LazyVector< VECTOR >::operator[]().

◆ n

template<typename VECTOR >
R_xlen_t Rcpp::internal::LazyVector< VECTOR >::n
private

Definition at line 49 of file LazyVector.h.

◆ vec

template<typename VECTOR >
const VECTOR& Rcpp::internal::LazyVector< VECTOR >::vec
private

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