Rcpp Version 0.10.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
Vector< RTYPE > Class Template Reference

#include <Vector.h>

Inheritance diagram for Vector< RTYPE >:
Collaboration diagram for Vector< RTYPE >:

Classes

class  NamesProxy

Public Types

typedef traits::r_vector_proxy
< RTYPE >::type 
Proxy
typedef
traits::r_vector_const_proxy
< RTYPE >::type 
const_Proxy
typedef
traits::r_vector_name_proxy
< RTYPE >::type 
NameProxy
typedef traits::r_vector_proxy
< RTYPE >::type 
value_type
typedef
traits::r_vector_iterator
< RTYPE >::type 
iterator
typedef
traits::r_vector_const_iterator
< RTYPE >::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, Vector
Indexer

Public Member Functions

 Vector ()
 ~Vector ()
 Vector (const Vector &other)
 Vector (SEXP x)
 Vector (const RObject::SlotProxy &proxy)
 Vector (const RObject::AttributeProxy &proxy)
 Vector (const int &size, const stored_type &u)
 Vector (const std::string &st)
 Vector (const int &siz, stored_type(*gen)(void))
 Vector (const int &size)
 Vector (const Dimension &dims)
template<typename U >
 Vector (const Dimension &dims, const U &u)
template<bool NA, typename VEC >
 Vector (const VectorBase< RTYPE, NA, VEC > &other)
template<typename U >
 Vector (const int &size, const U &u)
template<bool NA, typename T >
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
template<typename U1 >
 Vector (const int &siz, stored_type(*gen)(U1), const U1 &u1)
template<typename U1 , typename U2 >
 Vector (const int &siz, stored_type(*gen)(U1, U2), const U1 &u1, const U2 &u2)
template<typename U1 , typename U2 , typename U3 >
 Vector (const int &siz, stored_type(*gen)(U1, U2, U3), const U1 &u1, const U2 &u2, const U3 &u3)
template<typename InputIterator >
 Vector (InputIterator first, InputIterator last)
template<typename InputIterator >
 Vector (InputIterator first, InputIterator last, int n)
template<typename InputIterator , typename Func >
 Vector (InputIterator first, InputIterator last, Func func)
template<typename InputIterator , typename Func >
 Vector (InputIterator first, InputIterator last, Func func, int n)
Vectoroperator= (const Vector &other)
template<typename T >
Vectoroperator= (const T &x)
internal::ListInitialization
< iterator, init_type
operator= (init_type x)
R_len_t length () const
R_len_t size () const
size_t offset (const size_t &i, const size_t &j) const
size_t offset (const size_t &i) const
R_len_t offset (const std::string &name) const
template<typename U >
void fill (const U &u)
NamesProxy names () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
Proxy operator[] (int i)
const_Proxy operator[] (int i) const
Proxy operator() (const size_t &i)
const_Proxy operator() (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
Vectorsort ()
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_vector ()
void set_sexp (SEXP x)
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
template<>
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
template<>
Vector< REALSXP > & operator+= (const VectorBase< REALSXP, false, EXPR_VEC > &rhs)
template<>
Vector< REALSXP > & operator+= (const VectorBase< REALSXP, true, EXPR_VEC > &rhs)

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, int index, const U &u)
template<typename U >
static void replace_element__dispatch (traits::false_type, iterator it, SEXP names, int index, const U &u)
template<typename U >
static void replace_element__dispatch (traits::true_type, iterator it, SEXP names, int index, const U &u)
template<typename U >
static void replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, int index, const U &u)
template<typename U >
static void replace_element__dispatch__isArgument (traits::true_type, iterator it, SEXP names, int index, const U &u)
static Vector create ()

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, int 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)

Private Attributes

traits::r_vector_cache_type
< RTYPE >::type 
cache

Detailed Description

template<int RTYPE>
class Vector< RTYPE >

