Rcpp Version 1.1.2
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_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 get_indices(), lhs, lhs_n, rhs, and rhs_n.

Referenced by operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), and SubsetProxy().

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.

References indices, indices_n, lhs, lhs_n, rhs, rhs_n, and SubsetProxy().

Here is the call graph for this function:

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 137 of file Subsetter.h.

References Rcpp::stop().

Referenced by get_indices(), and get_indices().

Here is the call graph for this function:

◆ get_indices() [1/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< INTSXP > > t)
inlineprivate

Definition at line 150 of file Subsetter.h.

References check_indices(), indices, indices_n, lhs_n, rhs, and rhs_n.

Referenced by SubsetProxy().

Here is the call graph for this function:

◆ 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

Definition at line 188 of file Subsetter.h.

References indices, indices_n, lhs_n, rhs, rhs_n, and Rcpp::stop().

Here is the call graph for this function:

◆ get_indices() [3/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< REALSXP > > t)
inlineprivate

Definition at line 160 of file Subsetter.h.

References check_indices(), indices, indices_n, lhs_n, rhs, and rhs_n.

Here is the call graph for this function:

◆ get_indices() [4/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< STRSXP > > t)
inlineprivate

Definition at line 173 of file Subsetter.h.

References indices, indices_n, lhs, lhs_n, Rcpp::match(), RCPP_STRING_PTR, rhs, rhs_n, and Rcpp::stop().

Here is the call graph for this function:

◆ 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

Definition at line 205 of file Subsetter.h.

References indices, indices_n, lhs, and Rcpp::no_init().

Referenced by operator SEXP(), and operator Vector< RTYPE, StoragePolicy >().

Here is the call graph for this function:

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

Definition at line 95 of file Subsetter.h.

References indices, indices_n, lhs, and SubsetProxy().

Here is the call graph for this function:

◆ 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

Definition at line 88 of file Subsetter.h.

References indices, indices_n, lhs, and SubsetProxy().

Here is the call graph for this function:

◆ 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

Definition at line 110 of file Subsetter.h.

References indices, indices_n, lhs, Rcpp::stop(), and SubsetProxy().

Here is the call graph for this function:

◆ 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 SubsetProxy().

Here is the call graph for this function:

◆ 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

Definition at line 55 of file Subsetter.h.

References indices, indices_n, lhs, Rcpp::Vector< RTYPE, StoragePolicy >::size(), Rcpp::stop(), and SubsetProxy().

Here is the call graph for this function:

◆ 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

Definition at line 74 of file Subsetter.h.

References indices, indices_n, lhs, and SubsetProxy().

Here is the call graph for this function:

◆ 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

Definition at line 81 of file Subsetter.h.

References indices, indices_n, lhs, and SubsetProxy().

Here is the call graph for this function:

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: