Rcpp Version 1.0.9
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
 
struct  const_iter_traits
 
class  iter_base
 
struct  iter_traits
 
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 iter_base< iter_traitsiterator
 
typedef iter_base< const_iter_traitsconst_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
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () 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

◆ const_iterator

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

Definition at line 162 of file VectorBase.h.

◆ elem_type

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.

◆ iterator

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

Definition at line 161 of file VectorBase.h.

◆ stored_type

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

◆ begin()

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

Definition at line 164 of file VectorBase.h.

◆ cbegin()

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

Definition at line 167 of file VectorBase.h.

◆ cend()

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

Definition at line 168 of file VectorBase.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::size().

Here is the call graph for this function:

◆ end()

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

Definition at line 165 of file VectorBase.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::size().

Here is the call graph for this function:

◆ get_ref() [1/2]

◆ get_ref() [2/2]

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.

◆ operator[]()

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.

◆ size()

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.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::size().

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

Here is the call graph for this function:

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