Rcpp Version 1.0.14
Loading...
Searching...
No Matches
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_tindices
 
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

◆ get_indices() [1/4]

◆ get_indices() [2/4]

◆ get_indices() [3/4]

◆ get_indices() [4/4]

◆ get_vec()

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

◆ operator=() [2/7]

◆ operator=() [3/7]

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

References Rcpp::as().

Here is the call graph for this function:

◆ operator=() [5/7]

◆ operator=() [6/7]

◆ operator=() [7/7]

Member Data Documentation

◆ indices

◆ indices_n

◆ lhs

◆ lhs_n

◆ rhs

◆ rhs_n


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