Rcpp Version 1.0.14
Loading...
Searching...
No Matches
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, na, VECTOR >
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 ()
 
 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_Toperator[] (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_Toperator[] (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
 
R_xlen_t findName (const std::string &name) const
 
SEXP eval () const
 
SEXP eval (SEXP env) const
 
- Public Member Functions inherited from Rcpp::SlotProxyPolicy< CLASS >
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< CLASS >
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< CLASS >
NamesProxy names ()
 
const_NamesProxy names () const
 
- Public Member Functions inherited from Rcpp::RObjectMethods< Class >
bool isNULL () const
 
int sexp_type () const
 
bool isObject () const
 
bool isS4 () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
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
 

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

intdims () 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 28 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 46 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 42 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 48 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 544 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 47 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 45 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 43 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 41 of file Vector.h.

◆ Storage

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

Definition at line 38 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 49 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 44 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 55 of file Vector.h.

References Rcpp::as(), and 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 63 of file Vector.h.

References Rcpp::as().

Here is the call graph for this function:

◆ Vector() [3/25]

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

Definition at line 71 of file Vector.h.

References Rcpp::as().

Here is the call graph for this function:

◆ 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 77 of file Vector.h.

References Rcpp::as(), and 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 82 of file Vector.h.

References Rcpp::as(), and 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 87 of file Vector.h.

References Rcpp::as(), 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 94 of file Vector.h.

References Rcpp::as(), 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 101 of file Vector.h.

References Rcpp::as(), Rcpp::internal::as(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ Vector() [9/25]

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

Definition at line 107 of file Vector.h.

References Rcpp::as(), Rcpp::internal::as(), and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ 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 113 of file Vector.h.

References Rcpp::as(), 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 122 of file Vector.h.

References Rcpp::as(), 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 128 of file Vector.h.

References Rcpp::as(), 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 145 of file Vector.h.

References Rcpp::as(), and 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 162 of file Vector.h.

References Rcpp::as(), 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 168 of file Vector.h.

References Rcpp::as(), 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 176 of file Vector.h.

References Rcpp::as(), DEMANGLE, and RCPP_DEBUG_2.

Here is the call graph for this function:

◆ 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 183 of file Vector.h.

References Rcpp::as(), 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 192 of file Vector.h.

References Rcpp::as(), 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 201 of file Vector.h.

References Rcpp::as(), 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 210 of file Vector.h.

References Rcpp::as(), 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>
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 217 of file Vector.h.

References Rcpp::as(), 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>
Rcpp::Vector< RTYPE, StoragePolicy >::Vector ( InputIterator  first,
InputIterator  last,
Func  func 
)
inline

Definition at line 225 of file Vector.h.

References Rcpp::as(), 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>
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 232 of file Vector.h.

References Rcpp::as(), 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 429 of file Vector.h.

References Rcpp::as(), and 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 1058 of file Vector.h.

References Rcpp::as(), and 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 1052 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 1037 of file Vector.h.

References Rcpp::as(), 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 350 of file Vector.h.

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

Referenced by Rcpp::attributes::SourceFileAttributesParser::parseSignature().

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 353 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 333 of file Vector.h.

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

Referenced by Rcpp::ListOf< T >::begin(), Rcpp::Matrix< RTYPE, StoragePolicy >::begin(), Rcpp::ListOf< T >::begin(), Rcpp::Matrix< RTYPE, StoragePolicy >::begin(), Rcpp::Matrix< RTYPE, StoragePolicy >::cbegin(), compileAttributes(), class_< Class >::complete(), Rcpp::Module::complete(), convolve10cpp(), convolve12cpp(), convolve4cpp(), convolve8cpp(), convolve9cpp(), Rcpp::exception::copy_stack_trace_to_r(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch(), Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch(), Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::import_expression(), Rcpp::Matrix< RTYPE, StoragePolicy >::import_matrix_expression(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), Rcpp::ListOf< T >::ListOf(), Rcpp::ListOf< T >::ListOf(), Rcpp::sugar::IndexHash< RTYPE >::lookup(), Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix(), Rcpp::Vector< RTYPE, StoragePolicy >::operator+=(), Rcpp::Vector< RTYPE, StoragePolicy >::operator+=(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::sugar::SampleNoReplace(), Rcpp::sugar::SampleNoReplace(), Rcpp::sugar::SampleReplace(), Rcpp::sugar::SampleReplace(), Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::SelfMatch(), Rcpp::sugar::Table< RTYPE, TABLE_T >::Table(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), 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 335 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 337 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 338 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 585 of file Vector.h.

References Rcpp::as(), Rcpp::NamesProxyPolicy< CLASS >::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]

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

Definition at line 334 of file Vector.h.

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

Referenced by Rcpp::Matrix< RTYPE, StoragePolicy >::cend(), compileAttributes(), Rcpp::ListOf< T >::end(), Rcpp::Matrix< RTYPE, StoragePolicy >::end(), Rcpp::ListOf< T >::end(), Rcpp::Matrix< RTYPE, StoragePolicy >::end(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch(), Rcpp::Vector< RTYPE, StoragePolicy >::fill_or_generate__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), Rcpp::ListOf< T >::ListOf(), Rcpp::ListOf< T >::ListOf(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::SelfMatch(), Rcpp::sugar::Table< RTYPE, TABLE_T >::Table(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), and Rcpp::Vector< RTYPE, StoragePolicy >::Vector().

Here is the call graph for this function:

◆ end() [2/2]

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

Definition at line 336 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 499 of file Vector.h.

References Rcpp::as(), 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

◆ 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 504 of file Vector.h.

References Rcpp::as(), and 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 495 of file Vector.h.

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

Here is the call graph for this function:

◆ erase_range__impl()

◆ erase_single__impl()

◆ eval() [1/2]

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

Definition at line 1177 of file Vector.h.

References Rcpp::as(), and Rcpp::Rcpp_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 1181 of file Vector.h.

References Rcpp::Rcpp_eval().

Here is the call graph for this function:

◆ fill()

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

◆ 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 1100 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>
R_xlen_t Rcpp::Vector< RTYPE, StoragePolicy >::findName ( const std::string &  name) const
inline

Definition at line 596 of file Vector.h.

References Rcpp::as(), Rcpp::NamesProxyPolicy< CLASS >::names(), RCPP_GET_NAMES, and Rcpp::stop().

Referenced by Rcpp::ListOf< T >::operator[](), and 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 251 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 439 of file Vector.h.

References Rcpp::as(), and 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 1082 of file Vector.h.

References Rcpp::as(), 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

Definition at line 1066 of file Vector.h.

References Rcpp::as(), DEMANGLE, Rcpp::NA, and RCPP_DEBUG_4.

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

Here is the call graph for this function:

◆ 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 1075 of file Vector.h.

References Rcpp::as(), DEMANGLE, Rcpp::NA, and RCPP_DEBUG_4.

Here is the call graph for this function:

◆ import_transform()

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

Definition at line 446 of file Vector.h.

References Rcpp::as(), and 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 478 of file Vector.h.

References Rcpp::as(), 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]

◆ 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 254 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 268 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 302 of file Vector.h.

References Rcpp::as().

Here is the call graph for this function:

◆ 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 310 of file Vector.h.

References Rcpp::as(), Rcpp::NamesProxyPolicy< CLASS >::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 378 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 343 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 346 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 357 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 360 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 367 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 374 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 246 of file Vector.h.

References Rcpp::as(), and 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 67 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 546 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 364 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 371 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 385 of file Vector.h.

References Rcpp::as().

Here is the call graph for this function:

◆ 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 394 of file Vector.h.

References Rcpp::as().

Here is the call graph for this function:

◆ 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 340 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 341 of file Vector.h.

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

◆ push_back() [1/2]

◆ 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 458 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 465 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 471 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

Definition at line 513 of file Vector.h.

References Rcpp::as(), Rcpp::NamesProxyPolicy< CLASS >::names(), and Rcpp::Vector< RTYPE, StoragePolicy >::replace_element__dispatch().

Here is the call graph for this function:

◆ 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 519 of file Vector.h.

References Rcpp::as(), and 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

Definition at line 524 of file Vector.h.

References Rcpp::as(), Rcpp::NamesProxyPolicy< CLASS >::names(), and Rcpp::Vector< RTYPE, StoragePolicy >::replace_element__dispatch__isArgument().

Here is the call graph for this function:

◆ 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 537 of file Vector.h.

References Rcpp::as(), DEMANGLE, Rcpp::NamesProxyPolicy< CLASS >::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 275 of file Vector.h.

Referenced by Rcpp::Vector< RTYPE, StoragePolicy >::assign_sugar_expression(), Rcpp::Vector< RTYPE, StoragePolicy >::cend(), Rcpp::traits::proxy_cache< RTYPE, StoragePolicy >::check_index(), Rcpp::Module::class_names(), Rcpp::Module::classes_info(), class_< Class >::complete(), Rcpp::Module::complete(), convolve(), convolve10cpp(), convolve12cpp(), convolve3cpp(), convolve4cpp(), convolve8cpp(), convolve9cpp(), Rcpp::sugar::EmpiricalSample(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_range__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::erase_single__impl(), class_< Class >::fields(), Rcpp::Vector< RTYPE, StoragePolicy >::fill__dispatch(), Rcpp::DataFrame_Impl< StoragePolicy >::from_list(), Rcpp::Module::functions_arity(), Rcpp::Module::functions_names(), 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::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices(), class_< Class >::getConstructors(), Rcpp::newDateVector::getDates(), Rcpp::newDatetimeVector::getDatetimes(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::insert__impl(), Rcpp::sugar::IndexHash< RTYPE >::lookup(), class_< Class >::method_names(), class_< Class >::methods_arity(), class_< Class >::methods_voidness(), Rcpp::sugar::na_omit_impl(), Rcpp::sugar::na_omit_impl(), Rcpp::sugar::Normalize(), Rcpp::Vector< RTYPE, StoragePolicy >::offset(), Rcpp::sugar::Table< RTYPE, TABLE_T >::operator IntegerVector(), Rcpp::sugar::Range< RTYPE, false, T >::operator Vector< RTYPE >(), Rcpp::Vector< RTYPE, StoragePolicy >::operator+=(), Rcpp::Vector< RTYPE, StoragePolicy >::operator+=(), Rcpp::attributes::SourceFileAttributesParser::parseAttribute(), Rcpp::attributes::SourceFileAttributesParser::parseSignature(), class_< Class >::property_classes(), class_< Class >::property_names(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_back_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::Vector< RTYPE, StoragePolicy >::push_front_name__impl(), Rcpp::sample(), Rcpp::sample(), Rcpp::sugar::SampleNoReplace(), Rcpp::sugar::SampleReplace(), Rcpp::ListOf< T >::size(), Rcpp::Vector< RTYPE, StoragePolicy >::sort(), Rcpp::attributes::SourceFileAttributesParser::SourceFileAttributesParser(), Rcpp::trimws(), Rcpp::trimws(), Rcpp::traits::r_vector_cache< RTYPE, StoragePolicy >::update(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), Rcpp::Vector< RTYPE, StoragePolicy >::Vector(), 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 401 of file Vector.h.

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

Referenced by Rcpp::sort_unique().

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 508 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: