#include <Rcpp.h>
Public Member Functions | |
ColDatum () | |
~ColDatum () | |
ColDatum (const ColDatum &datum) | |
ColType | getType () const |
void | setDoubleValue (double val) |
void | setIntValue (int val) |
void | setLogicalValue (int val) |
void | setStringValue (std::string val) |
void | setDateValue (RcppDate date) |
void | setDatetimeValue (RcppDatetime datetime) |
void | setFactorValue (std::string *names, int numNames, int factorLevel) |
double | getDoubleValue () |
int | getIntValue () |
int | getLogicalValue () |
std::string | getStringValue () |
RcppDate | getDateValue () |
double | getDateRCode () |
RcppDatetime | getDatetimeValue () |
void | checkFactorType () |
int | getFactorNumLevels () |
int | getFactorLevel () |
std::string * | getFactorLevelNames () |
std::string | getFactorLevelName () |
Private Attributes | |
ColType | type |
std::string | s |
double | x |
int | i |
int | level |
int | numLevels |
std::string * | levelNames |
RcppDate | d |
Definition at line 172 of file Rcpp.h.
ColDatum::~ColDatum | ( | ) | [inline] |
Definition at line 177 of file Rcpp.h.
References COLTYPE_FACTOR, levelNames, and type.
ColDatum::ColDatum | ( | const ColDatum & | datum | ) | [inline] |
void ColDatum::checkFactorType | ( | ) | [inline] |
Definition at line 267 of file Rcpp.h.
References COLTYPE_FACTOR, and type.
Referenced by getFactorLevel(), getFactorLevelName(), getFactorLevelNames(), and getFactorNumLevels().
double ColDatum::getDateRCode | ( | ) | [inline] |
Definition at line 258 of file Rcpp.h.
References d, RcppDate::getJDN(), and RcppDate::Jan1970Offset.
RcppDatetime ColDatum::getDatetimeValue | ( | ) | [inline] |
Definition at line 261 of file Rcpp.h.
References COLTYPE_DATETIME, type, and x.
RcppDate ColDatum::getDateValue | ( | ) | [inline] |
Definition at line 253 of file Rcpp.h.
References COLTYPE_DATE, d, and type.
double ColDatum::getDoubleValue | ( | ) | [inline] |
Definition at line 233 of file Rcpp.h.
References COLTYPE_DOUBLE, type, and x.
int ColDatum::getFactorLevel | ( | ) | [inline] |
Definition at line 272 of file Rcpp.h.
References checkFactorType(), and level.
std::string ColDatum::getFactorLevelName | ( | ) | [inline] |
Definition at line 274 of file Rcpp.h.
References checkFactorType(), level, and levelNames.
std::string* ColDatum::getFactorLevelNames | ( | ) | [inline] |
Definition at line 273 of file Rcpp.h.
References checkFactorType(), and levelNames.
int ColDatum::getFactorNumLevels | ( | ) | [inline] |
Definition at line 271 of file Rcpp.h.
References checkFactorType(), and numLevels.
int ColDatum::getIntValue | ( | ) | [inline] |
Definition at line 238 of file Rcpp.h.
References COLTYPE_INT, i, and type.
int ColDatum::getLogicalValue | ( | ) | [inline] |
Definition at line 243 of file Rcpp.h.
References COLTYPE_LOGICAL, i, and type.
std::string ColDatum::getStringValue | ( | ) | [inline] |
Definition at line 248 of file Rcpp.h.
References COLTYPE_STRING, s, and type.
ColType ColDatum::getType | ( | ) | const [inline] |
void ColDatum::setDatetimeValue | ( | RcppDatetime | datetime | ) | [inline] |
Definition at line 218 of file Rcpp.h.
References COLTYPE_DATETIME, RcppDatetime::m_d, type, and x.
void ColDatum::setDateValue | ( | RcppDate | date | ) | [inline] |
Definition at line 214 of file Rcpp.h.
References COLTYPE_DATE, d, and type.
void ColDatum::setDoubleValue | ( | double | val | ) | [inline] |
Definition at line 206 of file Rcpp.h.
References COLTYPE_DOUBLE, type, and x.
void ColDatum::setFactorValue | ( | std::string * | names, | |
int | numNames, | |||
int | factorLevel | |||
) | [inline] |
Definition at line 222 of file Rcpp.h.
References COLTYPE_FACTOR, i, level, levelNames, numLevels, and type.
void ColDatum::setIntValue | ( | int | val | ) | [inline] |
Definition at line 207 of file Rcpp.h.
References COLTYPE_INT, i, and type.
void ColDatum::setLogicalValue | ( | int | val | ) | [inline] |
Definition at line 208 of file Rcpp.h.
References COLTYPE_LOGICAL, i, and type.
void ColDatum::setStringValue | ( | std::string | val | ) | [inline] |
Definition at line 213 of file Rcpp.h.
References COLTYPE_STRING, s, and type.
RcppDate ColDatum::d [private] |
Definition at line 284 of file Rcpp.h.
Referenced by ColDatum(), getDateRCode(), getDateValue(), and setDateValue().
int ColDatum::i [private] |
Definition at line 280 of file Rcpp.h.
Referenced by ColDatum(), getIntValue(), getLogicalValue(), setFactorValue(), setIntValue(), and setLogicalValue().
int ColDatum::level [private] |
Definition at line 281 of file Rcpp.h.
Referenced by ColDatum(), getFactorLevel(), getFactorLevelName(), and setFactorValue().
std::string* ColDatum::levelNames [private] |
Definition at line 283 of file Rcpp.h.
Referenced by ColDatum(), getFactorLevelName(), getFactorLevelNames(), setFactorValue(), and ~ColDatum().
int ColDatum::numLevels [private] |
Definition at line 282 of file Rcpp.h.
Referenced by ColDatum(), getFactorNumLevels(), and setFactorValue().
std::string ColDatum::s [private] |
Definition at line 278 of file Rcpp.h.
Referenced by ColDatum(), getStringValue(), and setStringValue().
ColType ColDatum::type [private] |
Definition at line 277 of file Rcpp.h.
Referenced by checkFactorType(), ColDatum(), getDatetimeValue(), getDateValue(), getDoubleValue(), getIntValue(), getLogicalValue(), getStringValue(), getType(), setDatetimeValue(), setDateValue(), setDoubleValue(), setFactorValue(), setIntValue(), setLogicalValue(), setStringValue(), and ~ColDatum().
double ColDatum::x [private] |
Definition at line 279 of file Rcpp.h.
Referenced by ColDatum(), getDatetimeValue(), getDoubleValue(), setDatetimeValue(), and setDoubleValue().