Examples:
Misc/ifelseLooped.r, RcppGibbs/timeRNGs.R, and SugarPerformance/sugarBenchmarks.R.

Definition at line 31 of file Vector.h.

Member Typedef Documentation

template<int RTYPE>
typedef traits::r_vector_const_iterator<RTYPE>::type Vector< RTYPE >::const_iterator

Definition at line 44 of file Vector.h.

template<int RTYPE>
typedef traits::r_vector_const_proxy<RTYPE>::type Vector< RTYPE >::const_Proxy

Definition at line 40 of file Vector.h.

template<int RTYPE>
typedef traits::r_vector_element_converter<RTYPE>::type Vector< RTYPE >::converter_type

Definition at line 46 of file Vector.h.

template<int RTYPE>
typedef internal::RangeIndexer<RTYPE,true,Vector> Vector< RTYPE >::Indexer

Definition at line 418 of file Vector.h.

template<int RTYPE>
typedef traits::init_type<RTYPE>::type Vector< RTYPE >::init_type

Definition at line 45 of file Vector.h.

template<int RTYPE>
typedef traits::r_vector_iterator<RTYPE>::type Vector< RTYPE >::iterator

Definition at line 43 of file Vector.h.

template<int RTYPE>
typedef traits::r_vector_name_proxy<RTYPE>::type Vector< RTYPE >::NameProxy

Definition at line 41 of file Vector.h.

template<int RTYPE>
typedef traits::r_vector_proxy<RTYPE>::type Vector< RTYPE >::Proxy

Definition at line 39 of file Vector.h.

template<int RTYPE>
typedef traits::storage_type<RTYPE>::type Vector< RTYPE >::stored_type

Definition at line 47 of file Vector.h.

template<int RTYPE>
typedef traits::r_vector_proxy<RTYPE>::type Vector< RTYPE >::value_type

Definition at line 42 of file Vector.h.

Constructor & Destructor Documentation

template<int RTYPE>
Vector< RTYPE >::Vector ( )

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

Definition at line 28 of file Vector.h.

References Vector< RTYPE >::init(), RCPP_DEBUG, and Vector< RTYPE >::update_vector().

Referenced by Vector< INTSXP >::create(), and Vector< INTSXP >::import_transform().

Here is the call graph for this function:

template<int RTYPE>
Vector< RTYPE >::~Vector ( )

Destructor. Prints some information id debugging is enabled

Definition at line 35 of file Vector.h.

References RCPP_DEBUG_1.

template<int RTYPE>
Vector< RTYPE >::Vector ( const Vector< RTYPE > &  other)

copy constructor. shallow copy of the SEXP

Definition at line 40 of file Vector.h.

References RCPP_DEBUG_2, and Vector< RTYPE >::update_vector().

Here is the call graph for this function:

template<int RTYPE>
Vector< RTYPE >::Vector ( SEXP  x)
inline

Definition at line 68 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::Vector ( const RObject::SlotProxy &  proxy)
inline

Definition at line 72 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::Vector ( const RObject::AttributeProxy &  proxy)
inline

Definition at line 77 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::Vector ( const int &  size,
const stored_type u 
)
inline

Definition at line 81 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::Vector ( const std::string &  st)
inline

Definition at line 86 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::Vector ( const int &  siz,
stored_type(*)(void)  gen 
)
inline

Definition at line 90 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::Vector ( const int &  size)

Definition at line 52 of file Vector.h.

References Vector< RTYPE >::init(), RCPP_DEBUG_3, and Vector< RTYPE >::update_vector().

Here is the call graph for this function:

template<int RTYPE>
Vector< RTYPE >::Vector ( const Dimension &  dims)

Definition at line 59 of file Vector.h.

References Vector< RTYPE >::dims(), Vector< RTYPE >::init(), RCPP_DEBUG_3, sexp_to_name(), and Vector< RTYPE >::update_vector().

Here is the call graph for this function:

