Rcpp Version 1.0.9
Rcpp::Vector< RTYPE, StoragePolicy > Class Template Reference

#include <Vector.h>

Inheritance diagram for Rcpp::Vector< RTYPE, StoragePolicy >:
Collaboration diagram for Rcpp::Vector< RTYPE, StoragePolicy >:

Public Types

typedef StoragePolicy< VectorStorage
 
typedef traits::r_vector_proxy< RTYPE, StoragePolicy >::type Proxy
 
typedef traits::r_vector_const_proxy< RTYPE, StoragePolicy >::type const_Proxy
 
typedef traits::r_vector_name_proxy< RTYPE, StoragePolicy >::type NameProxy
 
typedef traits::r_vector_proxy< RTYPE, StoragePolicy >::type value_type
 
typedef traits::r_vector_iterator< RTYPE, StoragePolicy >::type iterator
 
typedef traits::r_vector_const_iterator< RTYPE, StoragePolicy >::type const_iterator
 
typedef traits::init_type< RTYPE >::type init_type
 
typedef traits::r_vector_element_converter< RTYPE >::type converter_type
 
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef internal::RangeIndexer< RTYPE, true, VectorIndexer
 
- Public Types inherited from Rcpp::VectorBase< RTYPE, true, Vector< RTYPE, PreserveStorage > >
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
 

Public Member Functions

 Vector ()
 
 Vector (const Vector &other)
 
Vectoroperator= (const Vector &rhs)
 
 Vector (SEXP x)
 
template<typename Proxy >
 Vector (const GenericProxy< Proxy > &proxy)
 
 Vector (const no_init_vector &obj)
 
template<typename T >
 Vector (const T &size, const stored_type &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const int &size, const stored_type &u)
 
 Vector (const std::string &st)
 
 Vector (const char *st)
 
