bpp-popgen3
3.0.0
|
#include <Bpp/PopGen/DataSet/Date.h>
Public Member Functions | |
Date (const int day=1, const int month=1, const int year=2000) | |
Build a new Date from three values. More... | |
Date (const Date &date) | |
The Date copy constructor. More... | |
~Date () | |
Destroy the Date object. More... | |
Date & | operator= (const Date &date) |
The Date copy operator. More... | |
void | setDate (const int day, const int month, const int year) |
Set the Date. More... | |
void | setYear (const int year) |
Set the year. More... | |
void | setMonth (const int month) |
Set the month. More... | |
void | setDay (const int day) |
Set the day. More... | |
std::string | getDateStr () const |
Get the Date as a string. More... | |
int | getYear () const |
Get the Year as an int. More... | |
int | getMonth () const |
Get the month as an int. More... | |
int | getDay () const |
Get the day as an int. More... | |
bool | operator== (const Date &date) const |
The == operator. More... | |
bool | operator< (const Date &date) const |
The < operator. More... | |
bool | operator!= (const Date &date) const |
The != operator. More... | |
bool | operator> (const Date &date) const |
The > operator. More... | |
bool | operator<= (const Date &date) const |
The <= operator. More... | |
bool | operator>= (const Date &date) const |
The >= operator. More... | |
The Clonable interface | |
Date * | clone () const |
Private Attributes | |
int | day_ |
int | month_ |
int | year_ |
Date::Date | ( | const int | day = 1 , |
const int | month = 1 , |
||
const int | year = 2000 |
||
) |
|
inlinevirtual |
std::string Date::getDateStr | ( | ) | const |
|
inline |
Get the day as an int.
Definition at line 110 of file Date.h.
References day_.
Referenced by operator<(), operator=(), and operator==().
|
inline |
Get the month as an int.
Definition at line 105 of file Date.h.
References month_.
Referenced by operator<(), operator=(), and operator==().
|
inline |
Get the Year as an int.
Definition at line 100 of file Date.h.
References year_.
Referenced by operator<(), operator=(), and operator==().
|
inline |
bool Date::operator< | ( | const Date & | date | ) | const |
|
inline |
bool Date::operator== | ( | const Date & | date | ) | const |
|
inline |
|
inline |
void Date::setDate | ( | const int | day, |
const int | month, | ||
const int | year | ||
) |
void Date::setDay | ( | const int | day | ) |
void Date::setMonth | ( | const int | month | ) |
void Date::setYear | ( | const int | year | ) |
|
private |
Definition at line 23 of file Date.h.
Referenced by getDateStr(), getDay(), operator<(), operator=(), operator==(), setDate(), and setDay().
|
private |
Definition at line 24 of file Date.h.
Referenced by getDateStr(), getMonth(), operator<(), operator=(), operator==(), setDate(), and setMonth().
|
private |
Definition at line 25 of file Date.h.
Referenced by getDateStr(), getYear(), operator<(), operator=(), operator==(), setDate(), and setYear().