Rcpp Version 0.9.10
Rcpp::S4 Class Reference

#include <S4.h>

Inheritance diagram for Rcpp::S4:
Collaboration diagram for Rcpp::S4:

List of all members.

Public Member Functions

 S4 ()
 S4 (SEXP x)
 S4 (const S4 &other)
 S4 (const RObject::SlotProxy &proxy)
 S4 (const RObject::AttributeProxy &proxy)
S4operator= (const S4 &other)
S4operator= (SEXP other)
 S4 (const std::string &klass)
bool is (const std::string &clazz)

Private Member Functions

void set (SEXP x)

Detailed Description

S4 object

Definition at line 33 of file S4.h.


Constructor & Destructor Documentation

Rcpp::S4::S4 ( )

Definition at line 28 of file S4.cpp.

Rcpp::S4::S4 ( SEXP  x)

checks that x is an S4 object and wrap it.

Parameters:
xmust be an S4 object

Definition at line 30 of file S4.cpp.

References x.

Rcpp::S4::S4 ( const S4 other)

copy constructor

Parameters:
otherother S4 object

Definition at line 34 of file S4.cpp.

References Rcpp::RObject::asSexp(), and Rcpp::RObject::setSEXP().

Here is the call graph for this function:

Rcpp::S4::S4 ( const RObject::SlotProxy proxy)

Definition at line 38 of file S4.cpp.

Rcpp::S4::S4 ( const RObject::AttributeProxy proxy)

Definition at line 41 of file S4.cpp.

Rcpp::S4::S4 ( const std::string &  klass)

Creates an S4 object of the requested class.

Parameters:
klassname of the target S4 class
Exceptions:
not_s4if klass does not map to a known S4 class

Definition at line 55 of file S4.cpp.

References PROTECT(), and Rcpp::RObject::setSEXP().

Here is the call graph for this function:


Member Function Documentation

bool Rcpp::S4::is ( const std::string &  clazz)

Indicates if this object is an instance of the given S4 class

Definition at line 65 of file S4.cpp.

References Rcpp::any(), and Rcpp::RObject::attr().

Here is the call graph for this function:

S4 & Rcpp::S4::operator= ( SEXP  other)

Assignement operator. Set this SEXP to the given SEXP

Reimplemented from Rcpp::RObject.

Reimplemented in Rcpp::Reference.

Definition at line 50 of file S4.cpp.

S4 & Rcpp::S4::operator= ( const S4 other)

assignment operator.

Definition at line 45 of file S4.cpp.

References Rcpp::RObject::asSexp(), and Rcpp::RObject::setSEXP().

Here is the call graph for this function:

void Rcpp::S4::set ( SEXP  x) [private]

Reimplemented in Rcpp::Reference.

Definition at line 97 of file S4.cpp.

References Rcpp::RObject::setSEXP().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines