Rechercher une page de manuel
RcppDate
Langue: en
Version: 289437 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- Detailed Description
- Constructor & Destructor Documentation
- Member Function Documentation
- 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]
- 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]
- std::ostream& operator<< (std::ostream & os, const RcppDate & date) [friend]
- Member Data Documentation
- Author
NAME
RcppDate -SYNOPSIS
#include <Rcpp.h>
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.
RcppDate::RcppDate (int Rjdn) [inline]
Definition at line 58 of file Rcpp.h.
References Jan1970Offset, jdn, and jdn2mdy().
RcppDate::RcppDate (int month_, int day_, int year_) [inline]
Definition at line 59 of file Rcpp.h.
References mdy2jdn().
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]
Definition at line 52 of file Rcpp.h.
Referenced by getJDN(), jdn2mdy(), mdy2jdn(), operator+(), operator-(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and RcppDate().
const int RcppDate::Jan1970Offset = 2440588 [static]
Definition at line 55 of file Rcpp.h.
Referenced by RcppResultSet::add(), RcppFunction::appendToRList(), ColDatum::getDateRCode(), and RcppDate().
const int RcppDate::QLtoJan1970Offset = 25569 [static]
Definition at line 56 of file Rcpp.h.
Author
Generated automatically by Doxygen for Rcpp from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre