Rcpp Version 0.12.12
Rcpp::VectorBase< RTYPE, na, VECTOR > Class Template Reference

#include <VectorBase.h>

Inheritance diagram for Rcpp::VectorBase< RTYPE, na, VECTOR >:
Collaboration diagram for Rcpp::VectorBase< RTYPE, na, VECTOR >:

Classes

struct  can_have_na
 
class  iterator
 
struct  r_type
 
struct  rcpp_sugar_expression
 

Public Types

typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iterator const_iterator
 

Public Member Functions

VECTOR & get_ref ()
 
const VECTOR & get_ref () const
 
stored_type operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
iterator begin () const
 
iterator end () const
 

Detailed Description

template<int RTYPE, bool na, typename VECTOR>
class Rcpp::VectorBase< RTYPE, na, VECTOR >

a base class for vectors, modelled after the CRTP

Definition at line 29 of file VectorBase.h.

Member Typedef Documentation

template<int RTYPE, bool na, typename VECTOR>
typedef iterator Rcpp::VectorBase< RTYPE, na, VECTOR >::const_iterator

Definition at line 138 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
typedef traits::storage_type<RTYPE>::type Rcpp::VectorBase< RTYPE, na, VECTOR >::elem_type

Definition at line 35 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
typedef traits::storage_type<RTYPE>::type Rcpp::VectorBase< RTYPE, na, VECTOR >::stored_type

Definition at line 34 of file VectorBase.h.

Member Function Documentation

template<int RTYPE, bool na, typename VECTOR>
iterator Rcpp::VectorBase< RTYPE, na, VECTOR >::begin ( ) const
inline

Definition at line 140 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
iterator Rcpp::VectorBase< RTYPE, na, VECTOR >::end ( ) const
inline

Definition at line 141 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
const VECTOR& Rcpp::VectorBase< RTYPE, na, VECTOR >::get_ref ( ) const
inline

Definition at line 41 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
stored_type Rcpp::VectorBase< RTYPE, na, VECTOR >::operator[] ( R_xlen_t  i) const
inline

Definition at line 45 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
R_xlen_t Rcpp::VectorBase< RTYPE, na, VECTOR >::size ( ) const
inline

Definition at line 49 of file VectorBase.h.

Referenced by Rcpp::collapse(), Rcpp::VectorBase< RTYPE, true, IfElse_Primitive_Primitive< RTYPE, false, COND_T > >::end(), Rcpp::sugar::WhichMin< RTYPE, NA, T >::get(), Rcpp::sugar::WhichMax< RTYPE, NA, T >::get(), Rcpp::sugar::WhichMax< RTYPE, false, T >::get(), Rcpp::sugar::WhichMin< RTYPE, false, T >::get(), Rcpp::Vector< INTSXP >::import_sugar_expression(), Rcpp::seq_along(), Rcpp::sugar::IsNa< RTYPE, NA, VEC_TYPE >::size(), Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::size(), Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >::size(), Rcpp::stats::D0< RTYPE, NA, T >::size(), Rcpp::sugar::Comparator< RTYPE, Operator, LHS_NA, LHS_T, RHS_NA, RHS_T >::size(), Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, NA, T >::size(), Rcpp::VectorBase< RTYPE, true, IfElse_Primitive_Primitive< RTYPE, false, COND_T > >::size(), Rcpp::sugar::SugarComplex< NA, RESULT_TYPE, T, FunPtr >::size(), Rcpp::sugar::IfElse< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::size(), Rcpp::sugar::IsNa< RTYPE, false, VEC_TYPE >::size(), Rcpp::sugar::Diff< RTYPE, LHS_NA, LHS_T >::size(), Rcpp::stats::D1< RTYPE, NA, T >::size(), Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, int, T1, FunPtr >::size(), Rcpp::sugar::Comparator< RTYPE, Operator, false, LHS_T, RHS_NA, RHS_T >::size(), Rcpp::sugar::Comparator_With_One_Value< RTYPE, Operator, false, T >::size(), Rcpp::stats::D2< RTYPE, NA, T >::size(), Rcpp::sugar::SugarMath_1< false, RESULT_TYPE, int, T1, FunPtr >::size(), Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::size(), Rcpp::sugar::IfElse< RTYPE, false, COND_T, LHS_NA, LHS_T, RHS_NA, RHS_T >::size(), Rcpp::sugar::Comparator< RTYPE, Operator, false, LHS_T, false, RHS_T >::size(), Rcpp::stats::D3< RTYPE, NA, T >::size(), Rcpp::sugar::Diff< RTYPE, false, LHS_T >::size(), Rcpp::stats::P0< RTYPE, NA, T >::size(), Rcpp::sugar::IfElse_Primitive_Vector< RTYPE, COND_NA, COND_T, RHS_NA, RHS_T >::size(), Rcpp::stats::P1< RTYPE, NA, T >::size(), Rcpp::sugar::IfElse_Primitive_Vector< RTYPE, false, COND_T, RHS_NA, RHS_T >::size(), Rcpp::stats::P2< RTYPE, NA, T >::size(), Rcpp::stats::P3< RTYPE, NA, T >::size(), Rcpp::sugar::IfElse_Vector_Primitive< RTYPE, COND_NA, COND_T, LHS_NA, LHS_T >::size(), Rcpp::stats::Q0< RTYPE, NA, T >::size(), Rcpp::sugar::IfElse_Vector_Primitive< RTYPE, false, COND_T, LHS_NA, LHS_T >::size(), Rcpp::stats::Q1< RTYPE, NA, T >::size(), Rcpp::stats::Q2< RTYPE, NA, T >::size(), Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, COND_NA, COND_T >::size(), Rcpp::stats::Q3< RTYPE, NA, T >::size(), and Rcpp::sugar::IfElse_Primitive_Primitive< RTYPE, false, COND_T >::size().


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