42 if( ! ::Rf_isS4(x) )
throw not_s4() ;
46 S4_Impl& operator=( SEXP other ){
47 Storage::set__( other ) ;
57 S4_Impl(
const std::string& klass ){
58 Shield<SEXP> x( R_do_new_object(R_do_MAKE_CLASS(klass.c_str())) );
59 if (!Rf_inherits(x, klass.c_str()))
60 throw S4_creation_error( klass ) ;
67 bool is(
const std::string& clazz)
const ;
73 if( ! ::Rf_isS4(x) )
throw not_s4() ;
77 typedef S4_Impl<PreserveStorage>
S4 ;
#define RCPP_GENERATE_CTOR_ASSIGN(__CLASS__)
RCPP_API_CLASS(DottedPair_Impl)
S4_Impl< PreserveStorage > S4