RcppDate Class Reference

#include <RcppDate.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 28 of file RcppDate.h.


Constructor & Destructor Documentation

RcppDate::RcppDate (  ) 

Definition at line 28 of file RcppDate.cpp.

References mdy2jdn().

Here is the call graph for this function:

RcppDate::RcppDate ( int  Rjdn  ) 

Definition at line 34 of file RcppDate.cpp.

References Jan1970Offset, jdn, and jdn2mdy().

Here is the call graph for this function:

RcppDate::RcppDate ( int  month_,
int  day_,
int  year_ 
)

Definition at line 39 of file RcppDate.cpp.

References mdy2jdn().

Here is the call graph for this function:


Member Function Documentation

int RcppDate::getDay (  )  const [inline]

Definition at line 42 of file RcppDate.h.

References day.

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

int RcppDate::getJDN (  )  const [inline]

Definition at line 44 of file RcppDate.h.

References jdn.

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

int RcppDate::getMonth (  )  const [inline]

Definition at line 41 of file RcppDate.h.

References month.

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

int RcppDate::getYear (  )  const [inline]

Definition at line 43 of file RcppDate.h.

References year.

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

void RcppDate::jdn2mdy (  )  [private]

Definition at line 108 of file RcppDate.cpp.

References day, jdn, month, and year.

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

void RcppDate::mdy2jdn (  )  [private]

Definition at line 98 of file RcppDate.cpp.

References day, jdn, month, and year.

Referenced by RcppDate().


Friends And Related Function Documentation

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

Member Data Documentation

int RcppDate::day [private]

Definition at line 32 of file RcppDate.h.

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

const int RcppDate::Jan1970Offset = 2440588 [static]
int RcppDate::jdn [private]
int RcppDate::month [private]

Definition at line 32 of file RcppDate.h.

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

const int RcppDate::QLtoJan1970Offset = 25569 [static]

Definition at line 37 of file RcppDate.h.

int RcppDate::year [private]

Definition at line 32 of file RcppDate.h.

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


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

Generated on Sat Dec 19 14:01:32 2009 for Rcpp by  doxygen 1.6.1