template<int RTYPE>
template<typename U >
Vector< RTYPE >::Vector ( const Dimension &  dims,
const U &  u 
)

Definition at line 70 of file Vector.h.

References Vector< RTYPE >::dims(), Vector< RTYPE >::fill(), RCPP_DEBUG_2, and Vector< RTYPE >::update_vector().

Here is the call graph for this function:

template<int RTYPE>
template<bool NA, typename VEC >
Vector< RTYPE >::Vector ( const VectorBase< RTYPE, NA, VEC > &  other)

Definition at line 149 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename U>
Vector< RTYPE >::Vector ( const int &  size,
const U &  u 
)

Definition at line 81 of file Vector.h.

References Vector< RTYPE >::fill_or_generate(), RCPP_DEBUG_2, and Vector< RTYPE >::update_vector().

Here is the call graph for this function:

template<int RTYPE>
template<bool NA, typename T >
Vector< RTYPE >::Vector ( const sugar::SingleLogicalResult< NA, T > &  obj)
template<int RTYPE>
template<typename U1>
Vector< RTYPE >::Vector ( const int &  siz,
stored_type(*)(U1)  gen,
const U1 &  u1 
)

Definition at line 89 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename U1, typename U2 >
Vector< RTYPE >::Vector ( const int &  siz,
stored_type(*)(U1, U2)  gen,
const U1 &  u1,
const U2 &  u2 
)

Definition at line 98 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename U1, typename U2 , typename U3 >
Vector< RTYPE >::Vector ( const int &  siz,
stored_type(*)(U1, U2, U3)  gen,
const U1 &  u1,
const U2 &  u2,
const U3 &  u3 
)

Definition at line 107 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename InputIterator>
Vector< RTYPE >::Vector ( InputIterator  first,
InputIterator  last 
)

Definition at line 116 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename InputIterator>
Vector< RTYPE >::Vector ( InputIterator  first,
InputIterator  last,
int  n 
)

Definition at line 124 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename InputIterator, typename Func >
Vector< RTYPE >::Vector ( InputIterator  first,
InputIterator  last,
Func  func 
)

Definition at line 132 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename InputIterator, typename Func >
Vector< RTYPE >::Vector ( InputIterator  first,
InputIterator  last,
Func  func,
int  n 
)

Definition at line 140 of file Vector.h.

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

Here is the call graph for this function:

template<>
Vector< LGLSXP >::Vector ( const sugar::SingleLogicalResult< NA, T > &  obj)

Definition at line 156 of file Vector.h.

References DEMANGLE, RCPP_DEBUG_2, and Vector< RTYPE >::update_vector().

Here is the call graph for this function:

Member Function Documentation

template<int RTYPE>
template<typename InputIterator >
void Vector< RTYPE >::assign ( InputIterator  first,
InputIterator  last 
)
inline

Definition at line 298 of file Vector.h.

Referenced by Vector< INTSXP >::import().

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

Definition at line 185 of file Vector.h.

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

Definition at line 192 of file Vector.h.

References Rcpp::wrap().

Here is the call graph for this function:

template<int RTYPE>
template<typename T >
void Vector< RTYPE >::assign_sugar_expression ( const T &  x)
inlineprivate

Definition at line 171 of file Vector.h.

References n, Rcpp::wrap(), and x.

Here is the call graph for this function:

template<int RTYPE>
const_iterator Vector< RTYPE >::begin ( ) const
inline

Reimplemented in Matrix< RTYPE >.

Definition at line 254 of file Vector.h.

template<int RTYPE>
bool Vector< RTYPE >::containsElementNamed ( const char *  target) const

Does this vector have an element with the target name

Definition at line 712 of file Vector.h.

References i, n, and RCPP_GET_NAMES.

template<int RTYPE>
static Vector Vector< RTYPE >::create ( )
inlinestatic

Reimplemented in Rcpp::DataFrame.

