Rcpp Version 1.0.9
Rcpp::sugar::Rep_Single< T > Class Template Reference

#include <rep.h>

Inheritance diagram for Rcpp::sugar::Rep_Single< T >:
Collaboration diagram for Rcpp::sugar::Rep_Single< T >:

Public Member Functions

 Rep_Single (const T &x_, R_xlen_t n_)
 
operator[] (R_xlen_t) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< T >::rtype, true, Rep_Single< T > >
Rep_Single< T > & get_ref ()
 
const Rep_Single< T > & 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 T & x
 
R_xlen_t n
 

Additional Inherited Members

- Public Types inherited from Rcpp::VectorBase< Rcpp::traits::r_sexptype_traits< T >::rtype, true, Rep_Single< T > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iter_base< iter_traits > iterator
 
typedef iter_base< const_iter_traits > const_iterator
 

Detailed Description

template<typename T>
class Rcpp::sugar::Rep_Single< T >

Definition at line 48 of file rep.h.

Constructor & Destructor Documentation

◆ Rep_Single()

template<typename T >
Rcpp::sugar::Rep_Single< T >::Rep_Single ( const T &  x_,
R_xlen_t  n_ 
)
inline

Definition at line 54 of file rep.h.

Member Function Documentation

◆ operator[]()

template<typename T >
T Rcpp::sugar::Rep_Single< T >::operator[] ( R_xlen_t  ) const
inline

Definition at line 56 of file rep.h.

References Rcpp::sugar::Rep_Single< T >::x.

◆ size()

template<typename T >
R_xlen_t Rcpp::sugar::Rep_Single< T >::size ( ) const
inline

Definition at line 59 of file rep.h.

References Rcpp::sugar::Rep_Single< T >::n.

Member Data Documentation

◆ n

template<typename T >
R_xlen_t Rcpp::sugar::Rep_Single< T >::n
private

Definition at line 63 of file rep.h.

Referenced by Rcpp::sugar::Rep_Single< T >::size().

◆ x

template<typename T >
const T& Rcpp::sugar::Rep_Single< T >::x
private

Definition at line 62 of file rep.h.

Referenced by Rcpp::sugar::Rep_Single< T >::operator[]().


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