#include <RcppSexp.h>
Public Member Functions | |
RcppSexp (SEXP sexp, int numprot=0) | |
RcppSexp () | |
RcppSexp (const double &v) | |
RcppSexp (const int &v) | |
RcppSexp (const std::string &v) | |
RcppSexp (const std::vector< int > &v) | |
RcppSexp (const std::vector< double > &v) | |
RcppSexp (const std::vector< std::string > &v) | |
~RcppSexp () | |
double | asDouble () const |
int | asInt () const |
std::string | asStdString () const |
std::vector< int > | asStdVectorInt () const |
std::vector< double > | asStdVectorDouble () const |
std::vector< std::string > | asStdVectorString () const |
SEXP | asSexp () const |
Private Attributes | |
SEXP | m_sexp |
Definition at line 27 of file RcppSexp.h.
RcppSexp::RcppSexp | ( | SEXP | sexp, | |
int | numprot = 0 | |||
) | [inline] |
Definition at line 29 of file RcppSexp.h.
RcppSexp::RcppSexp | ( | ) | [inline] |
Definition at line 30 of file RcppSexp.h.
RcppSexp::RcppSexp | ( | const double & | v | ) |
Definition at line 24 of file RcppSexp.cpp.
RcppSexp::RcppSexp | ( | const int & | v | ) |
Definition at line 31 of file RcppSexp.cpp.
RcppSexp::RcppSexp | ( | const std::string & | v | ) |
Definition at line 38 of file RcppSexp.cpp.
RcppSexp::RcppSexp | ( | const std::vector< int > & | v | ) |
Definition at line 45 of file RcppSexp.cpp.
RcppSexp::RcppSexp | ( | const std::vector< double > & | v | ) |
Definition at line 55 of file RcppSexp.cpp.
RcppSexp::RcppSexp | ( | const std::vector< std::string > & | v | ) |
Definition at line 65 of file RcppSexp.cpp.
RcppSexp::~RcppSexp | ( | ) |
Definition at line 75 of file RcppSexp.cpp.
double RcppSexp::asDouble | ( | ) | const |
Definition at line 80 of file RcppSexp.cpp.
References m_sexp.
int RcppSexp::asInt | ( | ) | const |
Definition at line 97 of file RcppSexp.cpp.
References m_sexp.
SEXP RcppSexp::asSexp | ( | ) | const |
Definition at line 124 of file RcppSexp.cpp.
References m_sexp.
std::string RcppSexp::asStdString | ( | ) | const |
Definition at line 114 of file RcppSexp.cpp.
References m_sexp.
std::vector< double > RcppSexp::asStdVectorDouble | ( | ) | const |
Definition at line 144 of file RcppSexp.cpp.
References m_sexp.
std::vector< int > RcppSexp::asStdVectorInt | ( | ) | const |
Definition at line 128 of file RcppSexp.cpp.
References m_sexp.
std::vector< std::string > RcppSexp::asStdVectorString | ( | ) | const |
Definition at line 160 of file RcppSexp.cpp.
References m_sexp.
SEXP RcppSexp::m_sexp [private] |
Definition at line 48 of file RcppSexp.h.
Referenced by asDouble(), asInt(), asSexp(), asStdString(), asStdVectorDouble(), asStdVectorInt(), asStdVectorString(), RcppSexp(), and ~RcppSexp().