Definition at line 514 of file Vector.h.

template<int RTYPE>
int* Vector< RTYPE >::dims ( ) const
inlineprotected
template<int RTYPE>
iterator Vector< RTYPE >::end ( )
inline
template<int RTYPE>
const_iterator Vector< RTYPE >::end ( ) const
inline

Reimplemented in Matrix< RTYPE >.

Definition at line 255 of file Vector.h.

template<int RTYPE>
iterator Vector< RTYPE >::erase ( int  position)
inline

Definition at line 360 of file Vector.h.

template<int RTYPE>
iterator Vector< RTYPE >::erase ( iterator  position)
inline

Definition at line 364 of file Vector.h.

template<int RTYPE>
iterator Vector< RTYPE >::erase ( int  first,
int  last 
)
inline

Definition at line 368 of file Vector.h.

template<int RTYPE>
iterator Vector< RTYPE >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 373 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::iterator Vector< RTYPE >::erase_range__impl ( iterator  first,
iterator  last 
)
private

Definition at line 282 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Referenced by Vector< INTSXP >::erase().

Here is the call graph for this function:

template<int RTYPE>
Vector< RTYPE >::iterator Vector< RTYPE >::erase_single__impl ( iterator  position)
private

Definition at line 241 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Referenced by Vector< INTSXP >::erase().

Here is the call graph for this function:

template<int RTYPE>
template<typename U >
void Vector< RTYPE >::fill ( const U &  u)
inline
template<int RTYPE>
template<typename U >
void Vector< RTYPE >::fill__dispatch ( traits::true_type  ,
const U &  u 
)
inlineprivate

Definition at line 508 of file Vector.h.

Referenced by Vector< INTSXP >::fill().

template<int RTYPE>
template<typename U >
void Vector< RTYPE >::fill_dispatch ( traits::false_type  ,
const U &  u 
)
inlineprivate

Definition at line 497 of file Vector.h.

template<int RTYPE>
template<typename T >
void Vector< RTYPE >::fill_or_generate ( const T &  t)
inlineprivate

Definition at line 222 of file Vector.h.

Referenced by Vector< RTYPE >::Vector().

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

Definition at line 228 of file Vector.h.

References end.

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

Definition at line 236 of file Vector.h.

template<int RTYPE>
static stored_type Vector< RTYPE >::get_na ( )
inlinestatic

Definition at line 139 of file Vector.h.

template<int RTYPE>
template<typename InputIterator >
static Vector Vector< RTYPE >::import ( InputIterator  first,
InputIterator  last 
)
inlinestatic

Definition at line 308 of file Vector.h.

template<int RTYPE>
template<typename T >
void Vector< RTYPE >::import_expression ( const T &  other,
int  n 
)
inlineprivate

Definition at line 215 of file Vector.h.

References RCPP_LOOP_UNROLL.

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

Definition at line 199 of file Vector.h.

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

Referenced by Vector< RTYPE >::Vector().

Here is the call graph for this function:

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

Definition at line 208 of file Vector.h.

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

Here is the call graph for this function:

template<int RTYPE>
template<typename InputIterator , typename F >
static Vector Vector< RTYPE >::import_transform ( InputIterator  first,
InputIterator  last,
f 
)
inlinestatic

Definition at line 315 of file Vector.h.

template<int RTYPE>
void Vector< RTYPE >::init ( )
inlineprotected

Definition at line 441 of file Vector.h.

Referenced by Matrix< RTYPE >::Matrix(), and Vector< RTYPE >::Vector().

template<int RTYPE>
template<typename T >
iterator Vector< RTYPE >::insert ( iterator  position,
const T &  object 
)
inline

Definition at line 347 of file Vector.h.

Referenced by compileAttributes().

template<int RTYPE>
template<typename T >
iterator Vector< RTYPE >::insert ( int  position,
const T &  object 
)
inline

