Rcpp Version 1.0.9
|
#include <Subsetter.h>
Public Member Functions | |
SubsetProxy (LHS_t &lhs_, const RHS_t &rhs_) | |
SubsetProxy (const SubsetProxy &other) | |
template<int OtherRTYPE, template< class > class OtherStoragePolicy> | |
SubsetProxy & | operator= (const Vector< OtherRTYPE, OtherStoragePolicy > &other) |
SubsetProxy & | operator= (double other) |
SubsetProxy & | operator= (int other) |
SubsetProxy & | operator= (const char *other) |
SubsetProxy & | operator= (bool other) |
template<int RTYPE_OTHER, template< class > class StoragePolicyOther, int RHS_RTYPE_OTHER, bool RHS_NA_OTHER, typename RHS_T_OTHER > | |
SubsetProxy & | operator= (const SubsetProxy< RTYPE_OTHER, StoragePolicyOther, RHS_RTYPE_OTHER, RHS_NA_OTHER, RHS_T_OTHER > &other) |
SubsetProxy & | operator= (const SubsetProxy &other) |
operator Vector< RTYPE, StoragePolicy > () const | |
operator SEXP () const | |
Private Types | |
typedef Vector< RTYPE, StoragePolicy > | LHS_t |
typedef Vector< RHS_RTYPE, StoragePolicy > | RHS_t |
Private Member Functions | |
template<typename IDX > | |
void | check_indices (IDX *x, R_xlen_t n, R_xlen_t size) |
void | get_indices (traits::identity< traits::int2type< INTSXP > > t) |
void | get_indices (traits::identity< traits::int2type< REALSXP > > t) |
void | get_indices (traits::identity< traits::int2type< STRSXP > > t) |
void | get_indices (traits::identity< traits::int2type< LGLSXP > > t) |
Vector< RTYPE, StoragePolicy > | get_vec () const |
Private Attributes | |
LHS_t & | lhs |
const RHS_t & | rhs |
R_xlen_t | lhs_n |
R_xlen_t | rhs_n |
std::vector< R_xlen_t > | indices |
R_xlen_t | indices_n |
Definition at line 33 of file Subsetter.h.
|
private |
Definition at line 35 of file Subsetter.h.
|
private |
Definition at line 36 of file Subsetter.h.
|
inline |
Definition at line 40 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices().
|
inline |
Definition at line 45 of file Subsetter.h.
|
inlineprivate |
Definition at line 138 of file Subsetter.h.
References Rcpp::algorithm::max(), and Rcpp::stop().
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices().
|
inlineprivate |
Definition at line 153 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::check_indices(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs, and Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs_n.
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::SubsetProxy().
|
inlineprivate |
Definition at line 191 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs_n, and Rcpp::stop().
|
inlineprivate |
Definition at line 163 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::check_indices(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs_n, and Rcpp::Vector< RTYPE, StoragePolicy >::size().
|
inlineprivate |
Definition at line 176 of file Subsetter.h.
References Rcpp::find(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs_n, Rcpp::match(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs_n, and Rcpp::stop().
|
inlineprivate |
Definition at line 208 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs, and Rcpp::no_init().
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator SEXP(), and Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator Vector< RTYPE, StoragePolicy >().
|
inline |
Definition at line 130 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_vec(), and Rcpp::wrap().
|
inline |
Definition at line 126 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_vec().
|
inline |
|
inline |
|
inline |
Definition at line 110 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs, and Rcpp::stop().
|
inline |
Definition at line 103 of file Subsetter.h.
|
inline |
Definition at line 55 of file Subsetter.h.
References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n, Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs, Rcpp::Vector< RTYPE, StoragePolicy >::size(), and Rcpp::stop().
|
inline |
|
inline |
|
private |
Definition at line 230 of file Subsetter.h.
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_vec(), and Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator=().
|
private |
Definition at line 233 of file Subsetter.h.
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_vec(), and Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator=().
|
private |
Definition at line 225 of file Subsetter.h.
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices(), Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_vec(), and Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator=().
|
private |
Definition at line 227 of file Subsetter.h.
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices().
|
private |
Definition at line 226 of file Subsetter.h.
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices().
|
private |
Definition at line 228 of file Subsetter.h.
Referenced by Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices().