Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::chrono::duration< Rep, Period > Class Template Reference

#include <duration.hpp>

Public Types

typedef Rep rep
 
typedef Period period
 

Public Member Functions

BOOST_FORCEINLINE BOOST_CONSTEXPR duration ()
 
template<class Rep2 >
BOOST_SYMBOL_VISIBLE
BOOST_FORCEINLINE
BOOST_CONSTEXPR 
duration (const Rep2 &r, typename boost::enable_if< mpl::and_< boost::is_convertible< Rep2, rep >, mpl::or_< treat_as_floating_point< rep >, mpl::and_< mpl::not_< treat_as_floating_point< rep > >, mpl::not_< treat_as_floating_point< Rep2 > > > > > >::type *=0)
 
durationoperator= (const duration &rhs)
 
template<class Rep2 , class Period2 >
BOOST_FORCEINLINE BOOST_CONSTEXPR duration (const duration< Rep2, Period2 > &d, typename boost::enable_if< mpl::or_< treat_as_floating_point< rep >, mpl::and_< chrono_detail::is_evenly_divisible_by< Period2, period >, mpl::not_< treat_as_floating_point< Rep2 > > > > >::type *=0)
 
BOOST_CONSTEXPR rep count () const
 
BOOST_CONSTEXPR duration operator+ () const
 
BOOST_CONSTEXPR duration operator- () const
 
durationoperator++ ()
 
duration operator++ (int)
 
durationoperator-- ()
 
duration operator-- (int)
 
durationoperator+= (const duration &d)
 
durationoperator-= (const duration &d)
 
durationoperator*= (const rep &rhs)
 
durationoperator/= (const rep &rhs)
 
durationoperator%= (const rep &rhs)
 
durationoperator%= (const duration &rhs)
 

Static Public Member Functions

static BOOST_CONSTEXPR duration zero ()
 
static
BOOST_CHRONO_LIB_CONSTEXPR
duration min 
BOOST_PREVENT_MACRO_SUBSTITUTION ()
 
static
BOOST_CHRONO_LIB_CONSTEXPR
duration max 
BOOST_PREVENT_MACRO_SUBSTITUTION ()
 

Member Typedef Documentation

template<class Rep, class Period>
typedef Period boost::chrono::duration< Rep, Period >::period
template<class Rep, class Period>
typedef Rep boost::chrono::duration< Rep, Period >::rep

Constructor & Destructor Documentation

template<class Rep, class Period>
BOOST_FORCEINLINE BOOST_CONSTEXPR boost::chrono::duration< Rep, Period >::duration ( )
inline
template<class Rep, class Period>
template<class Rep2 >
BOOST_SYMBOL_VISIBLE BOOST_FORCEINLINE BOOST_CONSTEXPR boost::chrono::duration< Rep, Period >::duration ( const Rep2 &  r,
typename boost::enable_if< mpl::and_< boost::is_convertible< Rep2, rep >, mpl::or_< treat_as_floating_point< rep >, mpl::and_< mpl::not_< treat_as_floating_point< rep > >, mpl::not_< treat_as_floating_point< Rep2 > > > > > >::type = 0 
)
inlineexplicit
template<class Rep, class Period>
template<class Rep2 , class Period2 >
BOOST_FORCEINLINE BOOST_CONSTEXPR boost::chrono::duration< Rep, Period >::duration ( const duration< Rep2, Period2 > &  d,
typename boost::enable_if< mpl::or_< treat_as_floating_point< rep >, mpl::and_< chrono_detail::is_evenly_divisible_by< Period2, period >, mpl::not_< treat_as_floating_point< Rep2 > > > > >::type = 0 
)
inline

Member Function Documentation

template<class Rep, class Period>
static BOOST_CHRONO_LIB_CONSTEXPR duration min boost::chrono::duration< Rep, Period >::BOOST_PREVENT_MACRO_SUBSTITUTION ( )
inlinestatic
template<class Rep, class Period>
static BOOST_CHRONO_LIB_CONSTEXPR duration max boost::chrono::duration< Rep, Period >::BOOST_PREVENT_MACRO_SUBSTITUTION ( )
inlinestatic
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator%= ( const rep rhs)
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator%= ( const duration< Rep, Period > &  rhs)
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator*= ( const rep rhs)
inline
template<class Rep, class Period>
BOOST_CONSTEXPR duration boost::chrono::duration< Rep, Period >::operator+ ( ) const
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator++ ( )
inline
template<class Rep, class Period>
duration boost::chrono::duration< Rep, Period >::operator++ ( int  )
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator+= ( const duration< Rep, Period > &  d)
inline
template<class Rep, class Period>
BOOST_CONSTEXPR duration boost::chrono::duration< Rep, Period >::operator- ( ) const
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator-- ( )
inline
template<class Rep, class Period>
duration boost::chrono::duration< Rep, Period >::operator-- ( int  )
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator-= ( const duration< Rep, Period > &  d)
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator/= ( const rep rhs)
inline
template<class Rep, class Period>
duration& boost::chrono::duration< Rep, Period >::operator= ( const duration< Rep, Period > &  rhs)
inline
template<class Rep, class Period>
static BOOST_CONSTEXPR duration boost::chrono::duration< Rep, Period >::zero ( )
inlinestatic

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