• Home
  • Raw
  • Download

Lines Matching refs:Period

78   template <class Rep, class Period = ratio<1> >
87 template <class Rep, class Period>
88 struct is_duration<duration<Rep, Period> >
111 template <class Rep1, class Period, class Rep2>
112 struct duration_divide_imp<duration<Rep1, Period>, Rep2, true>
114 typedef duration<typename boost::common_type<Rep1, Rep2>::type, Period> type;
117 template <class Rep1, class Period, class Rep2>
118 struct duration_divide_result<duration<Rep1, Period>, Rep2, false>
119 : duration_divide_imp<duration<Rep1, Period>, Rep2>
141 template <class Rep1, class Rep2, class Period >
142 struct duration_divide_imp2<Rep1, duration<Rep2, Period>, true>
148 template <class Rep1, class Rep2, class Period >
149 struct duration_divide_result2<Rep1, duration<Rep2, Period>, false>
150 : duration_divide_imp2<Rep1, duration<Rep2, Period> >
173 template <class Rep1, class Period, class Rep2>
174 struct duration_modulo_imp<duration<Rep1, Period>, Rep2, true>
176 typedef duration<typename boost::common_type<Rep1, Rep2>::type, Period> type;
179 template <class Rep1, class Period, class Rep2>
180 struct duration_modulo_result<duration<Rep1, Period>, Rep2, false>
181 : duration_modulo_imp<duration<Rep1, Period>, Rep2>
285 class Period = typename boost::ratio_divide<typename FromDuration::period,
287 bool = Period::num == 1,
288 bool = Period::den == 1>
295 template <class FromDuration, class ToDuration, class Period>
296 struct duration_cast<FromDuration, ToDuration, Period, true, true>
310 template <class FromDuration, class ToDuration, class Period>
311 struct duration_cast<FromDuration, ToDuration, Period, true, false>
320 static_cast<C>(fd.count()) / static_cast<C>(Period::den))); in operator ()()
329 template <class FromDuration, class ToDuration, class Period>
330 struct duration_cast<FromDuration, ToDuration, Period, false, true>
339 static_cast<C>(fd.count()) * static_cast<C>(Period::num))); in operator ()()
349 template <class FromDuration, class ToDuration, class Period>
350 struct duration_cast<FromDuration, ToDuration, Period, false, false>
359 static_cast<C>(fd.count()) * static_cast<C>(Period::num) in operator ()()
360 / static_cast<C>(Period::den))); in operator ()()
449 template <class Rep, class Period>
453 …BOOST_EX_CHRONO_STATIC_ASSERT(boost::ratio_detail::is_ratio<Period>::value, BOOST_EX_CHRONO_SECOND…
454 …BOOST_EX_CHRONO_STATIC_ASSERT(Period::num>0, BOOST_EX_CHRONO_DURATION_PERIOD_MUST_BE_POSITIVE, ());
457 typedef Period period;
577 template <class Rep1, class Period, class Rep2>
580 duration<typename boost::common_type<Rep1, Rep2>::type, Period>
587 duration<typename boost::common_type<Rep1, Rep2>::type, Period>
590 operator*(const duration<Rep1, Period>& d, const Rep2& s) in operator *()
593 duration<CR, Period> r = d; in operator *()
598 template <class Rep1, class Period, class Rep2>
601 duration<typename boost::common_type<Rep1, Rep2>::type, Period>
608 duration<typename boost::common_type<Rep1, Rep2>::type, Period>
611 operator*(const Rep1& s, const duration<Rep2, Period>& d) in operator *()
618 template <class Rep1, class Period, class Rep2>
621 typename boost_ex::chrono::detail::duration_divide_result<duration<Rep1, Period>, Rep2>::type
623 operator/(const duration<Rep1, Period>& d, const Rep2& s) in operator /()
626 duration<CR, Period> r = d; in operator /()
641 template <class Rep1, class Rep2, class Period>
644 typename boost_ex::chrono::detail::duration_divide_result2<Rep1, duration<Rep2, Period> >::type
646 operator/(const Rep1& s, const duration<Rep2, Period>& d) in operator /()
649 duration<CR, Period> r = d; in operator /()
656 template <class Rep1, class Period, class Rep2>
658 typename boost_ex::chrono::detail::duration_modulo_result<duration<Rep1, Period>, Rep2>::type
660 operator%(const duration<Rep1, Period>& d, const Rep2& s) { in operator %()
662 duration<CR, Period> r = d; in operator %()
785 template <class ToDuration, class Rep, class Period>
792 duration_cast(const duration<Rep, Period>& fd) in duration_cast()
794 return boost_ex::chrono::detail::duration_cast<duration<Rep, Period>, ToDuration>()(fd); in duration_cast()