ColDatum Class Reference

#include <Rcpp.h>

Collaboration diagram for ColDatum:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 172 of file Rcpp.h.


Constructor & Destructor Documentation

ColDatum::ColDatum (  )  [inline]

Definition at line 174 of file Rcpp.h.

References level.

ColDatum::~ColDatum (  )  [inline]

Definition at line 177 of file Rcpp.h.

References COLTYPE_FACTOR, levelNames, and type.

ColDatum::ColDatum ( const ColDatum datum  )  [inline]

Definition at line 187 of file Rcpp.h.

References COLTYPE_FACTOR, d, i, level, levelNames, numLevels, s, type, and x.


Member Function Documentation

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

std::string ColDatum::getFactorLevelName (  )  [inline]

Definition at line 274 of file Rcpp.h.

References checkFactorType(), level, and levelNames.

Here is the call graph for this function:

std::string* ColDatum::getFactorLevelNames (  )  [inline]

Definition at line 273 of file Rcpp.h.

References checkFactorType(), and levelNames.

Here is the call graph for this function:

int ColDatum::getFactorNumLevels (  )  [inline]

Definition at line 271 of file Rcpp.h.

References checkFactorType(), and numLevels.

Here is the call graph for this function:

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]

Definition at line 204 of file Rcpp.h.

References type.

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.


Member Data Documentation

RcppDate ColDatum::d [private]

Definition at line 284 of file Rcpp.h.

Referenced by ColDatum(), getDateRCode(), getDateValue(), and setDateValue().

int ColDatum::i [private]
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().

double ColDatum::x [private]

Definition at line 279 of file Rcpp.h.

Referenced by ColDatum(), getDatetimeValue(), getDoubleValue(), setDatetimeValue(), and setDoubleValue().


The documentation for this class was generated from the following file:

Generated on Fri Nov 6 13:03:18 2009 for Rcpp by  doxygen 1.6.1