#include <RcppParams.h>
Public Member Functions | |
RcppParams (SEXP params) | |
void | checkNames (char *inputNames[], int len) |
bool | exists (std::string name) |
double | getDoubleValue (std::string name) |
int | getIntValue (std::string name) |
std::string | getStringValue (std::string name) |
bool | getBoolValue (std::string name) |
RcppDate | getDateValue (std::string name) |
RcppDatetime | getDatetimeValue (std::string name) |
Private Attributes | |
std::map< std::string, int > | pmap |
SEXP | _params |
Definition at line 30 of file RcppParams.h.
RcppParams::RcppParams | ( | SEXP | params | ) |
Definition at line 25 of file RcppParams.cpp.
void RcppParams::checkNames | ( | char * | inputNames[], | |
int | len | |||
) |
Definition at line 41 of file RcppParams.cpp.
References pmap.
bool RcppParams::exists | ( | std::string | name | ) |
Definition at line 51 of file RcppParams.cpp.
References pmap.
bool RcppParams::getBoolValue | ( | std::string | name | ) |
Definition at line 123 of file RcppParams.cpp.
RcppDatetime RcppParams::getDatetimeValue | ( | std::string | name | ) |
Definition at line 163 of file RcppParams.cpp.
RcppDate RcppParams::getDateValue | ( | std::string | name | ) |
Definition at line 140 of file RcppParams.cpp.
Referenced by Rcpp_Example(), and RcppParamsExample().
double RcppParams::getDoubleValue | ( | std::string | name | ) |
Definition at line 60 of file RcppParams.cpp.
Referenced by Rcpp_Example(), and RcppParamsExample().
int RcppParams::getIntValue | ( | std::string | name | ) |
Definition at line 83 of file RcppParams.cpp.
Referenced by Rcpp_Example(), and RcppParamsExample().
std::string RcppParams::getStringValue | ( | std::string | name | ) |
Definition at line 106 of file RcppParams.cpp.
Referenced by Rcpp_Example(), and RcppParamsExample().
SEXP RcppParams::_params [private] |
Definition at line 44 of file RcppParams.h.
Referenced by getBoolValue(), getDatetimeValue(), getDateValue(), getDoubleValue(), getIntValue(), getStringValue(), and RcppParams().
std::map<std::string, int> RcppParams::pmap [private] |
Definition at line 43 of file RcppParams.h.
Referenced by checkNames(), exists(), getBoolValue(), getDatetimeValue(), getDateValue(), getDoubleValue(), getIntValue(), getStringValue(), and RcppParams().