Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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

Definition at line 36 of file LazyVector.h.

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.

◆ known

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

Definition at line 51 of file LazyVector.h.

◆ 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

Definition at line 48 of file LazyVector.h.


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