Durations in days for gregorian system. More...
#include <greg_duration.hpp>
Public Types | |
typedef base_type::duration_rep | duration_rep |
typedef date_duration_rep::int_type | duration_rep_type |
Public Member Functions | |
date_duration (duration_rep day_count=0) | |
Construct from a day count. More... | |
date_duration (date_time::special_values sv) | |
construct from special_values More... | |
date_duration (const date_duration &other) | |
Copy constructor. More... | |
date_duration (const base_type &other) | |
Construct from another date_duration. More... | |
bool | operator== (const date_duration &rhs) const |
bool | operator!= (const date_duration &rhs) const |
bool | operator< (const date_duration &rhs) const |
bool | operator> (const date_duration &rhs) const |
bool | operator<= (const date_duration &rhs) const |
bool | operator>= (const date_duration &rhs) const |
date_duration & | operator-= (const date_duration &rhs) |
Subtract another duration – result is signed. More... | |
date_duration & | operator+= (const date_duration &rhs) |
Add a duration – result is signed. More... | |
date_duration | operator- () const |
unary- Allows for dd = -date_duration(2); -> dd == -2 More... | |
date_duration & | operator/= (int divisor) |
Division operations on a duration with an integer. More... | |
duration_rep | get_rep () const |
returns days_ as it's instantiated type - used for streaming More... | |
bool | is_special () const |
duration_rep_type | days () const |
returns days as value, not object. More... | |
bool | operator== (const date_duration &rhs) const |
Equality. More... | |
bool | operator< (const date_duration &rhs) const |
Less. More... | |
date_duration & | operator-= (const date_duration &rhs) |
Subtract another duration – result is signed. More... | |
date_duration & | operator+= (const date_duration &rhs) |
Add a duration – result is signed. More... | |
bool | is_negative () const |
return sign information More... | |
Static Public Member Functions | |
static date_duration | unit () |
Returns the smallest duration – used by to calculate 'end'. More... | |
Friends | |
date_duration | operator- (date_duration rhs, date_duration const &lhs) |
date_duration | operator+ (date_duration rhs, date_duration const &lhs) |
date_duration | operator/ (date_duration rhs, int lhs) |
Durations in days for gregorian system.
|
inherited |
|
inlineexplicit |
Construct from a day count.
Referenced by operator-(), and unit().
|
inline |
construct from special_values
|
inline |
Copy constructor.
|
inline |
Construct from another date_duration.
|
inlineinherited |
returns days as value, not object.
|
inlineinherited |
returns days_ as it's instantiated type - used for streaming
Referenced by operator-(), and unit().
|
inlineinherited |
return sign information
|
inlineinherited |
|
inline |
References operator==().
|
inline |
Add a duration – result is signed.
References boost::date_time::date_duration< date_duration_rep >::operator+=().
|
inlineinherited |
Add a duration – result is signed.
Referenced by operator+=().
|
inline |
unary- Allows for dd = -date_duration(2); -> dd == -2
References date_duration(), and boost::date_time::date_duration< date_duration_rep >::get_rep().
|
inline |
Subtract another duration – result is signed.
References boost::date_time::date_duration< date_duration_rep >::operator-=().
|
inlineinherited |
Subtract another duration – result is signed.
Referenced by operator-=().
|
inline |
Division operations on a duration with an integer.
References boost::date_time::date_duration< date_duration_rep >::operator/=().
|
inline |
|
inlineinherited |
Less.
Referenced by operator<(), operator>(), and operator>=().
|
inline |
|
inline |
References boost::date_time::date_duration< date_duration_rep >::operator==().
Referenced by operator!=().
|
inlineinherited |
Equality.
Referenced by operator==(), and operator>().
|
inline |
|
inline |
|
inlinestatic |
Returns the smallest duration – used by to calculate 'end'.
References date_duration(), boost::date_time::date_duration< date_duration_rep >::get_rep(), and boost::date_time::date_duration< date_duration_rep >::unit().
Referenced by boost::icl::operator++(), and boost::icl::operator--().
|
friend |
|
friend |
|
friend |