template<typename T >
 Vector (const T &siz, stored_type(*gen)(void), typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename T >
 Vector (T size, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const int &size)
 
 Vector (const Dimension &dims)
 
template<typename T >
 Vector (T value, typename Rcpp::traits::enable_if< traits::is_bool< T >::value &&RTYPE==LGLSXP, void >::type *=0)
 
template<typename U >
 Vector (const Dimension &dims, const U &u)
 
template<bool NA, typename VEC >
 Vector (const VectorBase< RTYPE, NA, VEC > &other)
 
template<typename T , typename U >
 Vector (const T &size, const U &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<bool NA, typename T >
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
 
template<typename T , typename U1 >
 Vector (const T &siz, stored_type(*gen)(U1), const U1 &u1, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename T , typename U1 , typename U2 >
 Vector (const T &siz, stored_type(*gen)(U1, U2), const U1 &u1, const U2 &u2, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename T , typename U1 , typename U2 , typename U3 >
 Vector (const T &siz, stored_type(*gen)(U1, U2, U3), const U1 &u1, const U2 &u2, const U3 &u3, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename InputIterator >
 Vector (InputIterator first, InputIterator last)
 
template<typename InputIterator , typename T >
 Vector (InputIterator first, InputIterator last, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename InputIterator , typename Func >
 Vector (InputIterator first, InputIterator last, Func func)
 
template<typename InputIterator , typename Func , typename T >
 Vector (InputIterator first, InputIterator last, Func func, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename T >
Vectoroperator= (const T &x)
 
R_xlen_t length () const
 
R_xlen_t size () const
 
R_xlen_t offset (const int &i, const int &j) const
 
R_xlen_t offset (const R_xlen_t &i) const
 
R_xlen_t offset (const std::string &name) const
 
template<typename U >
void fill (const U &u)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
Proxy operator[] (R_xlen_t i)
 
const_Proxy operator[] (R_xlen_t i) const
 
Proxy operator() (const size_t &i)
 
const_Proxy operator() (const size_t &i) const
 
Proxy at (const size_t &i)
 
const_Proxy at (const size_t &i) const
 
Proxy operator() (const size_t &i, const size_t &j)
 
const_Proxy operator() (const size_t &i, const size_t &j) const
 
NameProxy operator[] (const std::string &name)
 
NameProxy operator() (const std::string &name)
 
NameProxy operator[] (const std::string &name) const
 
NameProxy operator() (const std::string &name) const
 
 operator RObject () const
 
template<int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs)
 
template<int RHS_RTYPE, bool RHS_NA, typename RHS_T >
const SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs) const
 
Vectorsort (bool decreasing=false)
 
template<typename InputIterator >
void assign (InputIterator first, InputIterator last)
 
template<typename T >
void push_back (const T &object)
 
template<typename T >
void push_back (const T &object, const std::string &name)
 
template<typename T >
void push_front (const T &object)
 
template<typename T >
void push_front (const T &object, const std::string &name)
 
template<typename T >
iterator insert (iterator position, const T &object)
 
template<typename T >
iterator insert (int position, const T &object)
 
iterator erase (int position)
 
iterator erase (iterator position)
 
iterator erase (int first, int last)
 
iterator erase (iterator first, iterator last)
 
void update (SEXP)
 
Indexer operator[] (const Range &range)
 
template<typename EXPR_VEC >
Vectoroperator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs)
 
template<typename EXPR_VEC >
Vectoroperator+= (const VectorBase< RTYPE, false, EXPR_VEC > &rhs)
 
bool containsElementNamed (const char *target) const
 
int findName (const std::string &name) const
 
SEXP eval () const
 
SEXP eval (SEXP env) const
 
- Public Member Functions inherited from Rcpp::PreserveStorage< Vector< RTYPE, PreserveStorage > >
 PreserveStorage ()
 
 ~PreserveStorage ()
 
void set__ (SEXP x)
 
SEXP get__ () const
 
SEXP invalidate__ ()
 
T & copy__ (const T &other)
 
bool inherits (const char *clazz) const
 
 operator SEXP () const
 
- Public Member Functions inherited from Rcpp::SlotProxyPolicy< Vector< RTYPE, PreserveStorage > >
SlotProxy slot (const std::string &name)
 
const_SlotProxy slot (const std::string &name) const
 
bool hasSlot (const std::string &name) const
 
- Public Member Functions inherited from Rcpp::AttributeProxyPolicy< Vector< RTYPE, PreserveStorage > >
AttributeProxy attr (const std::string &name)
 
const_AttributeProxy attr (const std::string &name) const
 
std::vector< std::string > attributeNames () const
 
bool hasAttribute (const std::string &attr) const
 
- Public Member Functions inherited from Rcpp::NamesProxyPolicy< Vector< RTYPE, PreserveStorage > >
NamesProxy names ()
 
const_NamesProxy names () const
 
- Public Member Functions inherited from Rcpp::RObjectMethods< Vector< RTYPE, PreserveStorage > >
bool isNULL () const
 
int sexp_type () const
 
bool isObject () const
 
bool isS4 () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, true, Vector< RTYPE, PreserveStorage > >
Vector< RTYPE, PreserveStorage > & get_ref ()
 
const Vector< RTYPE, PreserveStorage > & 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
 

Static Public Member Functions

static stored_type get_na ()
 
static bool is_na (stored_type x)
 
template<typename InputIterator >
static Vector import (InputIterator first, InputIterator last)
 
template<typename InputIterator , typename F >
static Vector import_transform (InputIterator first, InputIterator last, F f)
 
template<typename U >
static void replace_element (iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch__isArgument (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
static Vector create ()
 

Public Attributes

traits::r_vector_cache_type< RTYPE, StoragePolicy >::type cache
 

Protected Member Functions

int * dims () const
 
void init ()
 

Private Member Functions

void push_back__impl (const stored_type &object, traits::true_type)
 
void push_back__impl (const stored_type &object, traits::false_type)
 
void push_back_name__impl (const stored_type &object, const std::string &name, traits::true_type)
 
void push_back_name__impl (const stored_type &object, const std::string &name, traits::false_type)
 
void push_front__impl (const stored_type &object, traits::true_type)
 
void push_front__impl (const stored_type &object, traits::false_type)
 
void push_front_name__impl (const stored_type &object, const std::string &name, traits::true_type)
 
void push_front_name__impl (const stored_type &object, const std::string &name, traits::false_type)
 
iterator insert__impl (iterator position, const stored_type &object_, traits::true_type)
 
iterator insert__impl (iterator position, const stored_type &object, traits::false_type)
 
iterator erase_single__impl (iterator position)
 
iterator erase_range__impl (iterator first, iterator last)
 
template<typename T >
void assign_sugar_expression (const T &x)
 
template<typename T >
void assign_object (const T &x, traits::true_type)
 
template<typename T >
void assign_object (const T &x, traits::false_type)
 
template<bool NA, typename VEC >
void import_sugar_expression (const Rcpp::VectorBase< RTYPE, NA, VEC > &other, traits::false_type)
 
template<bool NA, typename VEC >
void import_sugar_expression (const Rcpp::VectorBase< RTYPE, NA, VEC > &other, traits::true_type)
 
template<typename T >
void import_expression (const T &other, R_xlen_t n)
 
template<typename T >
void fill_or_generate (const T &t)
 
template<typename T >
void fill_or_generate__impl (const T &gen, traits::true_type)
 
template<typename T >
void fill_or_generate__impl (const T &t, traits::false_type)
 
template<typename U >
void fill__dispatch (traits::false_type, const U &u)
 
template<typename U >
void fill__dispatch (traits::true_type, const U &u)
 

Detailed Description

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
class Rcpp::Vector< RTYPE, StoragePolicy >

Examples
ConvolveBenchmarks/convolve3_cpp.cpp, and ConvolveBenchmarks/convolve4_cpp.cpp.

Definition at line 29 of file Vector.h.

Member Typedef Documentation

◆ const_iterator

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::r_vector_const_iterator<RTYPE, StoragePolicy>::type Rcpp::Vector< RTYPE, StoragePolicy >::const_iterator

Definition at line 47 of file Vector.h.

◆ const_Proxy

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::r_vector_const_proxy<RTYPE, StoragePolicy>::type Rcpp::Vector< RTYPE, StoragePolicy >::const_Proxy

Definition at line 43 of file Vector.h.

◆ converter_type

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::r_vector_element_converter<RTYPE>::type Rcpp::Vector< RTYPE, StoragePolicy >::converter_type

Definition at line 49 of file Vector.h.

◆ Indexer

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef internal::RangeIndexer<RTYPE,true,Vector> Rcpp::Vector< RTYPE, StoragePolicy >::Indexer

Definition at line 545 of file Vector.h.

◆ init_type

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::init_type<RTYPE>::type Rcpp::Vector< RTYPE, StoragePolicy >::init_type

Definition at line 48 of file Vector.h.

◆ iterator

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::r_vector_iterator<RTYPE, StoragePolicy>::type Rcpp::Vector< RTYPE, StoragePolicy >::iterator

Definition at line 46 of file Vector.h.

◆ NameProxy

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::r_vector_name_proxy<RTYPE, StoragePolicy>::type Rcpp::Vector< RTYPE, StoragePolicy >::NameProxy

Definition at line 44 of file Vector.h.

◆ Proxy

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::r_vector_proxy<RTYPE, StoragePolicy>::type Rcpp::Vector< RTYPE, StoragePolicy >::Proxy

Definition at line 42 of file Vector.h.

◆ Storage

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef StoragePolicy<Vector> Rcpp::Vector< RTYPE, StoragePolicy >::Storage

Definition at line 39 of file Vector.h.

◆ stored_type

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::storage_type<RTYPE>::type Rcpp::Vector< RTYPE, StoragePolicy >::stored_type

Definition at line 50 of file Vector.h.

◆ value_type

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef traits::r_vector_proxy<RTYPE, StoragePolicy>::type Rcpp::Vector< RTYPE, StoragePolicy >::value_type

Definition at line 45 of file Vector.h.

Constructor & Destructor Documentation

◆ Vector() [1/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( )
inline

Default constructor. Creates a vector of the appropriate type and 0 length

Definition at line 56 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::init().

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::create(), and Rcpp::Vector< RTYPE, StoragePolicy >::import_transform().

Here is the call graph for this function:

◆ Vector() [2/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const Vector< RTYPE, StoragePolicy > &  other)
inline

copy constructor. shallow copy of the SEXP

Definition at line 64 of file Vector.h.

◆ Vector() [3/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( SEXP  x)
inline

Definition at line 72 of file Vector.h.

◆ Vector() [4/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename Proxy >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const GenericProxy< Proxy > &  proxy)
inline

Definition at line 78 of file Vector.h.

References Rcpp::GenericProxy< Proxy >::get().

Here is the call graph for this function:

◆ Vector() [5/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const no_init_vector obj)
inlineexplicit

Definition at line 83 of file Vector.h.

References Rcpp::no_init_vector::get().

Here is the call graph for this function:

◆ Vector() [6/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const T &  size,
const stored_type u,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 88 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::fill(), RCPP_DEBUG_2, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ Vector() [7/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const int &  size,
const stored_type u 
)
inline

Definition at line 95 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::fill(), RCPP_DEBUG_2, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ Vector() [8/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const std::string &  st)
inline

Definition at line 102 of file Vector.h.

References RCPP_DEBUG_2.

◆ Vector() [9/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const char *  st)
inline

Definition at line 108 of file Vector.h.

References RCPP_DEBUG_2.

◆ Vector() [10/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const T &  siz,
stored_type(*)(void)  gen,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 114 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ Vector() [11/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( size,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 123 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::init(), and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ Vector() [12/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const int &  size)
inline

Definition at line 129 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::init(), and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ Vector() [13/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const Dimension dims)
inline

◆ Vector() [14/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( value,
typename Rcpp::traits::enable_if< traits::is_bool< T >::value &&RTYPE==LGLSXP, void >::type *  = 0 
)
inline

Definition at line 146 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::fill().

Here is the call graph for this function:

◆ Vector() [15/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const Dimension dims,
const U &  u 
)
inline

◆ Vector() [16/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<bool NA, typename VEC >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const VectorBase< RTYPE, NA, VEC > &  other)
inline

Definition at line 163 of file Vector.h.

References DEMANGLE, Rcpp::Vector< RTYPE, StoragePolicy >::import_sugar_expression(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ Vector() [17/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T , typename U >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const T &  size,
const U &  u,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 169 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate(), RCPP_DEBUG_2, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ Vector() [18/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<bool NA, typename T >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const sugar::SingleLogicalResult< NA, T > &  obj)
inline

Definition at line 177 of file Vector.h.

References DEMANGLE, and RCPP_DEBUG_2.

◆ Vector() [19/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T , typename U1 >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const T &  siz,
stored_type(*)(U1)  gen,
const U1 &  u1,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 184 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ Vector() [20/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T , typename U1 , typename U2 >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const T &  siz,
stored_type(*)(U1, U2)  gen,
const U1 &  u1,
const U2 &  u2,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 193 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ Vector() [21/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T , typename U1 , typename U2 , typename U3 >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( const T &  siz,
stored_type(*)(U1, U2, U3)  gen,
const U1 &  u1,
const U2 &  u2,
const U3 &  u3,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 202 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ Vector() [22/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename InputIterator >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( InputIterator  first,
InputIterator  last 
)
inline

Definition at line 211 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and RCPP_DEBUG_1.

Here is the call graph for this function:

◆ Vector() [23/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename InputIterator , typename T >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( InputIterator  first,
InputIterator  last,
n,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 218 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ Vector() [24/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename InputIterator , typename Func >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( InputIterator  first,
InputIterator  last,
Func  func 
)
inline

Definition at line 226 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and RCPP_DEBUG_1.

Here is the call graph for this function:

◆ Vector() [25/25]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename InputIterator , typename Func , typename T >
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( InputIterator  first,
InputIterator  last,
Func  func,
n,
typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *  = 0 
)
inline

Definition at line 233 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and RCPP_DEBUG_2.

Here is the call graph for this function:

Member Function Documentation

◆ assign()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename InputIterator >
void Rcpp::Vector< RTYPE, StoragePolicy >::assign ( InputIterator  first,
InputIterator  last 
)
inline

Definition at line 430 of file Vector.h.

References Rcpp::wrap().

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::import().

Here is the call graph for this function:

◆ assign_object() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::assign_object ( const T &  x,
traits::false_type   
)
inlineprivate

Definition at line 1059 of file Vector.h.

References Rcpp::wrap().

Here is the call graph for this function:

◆ assign_object() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::assign_object ( const T &  x,
traits::true_type   
)
inlineprivate

Definition at line 1053 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::assign_sugar_expression().

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::operator=().

Here is the call graph for this function:

◆ assign_sugar_expression()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::assign_sugar_expression ( const T &  x)
inlineprivate

Definition at line 1038 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::size(), and Rcpp::wrap().

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::assign_object().

Here is the call graph for this function:

◆ at() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Proxy Rcpp::Vector< RTYPE, StoragePolicy >::at ( const size_t &  i)
inline

Definition at line 351 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ at() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_Proxy Rcpp::Vector< RTYPE, StoragePolicy >::at ( const size_t &  i) const
inline

Definition at line 354 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ begin() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::begin ( )
inline
Examples
ConvolveBenchmarks/convolve4_cpp.cpp.

Definition at line 334 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache.

Referenced by Rcpp::ListOf< T >::begin(), Rcpp::Matrix< RTYPE, StoragePolicy >::begin(), Rcpp::Matrix< RTYPE, StoragePolicy >::cbegin(), compileAttributes(), convolve10cpp(), convolve12cpp(), convolve4cpp(), convolve8cpp(), convolve9cpp(), Rcpp::exception::copy_stack_trace_to_r(), Rcpp::sugar::EmpiricalSample(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl(), fastLm(), Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch(), Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate__impl(), Rcpp::sugar::Mean< RTYPE, NA, T >::get(), Rcpp::sugar::Mean< INTSXP, NA, T >::get(), Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::get(), Rcpp::sugar::Intersect< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::get(), Rcpp::sugar::Union< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::get(), Rcpp::Vector< RTYPE, StoragePolicy >::import_expression(), Rcpp::Matrix< RTYPE, StoragePolicy >::import_matrix_expression(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), lapplyCpp(), Rcpp::ListOf< T >::ListOf(), Rcpp::sugar::IndexHash< RTYPE >::lookup(), Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix(), Rcpp::Vector< RTYPE, StoragePolicy >::operator+=(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::sugar::SampleNoReplace(), Rcpp::sugar::SampleReplace(), Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::SelfMatch(), Rcpp::sugar::Table< RTYPE, TABLE_T >::Table(), and Rcpp::Vector< RTYPE, StoragePolicy >::Vector().

◆ begin() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Vector< RTYPE, StoragePolicy >::begin ( ) const
inline

Definition at line 336 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache.

◆ cbegin()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Vector< RTYPE, StoragePolicy >::cbegin ( ) const
inline

Definition at line 338 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache.

◆ cend()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Vector< RTYPE, StoragePolicy >::cend ( ) const
inline

Definition at line 339 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ containsElementNamed()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
bool Rcpp::Vector< RTYPE, StoragePolicy >::containsElementNamed ( const char *  target) const
inline

Does this vector have an element with the target name

Definition at line 586 of file Vector.h.

References Rcpp::NamesProxyPolicy< Vector< RTYPE, PreserveStorage > >::names(), and RCPP_GET_NAMES.

Here is the call graph for this function:

◆ create()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
static Vector Rcpp::Vector< RTYPE, StoragePolicy >::create ( )
inlinestatic

◆ dims()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
int* Rcpp::Vector< RTYPE, StoragePolicy >::dims ( ) const
inlineprotected

◆ end() [1/2]

◆ end() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Vector< RTYPE, StoragePolicy >::end ( ) const
inline

Definition at line 337 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ erase() [1/4]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::erase ( int  first,
int  last 
)
inline

Definition at line 500 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl().

Here is the call graph for this function:

◆ erase() [2/4]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::erase ( int  position)
inline

Definition at line 492 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl().

Referenced by Rcpp::DataFrame_Impl< StoragePolicy >::from_list().

Here is the call graph for this function:

◆ erase() [3/4]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 505 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl().

Here is the call graph for this function:

◆ erase() [4/4]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::erase ( iterator  position)
inline

Definition at line 496 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl().

Here is the call graph for this function:

◆ erase_range__impl()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl ( iterator  first,
iterator  last 
)
inlineprivate

◆ erase_single__impl()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl ( iterator  position)
inlineprivate

◆ eval() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
SEXP Rcpp::Vector< RTYPE, StoragePolicy >::eval ( ) const
inline

Definition at line 1130 of file Vector.h.

References Rcpp::Rcpp_fast_eval().

Here is the call graph for this function:

◆ eval() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
SEXP Rcpp::Vector< RTYPE, StoragePolicy >::eval ( SEXP  env) const
inline

Definition at line 1134 of file Vector.h.

References Rcpp::Rcpp_fast_eval().

Here is the call graph for this function:

◆ fill()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
void Rcpp::Vector< RTYPE, StoragePolicy >::fill ( const U &  u)
inline

◆ fill__dispatch() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
void Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch ( traits::false_type  ,
const U &  u 
)
inlineprivate

◆ fill__dispatch() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
void Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch ( traits::true_type  ,
const U &  u 
)
inlineprivate

◆ fill_or_generate()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate ( const T &  t)
inlineprivate

Definition at line 1089 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate__impl().

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::Vector().

Here is the call graph for this function:

◆ fill_or_generate__impl() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate__impl ( const T &  gen,
traits::true_type   
)
inlineprivate

Definition at line 1094 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and Rcpp::Vector< RTYPE, StoragePolicy >::end().

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate().

Here is the call graph for this function:

◆ fill_or_generate__impl() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate__impl ( const T &  t,
traits::false_type   
)
inlineprivate

Definition at line 1101 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::fill().

Here is the call graph for this function:

◆ findName()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
int Rcpp::Vector< RTYPE, StoragePolicy >::findName ( const std::string &  name) const
inline

Definition at line 597 of file Vector.h.

References Rcpp::NamesProxyPolicy< Vector< RTYPE, PreserveStorage > >::names(), RCPP_GET_NAMES, and Rcpp::stop().

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

Here is the call graph for this function:

◆ get_na()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
static stored_type Rcpp::Vector< RTYPE, StoragePolicy >::get_na ( )
inlinestatic

Definition at line 252 of file Vector.h.

◆ import()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename InputIterator >
static Vector Rcpp::Vector< RTYPE, StoragePolicy >::import ( InputIterator  first,
InputIterator  last 
)
inlinestatic

Definition at line 440 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::assign().

Here is the call graph for this function:

◆ import_expression()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::import_expression ( const T &  other,
R_xlen_t  n 
)
inlineprivate

Definition at line 1083 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and RCPP_LOOP_UNROLL.

Here is the call graph for this function:

◆ import_sugar_expression() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<bool NA, typename VEC >
void Rcpp::Vector< RTYPE, StoragePolicy >::import_sugar_expression ( const Rcpp::VectorBase< RTYPE, NA, VEC > &  other,
traits::false_type   
)
inlineprivate

◆ import_sugar_expression() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<bool NA, typename VEC >
void Rcpp::Vector< RTYPE, StoragePolicy >::import_sugar_expression ( const Rcpp::VectorBase< RTYPE, NA, VEC > &  other,
traits::true_type   
)
inlineprivate

Definition at line 1076 of file Vector.h.

References DEMANGLE, Rcpp::VectorBase< RTYPE, na, VECTOR >::get_ref(), Rcpp::NA, and RCPP_DEBUG_4.

Here is the call graph for this function:

◆ import_transform()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename InputIterator , typename F >
static Vector Rcpp::Vector< RTYPE, StoragePolicy >::import_transform ( InputIterator  first,
InputIterator  last,
f 
)
inlinestatic

Definition at line 447 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::Vector().

Here is the call graph for this function:

◆ init()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::init ( )
inlineprotected

◆ insert() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
iterator Rcpp::Vector< RTYPE, StoragePolicy >::insert ( int  position,
const T &  object 
)
inline

◆ insert() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
iterator Rcpp::Vector< RTYPE, StoragePolicy >::insert ( iterator  position,
const T &  object 
)
inline

Definition at line 479 of file Vector.h.

References Rcpp::internal::element_converter< RTYPE >::get(), and Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl().

Here is the call graph for this function:

◆ insert__impl() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl ( iterator  position,
const stored_type object,
traits::false_type   
)
inlineprivate

◆ insert__impl() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl ( iterator  position,
const stored_type object_,
traits::true_type   
)
inlineprivate

◆ is_na()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
static bool Rcpp::Vector< RTYPE, StoragePolicy >::is_na ( stored_type  x)
inlinestatic

Definition at line 255 of file Vector.h.

◆ length()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
R_xlen_t Rcpp::Vector< RTYPE, StoragePolicy >::length ( ) const
inline

the length of the vector, uses Rf_xlength

Definition at line 269 of file Vector.h.

◆ offset() [1/3]

◆ offset() [2/3]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
R_xlen_t Rcpp::Vector< RTYPE, StoragePolicy >::offset ( const R_xlen_t &  i) const
inline

one dimensional offset doing bounds checking to ensure it is valid

Definition at line 303 of file Vector.h.

◆ offset() [3/3]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
R_xlen_t Rcpp::Vector< RTYPE, StoragePolicy >::offset ( const std::string &  name) const
inline

Definition at line 311 of file Vector.h.

References Rcpp::NamesProxyPolicy< Vector< RTYPE, PreserveStorage > >::names(), RCPP_GET_NAMES, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ operator RObject()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Vector< RTYPE, StoragePolicy >::operator RObject ( ) const
inline

Definition at line 379 of file Vector.h.

◆ operator()() [1/6]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Proxy Rcpp::Vector< RTYPE, StoragePolicy >::operator() ( const size_t &  i)
inline

Definition at line 344 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ operator()() [2/6]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_Proxy Rcpp::Vector< RTYPE, StoragePolicy >::operator() ( const size_t &  i) const
inline

Definition at line 347 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ operator()() [3/6]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Proxy Rcpp::Vector< RTYPE, StoragePolicy >::operator() ( const size_t &  i,
const size_t &  j 
)
inline

Definition at line 358 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ operator()() [4/6]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_Proxy Rcpp::Vector< RTYPE, StoragePolicy >::operator() ( const size_t &  i,
const size_t &  j 
) const
inline

Definition at line 361 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache, and Rcpp::Vector< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ operator()() [5/6]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
NameProxy Rcpp::Vector< RTYPE, StoragePolicy >::operator() ( const std::string &  name)
inline

Definition at line 368 of file Vector.h.

◆ operator()() [6/6]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
NameProxy Rcpp::Vector< RTYPE, StoragePolicy >::operator() ( const std::string &  name) const
inline

Definition at line 375 of file Vector.h.

◆ operator+=() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename EXPR_VEC >
Vector& Rcpp::Vector< RTYPE, StoragePolicy >::operator+= ( const VectorBase< RTYPE, false, EXPR_VEC > &  rhs)
inline

◆ operator+=() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename EXPR_VEC >
Vector& Rcpp::Vector< RTYPE, StoragePolicy >::operator+= ( const VectorBase< RTYPE, true, EXPR_VEC > &  rhs)
inline

◆ operator=() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
Vector& Rcpp::Vector< RTYPE, StoragePolicy >::operator= ( const T &  x)
inline

Definition at line 247 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::assign_object().

Here is the call graph for this function:

◆ operator=() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Vector& Rcpp::Vector< RTYPE, StoragePolicy >::operator= ( const Vector< RTYPE, StoragePolicy > &  rhs)
inline

Definition at line 68 of file Vector.h.

Referenced by Rcpp::newDatetimeVector::operator=(), and Rcpp::newDateVector::operator=().

◆ operator[]() [1/7]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Indexer Rcpp::Vector< RTYPE, StoragePolicy >::operator[] ( const Range range)
inline

Definition at line 547 of file Vector.h.

References Rcpp::range().

Here is the call graph for this function:

◆ operator[]() [2/7]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
NameProxy Rcpp::Vector< RTYPE, StoragePolicy >::operator[] ( const std::string &  name)
inline

Definition at line 365 of file Vector.h.

◆ operator[]() [3/7]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
NameProxy Rcpp::Vector< RTYPE, StoragePolicy >::operator[] ( const std::string &  name) const
inline

Definition at line 372 of file Vector.h.

◆ operator[]() [4/7]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy<RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T> Rcpp::Vector< RTYPE, StoragePolicy >::operator[] ( const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &  rhs)
inline

Definition at line 386 of file Vector.h.

◆ operator[]() [5/7]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<int RHS_RTYPE, bool RHS_NA, typename RHS_T >
const SubsetProxy<RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T> Rcpp::Vector< RTYPE, StoragePolicy >::operator[] ( const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &  rhs) const
inline

Definition at line 395 of file Vector.h.

◆ operator[]() [6/7]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Proxy Rcpp::Vector< RTYPE, StoragePolicy >::operator[] ( R_xlen_t  i)
inline

Definition at line 341 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache.

◆ operator[]() [7/7]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_Proxy Rcpp::Vector< RTYPE, StoragePolicy >::operator[] ( R_xlen_t  i) const
inline

Definition at line 342 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache.

◆ push_back() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::push_back ( const T &  object)
inline

◆ push_back() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::push_back ( const T &  object,
const std::string &  name 
)
inline

Definition at line 459 of file Vector.h.

References Rcpp::internal::element_converter< RTYPE >::get(), and Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl().

Here is the call graph for this function:

◆ push_back__impl() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl ( const stored_type object,
traits::false_type   
)
inlineprivate

◆ push_back__impl() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl ( const stored_type object,
traits::true_type   
)
inlineprivate

◆ push_back_name__impl() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl ( const stored_type object,
const std::string &  name,
traits::false_type   
)
inlineprivate

◆ push_back_name__impl() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl ( const stored_type object,
const std::string &  name,
traits::true_type   
)
inlineprivate

◆ push_front() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::push_front ( const T &  object)
inline

Definition at line 466 of file Vector.h.

References Rcpp::internal::element_converter< RTYPE >::get(), and Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl().

Here is the call graph for this function:

◆ push_front() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename T >
void Rcpp::Vector< RTYPE, StoragePolicy >::push_front ( const T &  object,
const std::string &  name 
)
inline

Definition at line 472 of file Vector.h.

References Rcpp::internal::element_converter< RTYPE >::get(), and Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl().

Here is the call graph for this function:

◆ push_front__impl() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl ( const stored_type object,
traits::false_type   
)
inlineprivate

◆ push_front__impl() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl ( const stored_type object,
traits::true_type   
)
inlineprivate

◆ push_front_name__impl() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl ( const stored_type object,
const std::string &  name,
traits::false_type   
)
inlineprivate

◆ push_front_name__impl() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl ( const stored_type object,
const std::string &  name,
traits::true_type   
)
inlineprivate

◆ replace_element()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
static void Rcpp::Vector< RTYPE, StoragePolicy >::replace_element ( iterator  it,
SEXP  names,
R_xlen_t  index,
const U &  u 
)
inlinestatic

◆ replace_element__dispatch() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
static void Rcpp::Vector< RTYPE, StoragePolicy >::replace_element__dispatch ( traits::false_type  ,
iterator  it,
SEXP  names,
R_xlen_t  index,
const U &  u 
)
inlinestatic

Definition at line 520 of file Vector.h.

References Rcpp::internal::element_converter< RTYPE >::get().

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::replace_element().

Here is the call graph for this function:

◆ replace_element__dispatch() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
static void Rcpp::Vector< RTYPE, StoragePolicy >::replace_element__dispatch ( traits::true_type  ,
iterator  it,
SEXP  names,
R_xlen_t  index,
const U &  u 
)
inlinestatic

◆ replace_element__dispatch__isArgument() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
static void Rcpp::Vector< RTYPE, StoragePolicy >::replace_element__dispatch__isArgument ( traits::false_type  ,
iterator  it,
SEXP  names,
R_xlen_t  index,
const U &  u 
)
inlinestatic

◆ replace_element__dispatch__isArgument() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
static void Rcpp::Vector< RTYPE, StoragePolicy >::replace_element__dispatch__isArgument ( traits::true_type  ,
iterator  it,
SEXP  names,
R_xlen_t  index,
const U &  u 
)
inlinestatic

Definition at line 538 of file Vector.h.

References DEMANGLE, Rcpp::NamesProxyPolicy< Vector< RTYPE, PreserveStorage > >::names(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ size()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
R_xlen_t Rcpp::Vector< RTYPE, StoragePolicy >::size ( ) const
inline

alias of length

Examples
ConvolveBenchmarks/convolve3_cpp.cpp, and ConvolveBenchmarks/convolve4_cpp.cpp.

Definition at line 276 of file Vector.h.

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::assign_sugar_expression(), Rcpp::Vector< RTYPE, StoragePolicy >::cend(), convolve(), convolve10cpp(), convolve11cpp(), convolve12cpp(), convolve14cpp(), convolve3cpp(), convolve4cpp(), convolve5cpp(), convolve8cpp(), convolve9cpp(), Rcpp::sugar::EmpiricalSample(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl(), fastLm(), Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch(), Rcpp::DataFrame_Impl< StoragePolicy >::from_list(), Rcpp::sugar::Cummax< RTYPE, NA, T >::get(), Rcpp::sugar::Cummin< RTYPE, NA, T >::get(), Rcpp::sugar::Cumprod< RTYPE, NA, T >::get(), Rcpp::sugar::Cumsum< RTYPE, NA, T >::get(), Rcpp::sugar::Mean< RTYPE, NA, T >::get(), Rcpp::sugar::Mean< CPLXSXP, NA, T >::get(), Rcpp::sugar::Mean< LGLSXP, NA, T >::get(), Rcpp::sugar::Mean< INTSXP, NA, T >::get(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices(), Rcpp::newDateVector::getDates(), Rcpp::newDatetimeVector::getDatetimes(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), lapplyCpp(), Rcpp::sugar::IndexHash< RTYPE >::lookup(), Rcpp::sugar::Normalize(), Rcpp::Vector< RTYPE, StoragePolicy >::offset(), Rcpp::Vector< RTYPE, StoragePolicy >::operator+=(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator=(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::sample(), Rcpp::sugar::SampleNoReplace(), Rcpp::sugar::SampleReplace(), Rcpp::ListOf< T >::size(), Rcpp::Vector< RTYPE, StoragePolicy >::sort(), Rcpp::trimws(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), and Rcpp::sugar::WalkerSample().

◆ sort()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Vector& Rcpp::Vector< RTYPE, StoragePolicy >::sort ( bool  decreasing = false)
inline

Definition at line 402 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ update()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
void Rcpp::Vector< RTYPE, StoragePolicy >::update ( SEXP  )
inline

Definition at line 509 of file Vector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::cache.

Member Data Documentation

◆ cache


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