ColDatum Class Reference

#include <RcppFrame.h>

Collaboration diagram for ColDatum:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ColDatum ()
 ColDatum (const ColDatum &datum)
 ~ColDatum ()
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 52 of file RcppFrame.h.


Constructor & Destructor Documentation

ColDatum::ColDatum (  ) 

Definition at line 25 of file RcppFrame.cpp.

ColDatum::ColDatum ( const ColDatum datum  ) 

Definition at line 27 of file RcppFrame.cpp.

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

ColDatum::~ColDatum (  ) 

Definition at line 43 of file RcppFrame.cpp.

References COLTYPE_FACTOR, levelNames, and type.


Member Function Documentation

void ColDatum::checkFactorType (  ) 

Definition at line 137 of file RcppFrame.cpp.

References COLTYPE_FACTOR, and type.

Referenced by getFactorLevel(), getFactorLevelName(), getFactorLevelNames(), and getFactorNumLevels().

double ColDatum::getDateRCode (  ) 

Definition at line 127 of file RcppFrame.cpp.

References d, RcppDate::getJDN(), and RcppDate::Jan1970Offset.

Here is the call graph for this function:

RcppDatetime ColDatum::getDatetimeValue (  ) 

Definition at line 131 of file RcppFrame.cpp.

References COLTYPE_DATETIME, type, and x.

RcppDate ColDatum::getDateValue (  ) 

Definition at line 121 of file RcppFrame.cpp.

References COLTYPE_DATE, d, and type.

double ColDatum::getDoubleValue (  ) 

Definition at line 97 of file RcppFrame.cpp.

References COLTYPE_DOUBLE, type, and x.

int ColDatum::getFactorLevel (  ) 

Definition at line 147 of file RcppFrame.cpp.

References checkFactorType(), and level.

Here is the call graph for this function:

std::string ColDatum::getFactorLevelName (  ) 

Definition at line 157 of file RcppFrame.cpp.

References checkFactorType(), level, and levelNames.

Here is the call graph for this function:

std::string * ColDatum::getFactorLevelNames (  ) 

Definition at line 152 of file RcppFrame.cpp.

References checkFactorType(), and levelNames.

Here is the call graph for this function:

int ColDatum::getFactorNumLevels (  ) 

Definition at line 142 of file RcppFrame.cpp.

References checkFactorType(), and numLevels.

Here is the call graph for this function:

int ColDatum::getIntValue (  ) 

Definition at line 103 of file RcppFrame.cpp.

References COLTYPE_INT, i, and type.

int ColDatum::getLogicalValue (  ) 

Definition at line 109 of file RcppFrame.cpp.

References COLTYPE_LOGICAL, i, and type.

std::string ColDatum::getStringValue (  ) 

Definition at line 115 of file RcppFrame.cpp.

References COLTYPE_STRING, s, and type.

ColType ColDatum::getType (  )  const [inline]

Definition at line 58 of file RcppFrame.h.

References type.

void ColDatum::setDatetimeValue ( RcppDatetime  datetime  ) 

Definition at line 81 of file RcppFrame.cpp.

References COLTYPE_DATETIME, RcppDatetime::m_d, type, and x.

void ColDatum::setDateValue ( RcppDate  date  ) 

Definition at line 76 of file RcppFrame.cpp.

References COLTYPE_DATE, d, and type.

void ColDatum::setDoubleValue ( double  val  ) 

Definition at line 54 of file RcppFrame.cpp.

References COLTYPE_DOUBLE, type, and x.

void ColDatum::setFactorValue ( std::string *  names,
int  numNames,
int  factorLevel 
)

Definition at line 86 of file RcppFrame.cpp.

References COLTYPE_FACTOR, i, level, levelNames, numLevels, and type.

void ColDatum::setIntValue ( int  val  ) 

Definition at line 59 of file RcppFrame.cpp.

References COLTYPE_INT, i, and type.

void ColDatum::setLogicalValue ( int  val  ) 

Definition at line 64 of file RcppFrame.cpp.

References COLTYPE_LOGICAL, i, and type.

void ColDatum::setStringValue ( std::string  val  ) 

Definition at line 71 of file RcppFrame.cpp.

References COLTYPE_STRING, s, and type.


Member Data Documentation

RcppDate ColDatum::d [private]

Definition at line 88 of file RcppFrame.h.

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

int ColDatum::i [private]
int ColDatum::level [private]

Definition at line 85 of file RcppFrame.h.

Referenced by ColDatum(), getFactorLevel(), getFactorLevelName(), and setFactorValue().

std::string* ColDatum::levelNames [private]
int ColDatum::numLevels [private]

Definition at line 86 of file RcppFrame.h.

Referenced by ColDatum(), getFactorNumLevels(), and setFactorValue().

std::string ColDatum::s [private]

Definition at line 82 of file RcppFrame.h.

Referenced by ColDatum(), getStringValue(), and setStringValue().

double ColDatum::x [private]

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

Generated on Sat Jan 2 15:42:10 2010 for Rcpp by  doxygen 1.6.1