Rcpp Version 1.0.7
Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > Class Template Reference

#include <Subsetter.h>

Collaboration diagram for Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >:

Public Member Functions

 SubsetProxy (LHS_t &lhs_, const RHS_t &rhs_)
 
 SubsetProxy (const SubsetProxy &other)
 
template<int OtherRTYPE, template< class > class OtherStoragePolicy>
SubsetProxyoperator= (const Vector< OtherRTYPE, OtherStoragePolicy > &other)
 
SubsetProxyoperator= (double other)
 
SubsetProxyoperator= (int other)
 
SubsetProxyoperator= (const char *other)
 
SubsetProxyoperator= (bool other)
 
template<int RTYPE_OTHER, template< class > class StoragePolicyOther, int RHS_RTYPE_OTHER, bool RHS_NA_OTHER, typename RHS_T_OTHER >
SubsetProxyoperator= (const SubsetProxy< RTYPE_OTHER, StoragePolicyOther, RHS_RTYPE_OTHER, RHS_NA_OTHER, RHS_T_OTHER > &other)
 
SubsetProxyoperator= (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_tlhs
 
const RHS_trhs
 
R_xlen_t lhs_n
 
R_xlen_t rhs_n
 
std::vector< R_xlen_t > indices
 
R_xlen_t indices_n
 

Detailed Description

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T>
class Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >

Definition at line 33 of file Subsetter.h.

Member Typedef Documentation

◆ LHS_t

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
typedef Vector<RTYPE, StoragePolicy> Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::LHS_t
private

Definition at line 35 of file Subsetter.h.

◆ RHS_t

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
typedef Vector<RHS_RTYPE, StoragePolicy> Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::RHS_t
private

Definition at line 36 of file Subsetter.h.

Constructor & Destructor Documentation

◆ SubsetProxy() [1/2]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::SubsetProxy ( LHS_t lhs_,
const RHS_t rhs_ 
)
inline

Definition at line 40 of file Subsetter.h.

References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices().

Here is the call graph for this function:

◆ SubsetProxy() [2/2]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::SubsetProxy ( const SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > &  other)
inline

Definition at line 45 of file Subsetter.h.

Member Function Documentation

◆ check_indices()

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
template<typename IDX >
void Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::check_indices ( IDX *  x,
R_xlen_t  n,
R_xlen_t  size 
)
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().

Here is the call graph for this function:

◆ get_indices() [1/4]

◆ get_indices() [2/4]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
void Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_indices ( traits::identity< traits::int2type< LGLSXP > >  t)
inlineprivate

◆ get_indices() [3/4]

◆ get_indices() [4/4]

◆ get_vec()

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
Vector<RTYPE, StoragePolicy> Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_vec ( ) const
inlineprivate

◆ operator SEXP()

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator SEXP ( ) const
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().

Here is the call graph for this function:

◆ operator Vector< RTYPE, StoragePolicy >()

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator Vector< RTYPE, StoragePolicy > ( ) const
inline

Definition at line 126 of file Subsetter.h.

References Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::get_vec().

Here is the call graph for this function:

◆ operator=() [1/7]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator= ( bool  other)
inline

◆ operator=() [2/7]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator= ( const char *  other)
inline

◆ operator=() [3/7]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator= ( const SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > &  other)
inline

◆ operator=() [4/7]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
template<int RTYPE_OTHER, template< class > class StoragePolicyOther, int RHS_RTYPE_OTHER, bool RHS_NA_OTHER, typename RHS_T_OTHER >
SubsetProxy& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator= ( const SubsetProxy< RTYPE_OTHER, StoragePolicyOther, RHS_RTYPE_OTHER, RHS_NA_OTHER, RHS_T_OTHER > &  other)
inline

Definition at line 103 of file Subsetter.h.

◆ operator=() [5/7]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
template<int OtherRTYPE, template< class > class OtherStoragePolicy>
SubsetProxy& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator= ( const Vector< OtherRTYPE, OtherStoragePolicy > &  other)
inline

◆ operator=() [6/7]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator= ( double  other)
inline

◆ operator=() [7/7]

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::operator= ( int  other)
inline

Member Data Documentation

◆ indices

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
std::vector<R_xlen_t> Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices
private

◆ indices_n

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
R_xlen_t Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::indices_n
private

◆ lhs

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
LHS_t& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs
private

◆ lhs_n

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
R_xlen_t Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::lhs_n
private

◆ rhs

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
const RHS_t& Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs
private

◆ rhs_n

template<int RTYPE, template< class > class StoragePolicy, int RHS_RTYPE, bool RHS_NA, typename RHS_T >
R_xlen_t Rcpp::SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T >::rhs_n
private

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