Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gregorian::weeks_duration Class Reference

#include <greg_duration_types.hpp>

Inheritance diagram for boost::gregorian::weeks_duration:
Collaboration diagram for boost::gregorian::weeks_duration:

Public Types

typedef base_type::duration_rep duration_rep
 
typedef date_duration_rep::int_type duration_rep_type
 

Public Member Functions

 weeks_duration (duration_rep w)
 
 weeks_duration (date_time::special_values sv)
 
bool operator== (const date_duration &rhs) const
 
bool operator== (const date_duration &rhs) const
 Equality. More...
 
bool operator!= (const date_duration &rhs) const
 
bool operator< (const date_duration &rhs) const
 
bool operator< (const date_duration &rhs) const
 Less. More...
 
bool operator> (const date_duration &rhs) const
 
bool operator<= (const date_duration &rhs) const
 
bool operator>= (const date_duration &rhs) const
 
date_durationoperator-= (const date_duration &rhs)
 Subtract another duration – result is signed. More...
 
date_durationoperator-= (const date_duration &rhs)
 Subtract another duration – result is signed. More...
 
date_duration operator- () const
 unary- Allows for dd = -date_duration(2); -> dd == -2 More...
 
date_durationoperator+= (const date_duration &rhs)
 Add a duration – result is signed. More...
 
date_durationoperator+= (const date_duration &rhs)
 Add a duration – result is signed. More...
 
date_durationoperator/= (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 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...
 

Member Typedef Documentation

Constructor & Destructor Documentation

boost::gregorian::weeks_duration::weeks_duration ( duration_rep  w)
inline
boost::gregorian::weeks_duration::weeks_duration ( date_time::special_values  sv)
inline

Member Function Documentation

returns days as value, not object.

duration_rep boost::date_time::date_duration< date_duration_rep >::get_rep ( ) const
inlineinherited

returns days_ as it's instantiated type - used for streaming

Referenced by boost::gregorian::date_duration::operator-(), and boost::gregorian::date_duration::unit().

bool boost::date_time::date_duration< date_duration_rep >::is_negative ( ) const
inlineinherited

return sign information

bool boost::date_time::date_duration< date_duration_rep >::is_special ( ) const
inlineinherited
bool boost::gregorian::date_duration::operator!= ( const date_duration rhs) const
inlineinherited
date_duration& boost::gregorian::date_duration::operator+= ( const date_duration rhs)
inlineinherited

Add a duration – result is signed.

References boost::date_time::date_duration< date_duration_rep >::operator+=().

date_duration& boost::date_time::date_duration< date_duration_rep >::operator+= ( const date_duration< date_duration_rep > &  rhs)
inlineinherited

Add a duration – result is signed.

Referenced by boost::gregorian::date_duration::operator+=().

date_duration boost::gregorian::date_duration::operator- ( ) const
inlineinherited

unary- Allows for dd = -date_duration(2); -> dd == -2

References boost::gregorian::date_duration::date_duration(), and boost::date_time::date_duration< date_duration_rep >::get_rep().

date_duration& boost::gregorian::date_duration::operator-= ( const date_duration rhs)
inlineinherited

Subtract another duration – result is signed.

References boost::date_time::date_duration< date_duration_rep >::operator-=().

date_duration& boost::date_time::date_duration< date_duration_rep >::operator-= ( const date_duration< date_duration_rep > &  rhs)
inlineinherited

Subtract another duration – result is signed.

Referenced by boost::gregorian::date_duration::operator-=().

date_duration& boost::gregorian::date_duration::operator/= ( int  divisor)
inlineinherited

Division operations on a duration with an integer.

References boost::date_time::date_duration< date_duration_rep >::operator/=().

bool boost::gregorian::date_duration::operator< ( const date_duration rhs) const
inlineinherited
bool boost::gregorian::date_duration::operator<= ( const date_duration rhs) const
inlineinherited
bool boost::gregorian::date_duration::operator== ( const date_duration rhs) const
inlineinherited
bool boost::date_time::date_duration< date_duration_rep >::operator== ( const date_duration< date_duration_rep > &  rhs) const
inlineinherited
bool boost::gregorian::date_duration::operator> ( const date_duration rhs) const
inlineinherited
bool boost::gregorian::date_duration::operator>= ( const date_duration rhs) const
inlineinherited
static date_duration boost::gregorian::date_duration::unit ( )
inlinestaticinherited

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