RcppDate Class Reference

#include <Rcpp.h>

List of all members.

Public Member Functions

 RcppDate ()
 RcppDate (int Rjdn)
 RcppDate (int month_, int day_, int year_)
int getMonth () const
int getDay () const
int getYear () const
int getJDN () const

Static Public Attributes

static const int Jan1970Offset = 2440588
static const int QLtoJan1970Offset = 25569

Private Member Functions

void mdy2jdn ()
void jdn2mdy ()

Private Attributes

int month
int day
int year
int jdn

Friends

RcppDate operator+ (const RcppDate &date, int offset)
int operator- (const RcppDate &date1, const RcppDate &date2)
bool operator< (const RcppDate &date1, const RcppDate &date2)
bool operator> (const RcppDate &date1, const RcppDate &date2)
bool operator== (const RcppDate &date1, const RcppDate &date2)
bool operator>= (const RcppDate &date1, const RcppDate &date2)
bool operator<= (const RcppDate &date1, const RcppDate &date2)
std::ostream & operator<< (std::ostream &os, const RcppDate &date)


Detailed Description

Definition at line 47 of file Rcpp.h.


Constructor & Destructor Documentation

RcppDate::RcppDate (  )  [inline]

Definition at line 57 of file Rcpp.h.

References day, mdy2jdn(), month, and year.

Here is the call graph for this function:

RcppDate::RcppDate ( int  Rjdn  )  [inline]

Definition at line 58 of file Rcpp.h.

References Jan1970Offset, jdn, and jdn2mdy().

Here is the call graph for this function:

RcppDate::RcppDate ( int  month_,
int  day_,
int  year_ 
) [inline]

Definition at line 59 of file Rcpp.h.

References mdy2jdn().

Here is the call graph for this function:


Member Function Documentation

void RcppDate::mdy2jdn (  )  [private]

Definition at line 846 of file Rcpp.cpp.

References day, jdn, month, and year.

Referenced by RcppDate().

void RcppDate::jdn2mdy (  )  [private]

Definition at line 856 of file Rcpp.cpp.

References day, jdn, month, and year.

Referenced by operator+(), and RcppDate().

int RcppDate::getMonth (  )  const [inline]

Definition at line 66 of file Rcpp.h.

References month.

Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().

int RcppDate::getDay (  )  const [inline]

Definition at line 67 of file Rcpp.h.

References day.

Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().

int RcppDate::getYear (  )  const [inline]

Definition at line 68 of file Rcpp.h.

References year.

Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().

int RcppDate::getJDN (  )  const [inline]

Definition at line 69 of file Rcpp.h.

References jdn.

Referenced by RcppResultSet::add(), RcppFunction::appendToRList(), and ColDatum::getDateRCode().


Friends And Related Function Documentation

RcppDate operator+ ( const RcppDate date,
int  offset 
) [friend]

Definition at line 796 of file Rcpp.cpp.

int operator- ( const RcppDate date1,
const RcppDate date2 
) [friend]

Definition at line 803 of file Rcpp.cpp.

bool operator< ( const RcppDate date1,
const RcppDate date2 
) [friend]

Definition at line 807 of file Rcpp.cpp.

bool operator> ( const RcppDate date1,
const RcppDate date2 
) [friend]

Definition at line 811 of file Rcpp.cpp.

bool operator== ( const RcppDate date1,
const RcppDate date2 
) [friend]

Definition at line 823 of file Rcpp.cpp.

bool operator>= ( const RcppDate date1,
const RcppDate date2 
) [friend]

Definition at line 815 of file Rcpp.cpp.

bool operator<= ( const RcppDate date1,
const RcppDate date2 
) [friend]

Definition at line 819 of file Rcpp.cpp.

std::ostream& operator<< ( std::ostream &  os,
const RcppDate date 
) [friend]

Definition at line 790 of file Rcpp.cpp.


Member Data Documentation

int RcppDate::month [private]

Definition at line 51 of file Rcpp.h.

Referenced by getMonth(), jdn2mdy(), mdy2jdn(), operator+(), and RcppDate().

int RcppDate::day [private]

Definition at line 51 of file Rcpp.h.

Referenced by getDay(), jdn2mdy(), mdy2jdn(), operator+(), and RcppDate().

int RcppDate::year [private]

Definition at line 51 of file Rcpp.h.

Referenced by getYear(), jdn2mdy(), mdy2jdn(), operator+(), and RcppDate().

int RcppDate::jdn [private]

const int RcppDate::Jan1970Offset = 2440588 [static]

const int RcppDate::QLtoJan1970Offset = 25569 [static]

Definition at line 56 of file Rcpp.h.


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

Generated on Tue Feb 24 20:26:55 2009 for Rcpp by  doxygen 1.5.6