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

Additional duration type that represents a number of n*7 days. More...

#include <date_duration_types.hpp>

Inheritance diagram for boost::date_time::weeks_duration< duration_config >:
Collaboration diagram for boost::date_time::weeks_duration< duration_config >:

Public Types

typedef duration_config::int_type duration_rep_type
 
typedef duration_config::impl_type duration_rep
 

Public Member Functions

 weeks_duration (typename duration_config::impl_type w)
 
 weeks_duration (special_values sv)
 
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_durationoperator-= (const date_duration &rhs)
 Subtract another duration – result is signed. More...
 
date_durationoperator+= (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_durationoperator/= (int divisor)
 Division operations on a duration with an integer. 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...
 

Detailed Description

template<class duration_config>
class boost::date_time::weeks_duration< duration_config >

Additional duration type that represents a number of n*7 days.

Member Typedef Documentation

typedef duration_config ::impl_type boost::date_time::date_duration< duration_config >::duration_rep
inherited
typedef duration_config ::int_type boost::date_time::date_duration< duration_config >::duration_rep_type
inherited

Constructor & Destructor Documentation

template<class duration_config >
boost::date_time::weeks_duration< duration_config >::weeks_duration ( typename duration_config::impl_type  w)
inline
template<class duration_config >
boost::date_time::weeks_duration< duration_config >::weeks_duration ( special_values  sv)
inline

Member Function Documentation

duration_rep_type boost::date_time::date_duration< duration_config >::days ( ) const
inlineinherited

returns days as value, not object.

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

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

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

return sign information

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

Add a duration – result is signed.

date_duration boost::date_time::date_duration< duration_config >::operator- ( ) const
inlineinherited

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

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

Subtract another duration – result is signed.

date_duration& boost::date_time::date_duration< duration_config >::operator/= ( int  divisor)
inlineinherited

Division operations on a duration with an integer.

bool boost::date_time::date_duration< duration_config >::operator< ( const date_duration< duration_config > &  rhs) const
inlineinherited

Less.

bool boost::date_time::date_duration< duration_config >::operator== ( const date_duration< duration_config > &  rhs) const
inlineinherited

Equality.

static date_duration boost::date_time::date_duration< duration_config >::unit ( )
inlinestaticinherited

Returns the smallest duration – used by to calculate 'end'.


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