Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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  rcpp_sugar_expression
struct  r_type
struct  can_have_na
struct  iter_traits
struct  const_iter_traits
class  iter_base

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

◆ 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.

◆ 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.

◆ 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()


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