Rcpp Version 0.12.12
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
 
iterator begin () const
 
iterator end () 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 iterator const_iterator
 

Detailed Description

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

Definition at line 48 of file rep.h.

Constructor & Destructor Documentation

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

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

Definition at line 56 of file rep.h.

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< RTYPE, NA, T >::n.

Member Data Documentation

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

Definition at line 63 of file rep.h.

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

Definition at line 62 of file rep.h.


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