Definition at line 354 of file Vector.h.

template<int RTYPE>
Vector< RTYPE >::iterator Vector< RTYPE >::insert__impl ( iterator  position,
const stored_type object,
traits::true_type   
)
private

Definition at line 610 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Referenced by Vector< INTSXP >::insert().

Here is the call graph for this function:

template<int RTYPE>
Vector< RTYPE >::iterator Vector< RTYPE >::insert__impl ( iterator  position,
const stored_type object,
traits::false_type   
)
private

Definition at line 568 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Here is the call graph for this function:

template<int RTYPE>
static bool Vector< RTYPE >::is_na ( stored_type  x)
inlinestatic

Definition at line 140 of file Vector.h.

template<int RTYPE>
R_len_t Vector< RTYPE >::length ( ) const
inline

the length of the vector, uses Rf_length

Definition at line 151 of file Vector.h.

template<int RTYPE>
NamesProxy Vector< RTYPE >::names ( ) const
inline

Definition at line 248 of file Vector.h.

Referenced by lapplyCpp(), and Vector< INTSXP >::offset().

template<int RTYPE>
size_t Vector< RTYPE >::offset ( const size_t &  i,
const size_t &  j 
) const
inline

offset based on the dimensions of this vector

Definition at line 161 of file Vector.h.

Referenced by Vector< INTSXP >::operator()().

template<int RTYPE>
size_t Vector< RTYPE >::offset ( const size_t &  i) const
inline

one dimensional offset doing bounds checking to ensure it is valid

Definition at line 175 of file Vector.h.

template<int RTYPE>
R_len_t Vector< RTYPE >::offset ( const std::string &  name) const
inline

Definition at line 180 of file Vector.h.

template<int RTYPE>
Proxy Vector< RTYPE >::operator() ( const size_t &  i)
inline

Definition at line 260 of file Vector.h.

template<int RTYPE>
const_Proxy Vector< RTYPE >::operator() ( const size_t &  i) const
inline

Definition at line 263 of file Vector.h.

template<int RTYPE>
Proxy Vector< RTYPE >::operator() ( const size_t &  i,
const size_t &  j 
)
inline

Reimplemented in Matrix< RTYPE >.

Definition at line 267 of file Vector.h.

template<int RTYPE>
const_Proxy Vector< RTYPE >::operator() ( const size_t &  i,
const size_t &  j 
) const
inline

Reimplemented in Matrix< RTYPE >.

Definition at line 270 of file Vector.h.

template<int RTYPE>
NameProxy Vector< RTYPE >::operator() ( const std::string &  name)
inline

Definition at line 277 of file Vector.h.

template<int RTYPE>
NameProxy Vector< RTYPE >::operator() ( const std::string &  name) const
inline

Definition at line 284 of file Vector.h.

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

Definition at line 655 of file Vector.h.

References i, and n.

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

Definition at line 673 of file Vector.h.

References i, and n.

template<>
Vector< REALSXP > & Vector< REALSXP >::operator+= ( const VectorBase< REALSXP, false, EXPR_VEC > &  rhs)

Definition at line 688 of file Vector.h.

References i, and n.

template<>
Vector< REALSXP > & Vector< REALSXP >::operator+= ( const VectorBase< REALSXP, true, EXPR_VEC > &  rhs)

Definition at line 700 of file Vector.h.

References i, and n.

template<int RTYPE>
Vector< RTYPE > & Vector< RTYPE >::operator= ( const Vector< RTYPE > &  other)

Assignment operator. Grab the SEXP of the other vector

Definition at line 46 of file Vector.h.

template<int RTYPE>
template<typename T >
Vector< RTYPE > & Vector< RTYPE >::operator= ( const T &  x)

Definition at line 164 of file Vector.h.

template<int RTYPE>
internal::ListInitialization<iterator,init_type> Vector< RTYPE >::operator= ( init_type  x)
inline

Definition at line 142 of file Vector.h.

