Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T > Class Template Reference

#include <setdiff.h>

Public Types

typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE

Public Member Functions

 SetDiff (const LHS_T &lhs, const RHS_T &rhs)
Vector< RTYPE > get () const

Private Types

typedef std::unordered_set< STORAGESET
typedef SET::const_iterator ITERATOR

Private Attributes

SET lhs_set
SET rhs_set

Detailed Description

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
class Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >

Definition at line 44 of file setdiff.h.

Member Typedef Documentation

◆ ITERATOR

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
typedef SET::const_iterator Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::ITERATOR
private

Definition at line 65 of file setdiff.h.

◆ SET

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
typedef std::unordered_set<STORAGE> Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::SET
private

Definition at line 64 of file setdiff.h.

◆ STORAGE

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::STORAGE

Definition at line 46 of file setdiff.h.

Constructor & Destructor Documentation

◆ SetDiff()

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::SetDiff ( const LHS_T & lhs,
const RHS_T & rhs )
inline

Definition at line 48 of file setdiff.h.

References Rcpp::sugar::get_const_begin(), Rcpp::sugar::get_const_end(), lhs_set, and rhs_set.

Here is the call graph for this function:

Member Function Documentation

◆ get()

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
Vector< RTYPE > Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::get ( ) const
inline

Definition at line 56 of file setdiff.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), lhs_set, and Rcpp::no_init().

Referenced by Rcpp::setdiff().

Here is the call graph for this function:

Member Data Documentation

◆ lhs_set

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
SET Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::lhs_set
private

Definition at line 66 of file setdiff.h.

Referenced by get(), and SetDiff().

◆ rhs_set

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
SET Rcpp::sugar::SetDiff< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::rhs_set
private

Definition at line 67 of file setdiff.h.

Referenced by SetDiff().


The documentation for this class was generated from the following file:
  • inst/include/Rcpp/sugar/functions/setdiff.h