template<int RTYPE>
Proxy Vector< RTYPE >::operator[] ( int  i)
inline

Reimplemented in Matrix< RTYPE >.

Definition at line 257 of file Vector.h.

template<int RTYPE>
const_Proxy Vector< RTYPE >::operator[] ( int  i) const
inline

Reimplemented in Matrix< RTYPE >.

Definition at line 258 of file Vector.h.

template<int RTYPE>
NameProxy Vector< RTYPE >::operator[] ( const std::string &  name)
inline

Definition at line 274 of file Vector.h.

template<int RTYPE>
NameProxy Vector< RTYPE >::operator[] ( const std::string &  name) const
inline

Definition at line 281 of file Vector.h.

template<int RTYPE>
Indexer Vector< RTYPE >::operator[] ( const Range &  range)
inline

Definition at line 420 of file Vector.h.

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

Definition at line 327 of file Vector.h.

template<int RTYPE>
void Vector< RTYPE >::push_back__impl ( const stored_type object,
traits::true_type   
)
private

Definition at line 351 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Referenced by Vector< INTSXP >::push_back().

Here is the call graph for this function:

template<int RTYPE>
void Vector< RTYPE >::push_back__impl ( const stored_type object,
traits::false_type   
)
private

Definition at line 324 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Here is the call graph for this function:

template<int RTYPE>
void Vector< RTYPE >::push_back_name__impl ( const stored_type object,
const std::string &  name,
traits::true_type   
)
private

Definition at line 411 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Referenced by Vector< INTSXP >::push_back().

Here is the call graph for this function:

template<int RTYPE>
void Vector< RTYPE >::push_back_name__impl ( const stored_type object,
const std::string &  name,
traits::false_type   
)
private

Definition at line 380 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Here is the call graph for this function:

template<int RTYPE>
template<typename T >
void Vector< RTYPE >::push_front ( const T &  object)
inline

Definition at line 334 of file Vector.h.

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

Definition at line 340 of file Vector.h.

template<int RTYPE>
void Vector< RTYPE >::push_front__impl ( const stored_type object,
traits::true_type   
)
private

Definition at line 471 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Referenced by Vector< INTSXP >::push_front().

Here is the call graph for this function:

template<int RTYPE>
void Vector< RTYPE >::push_front__impl ( const stored_type object,
traits::false_type   
)
private

Definition at line 443 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Here is the call graph for this function:

template<int RTYPE>
void Vector< RTYPE >::push_front_name__impl ( const stored_type object,
const std::string &  name,
traits::true_type   
)
private

Definition at line 534 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Referenced by Vector< INTSXP >::push_front().

Here is the call graph for this function:

template<int RTYPE>
void Vector< RTYPE >::push_front_name__impl ( const stored_type object,
const std::string &  name,
traits::false_type   
)
private

Definition at line 501 of file Vector.h.

References Vector< RTYPE >::begin(), end, i, n, PROTECT(), R_NilValue, and RCPP_GET_NAMES.

Here is the call graph for this function:

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

Definition at line 383 of file Vector.h.

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

Definition at line 389 of file Vector.h.

Referenced by Vector< INTSXP >::replace_element().

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

Definition at line 394 of file Vector.h.

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

Definition at line 399 of file Vector.h.

Referenced by Vector< INTSXP >::replace_element__dispatch().

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

Definition at line 407 of file Vector.h.

template<int RTYPE>
void Vector< RTYPE >::set_sexp ( SEXP  x)
inline

Definition at line 414 of file Vector.h.

Referenced by Vector< RTYPE >::NamesProxy::set().

template<int RTYPE>
Vector& Vector< RTYPE >::sort ( )
inline

Definition at line 288 of file Vector.h.

Referenced by Vector< INTSXP >::sort().

template<int RTYPE>
void Vector< RTYPE >::update_vector ( )
inline

Member Data Documentation


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