Home
last modified time | relevance | path

Searched refs:duration_type (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/boost/boost/date_time/
Dtime_duration.hpp49 typedef T duration_type; //the subclass typedef in boost::date_time::time_duration
70 static BOOST_CXX14_CONSTEXPR duration_type unit() in unit()
72 return duration_type(0,0,0,1); in unit()
138 BOOST_CXX14_CONSTEXPR duration_type invert_sign() const in invert_sign()
140 return duration_type(ticks_ * (-1)); in invert_sign()
142 BOOST_CXX14_CONSTEXPR duration_type abs() const in abs()
148 return duration_type(ticks_); in abs()
171 BOOST_CONSTEXPR duration_type operator-()const in operator -()
173 return duration_type(ticks_ * (-1)); in operator -()
175 BOOST_CONSTEXPR duration_type operator-(const duration_type& d) const in operator -()
[all …]
Dadjust_functors.hpp24 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::day_functor
26 duration_type get_offset(const date_type&) const in get_offset()
28 return duration_type(f_); in get_offset()
30 duration_type get_neg_offset(const date_type&) const in get_neg_offset()
32 return duration_type(-f_); in get_neg_offset()
52 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::month_functor
58 duration_type get_offset(const date_type& d) const in get_offset()
87 duration_type get_neg_offset(const date_type& d) const in get_neg_offset()
124 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::week_functor
127 duration_type get_offset(const date_type&) const in get_offset()
[all …]
Ddate_generators.hpp63 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::partial_date
64 typedef typename duration_type::duration_rep duration_rep;
85 duration_type dd(days); in partial_date()
194 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::nth_kday_of_month
207 duration_type one_day(1); in get_date()
208 duration_type one_week(7); in get_date()
269 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::first_kday_of_month
282 duration_type one_day(1); in get_date()
330 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::last_kday_of_month
343 duration_type one_day(1); in get_date()
[all …]
Ddate_iterator.hpp38 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::date_itr_base
54 virtual duration_type get_offset(const date_type& current) const=0;
55 virtual duration_type get_neg_offset(const date_type& current) const=0;
79 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::date_itr
85 virtual duration_type get_offset(const date_type& current) const in get_offset()
89 virtual duration_type get_neg_offset(const date_type& current) const in get_neg_offset()
Ddate.hpp63 typedef duration_type_ duration_type; typedef in boost::date_time::date
140 BOOST_CXX14_CONSTEXPR duration_type operator-(const date_type& d) const in operator -()
146 typedef typename duration_type::duration_rep_type duration_rep_type; in operator -()
147 …return duration_type(static_cast< duration_rep_type >(days_) - static_cast< duration_rep_type >(d.… in operator -()
153 return duration_type(val.as_special()); in operator -()
157 BOOST_CXX14_CONSTEXPR date_type operator-(const duration_type& dd) const in operator -()
165 BOOST_CXX14_CONSTEXPR date_type operator-=(const duration_type& dd) in operator -=()
175 BOOST_CXX14_CONSTEXPR date_type operator+(const duration_type& dd) const in operator +()
183 BOOST_CXX14_CONSTEXPR date_type operator+=(const duration_type& dd) in operator +=()
Ddate_duration_types.hpp47 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::months_duration
59 BOOST_CXX14_CONSTEXPR duration_type get_neg_offset(const date_type& d) const in get_neg_offset()
62 return duration_type(m_adj.get_neg_offset(d)); in get_neg_offset()
64 BOOST_CXX14_CONSTEXPR duration_type get_offset(const date_type& d) const in get_offset()
67 return duration_type(m_adj.get_offset(d)); in get_offset()
167 typedef typename date_type::duration_type duration_type; typedef in boost::date_time::years_duration
179 BOOST_CXX14_CONSTEXPR duration_type get_neg_offset(const date_type& d) const in get_neg_offset()
182 return duration_type(m_adj.get_neg_offset(d)); in get_neg_offset()
184 BOOST_CXX14_CONSTEXPR duration_type get_offset(const date_type& d) const in get_offset()
187 return duration_type(m_adj.get_offset(d)); in get_offset()
/third_party/boost/libs/date_time/test/
Dtestgeneric_period.cpp16 class duration_type { class
18 duration_type(int_type a = 0) : _val(a) {} in duration_type() function in duration_type
21 bool operator==(duration_type<int_type> rhs) { return _val == rhs._val; } in operator ==()
22 bool operator<(duration_type<int_type> rhs) { return _val < rhs._val; } in operator <()
23 bool operator>(duration_type<int_type> rhs) { return _val > rhs._val; } in operator >()
30 std::ostream& operator<<(std::ostream& os, duration_type<int_type> dt){ in operator <<()
37 int_type operator+(int i, duration_type<int_type> dt){ in operator +()
44 int_type operator-(int i, duration_type<int_type> dt){ in operator -()
51 typedef period<int, duration_type<int> > a_period; in main()
55 a_period p1(1, duration_type<int>(9)); in main()
[all …]
/third_party/boost/libs/asio/include/boost/asio/detail/
Dchrono_time_traits.hpp41 typedef typename clock_type::duration duration_type; typedef
47 typedef typename duration_type::period period_type;
56 static time_type add(const time_type& t, const duration_type& d) in add()
74 static duration_type subtract(const time_type& t1, const time_type& t2) in subtract()
85 return (duration_type::max)(); in subtract()
89 return (duration_type::max)(); in subtract()
104 return (duration_type::min)(); in subtract()
108 return (duration_type::min)(); in subtract()
128 explicit posix_time_duration(const duration_type& d) in posix_time_duration()
176 duration_type d_;
[all …]
/third_party/boost/boost/asio/detail/
Dchrono_time_traits.hpp41 typedef typename clock_type::duration duration_type; typedef
47 typedef typename duration_type::period period_type;
56 static time_type add(const time_type& t, const duration_type& d) in add()
74 static duration_type subtract(const time_type& t1, const time_type& t2) in subtract()
85 return (duration_type::max)(); in subtract()
89 return (duration_type::max)(); in subtract()
104 return (duration_type::min)(); in subtract()
108 return (duration_type::min)(); in subtract()
128 explicit posix_time_duration(const duration_type& d) in posix_time_duration()
176 duration_type d_;
[all …]
/third_party/boost/libs/coroutine/performance/asymmetric/
Dperformance_switch.cpp46 duration_type measure_time_void( duration_type overhead) in measure_time_void()
55 duration_type total = clock_type::now() - start; in measure_time_void()
63 duration_type measure_time_int( duration_type overhead) in measure_time_int()
72 duration_type total = clock_type::now() - start; in measure_time_int()
80 duration_type measure_time_x( duration_type overhead) in measure_time_x()
89 duration_type total = clock_type::now() - start; in measure_time_x()
179 duration_type overhead_c = overhead_clock(); in main()
/third_party/boost/libs/coroutine2/performance/segmented/
Dperformance_switch.cpp45 duration_type measure_time_void( duration_type overhead) in measure_time_void()
54 duration_type total = clock_type::now() - start; in measure_time_void()
62 duration_type measure_time_int( duration_type overhead) in measure_time_int()
71 duration_type total = clock_type::now() - start; in measure_time_int()
79 duration_type measure_time_x( duration_type overhead) in measure_time_x()
88 duration_type total = clock_type::now() - start; in measure_time_x()
176 duration_type overhead_c = overhead_clock(); in main()
Dperformance_create_segmented.cpp28 duration_type measure_time( duration_type overhead) in measure_time()
36 duration_type total = clock_type::now() - start; in measure_time()
87 duration_type overhead_c = overhead_clock(); in main()
/third_party/boost/libs/coroutine/performance/symmetric/
Dperformance_switch.cpp45 duration_type measure_time_void( duration_type overhead) in measure_time_void()
55 duration_type total = clock_type::now() - start; in measure_time_void()
63 duration_type measure_time_int( duration_type overhead) in measure_time_int()
72 duration_type total = clock_type::now() - start; in measure_time_int()
80 duration_type measure_time_x( duration_type overhead) in measure_time_x()
90 duration_type total = clock_type::now() - start; in measure_time_x()
181 duration_type overhead_c = overhead_clock(); in main()
/third_party/boost/boost/asio/
Dtime_traits.hpp42 typedef boost::posix_time::time_duration duration_type; typedef
55 static time_type add(const time_type& t, const duration_type& d) in add()
61 static duration_type subtract(const time_type& t1, const time_type& t2) in subtract()
74 const duration_type& d) in to_posix_duration()
Dbasic_deadline_timer.hpp151 typedef typename traits_type::duration_type duration_type; typedef in boost::asio::basic_deadline_timer
238 const duration_type& expiry_time) in basic_deadline_timer()
260 const duration_type& expiry_time, in basic_deadline_timer()
517 duration_type expires_from_now() const in expires_from_now()
544 std::size_t expires_from_now(const duration_type& expiry_time) in expires_from_now()
575 std::size_t expires_from_now(const duration_type& expiry_time, in expires_from_now()
/third_party/boost/libs/asio/include/boost/asio/
Dtime_traits.hpp42 typedef boost::posix_time::time_duration duration_type; typedef
55 static time_type add(const time_type& t, const duration_type& d) in add()
61 static duration_type subtract(const time_type& t1, const time_type& t2) in subtract()
74 const duration_type& d) in to_posix_duration()
Dbasic_deadline_timer.hpp151 typedef typename traits_type::duration_type duration_type; typedef in boost::asio::basic_deadline_timer
238 const duration_type& expiry_time) in basic_deadline_timer()
260 const duration_type& expiry_time, in basic_deadline_timer()
517 duration_type expires_from_now() const in expires_from_now()
544 std::size_t expires_from_now(const duration_type& expiry_time) in expires_from_now()
575 std::size_t expires_from_now(const duration_type& expiry_time, in expires_from_now()
/third_party/boost/libs/coroutine2/performance/
Dperformance.cpp29 duration_type measure_time_void( duration_type overhead) { in measure_time_void()
35 duration_type total = clock_type::now() - start; in measure_time_void()
82 duration_type overhead_c = overhead_clock(); in main()
Dclock.hpp20 typedef clock_type::duration duration_type; typedef
33 duration_type overhead_clock() in overhead_clock()
42 return duration_type( std::accumulate( overhead.begin(), overhead.end(), 0) / iterations); in overhead_clock()
/third_party/boost/boost/icl/
Dgregorian.hpp82 return x += boost::gregorian::date::duration_type::unit(); in operator ++()
87 return x -= boost::gregorian::date::duration_type::unit(); in operator --()
112 return x += boost::gregorian::date::duration_type::unit(); in operator ++()
117 return x -= boost::gregorian::date::duration_type::unit(); in operator --()
/third_party/boost/libs/context/performance/
Dclock.hpp20 typedef clock_type::duration duration_type; typedef
33 duration_type overhead_clock() in overhead_clock()
42 return duration_type( std::accumulate( overhead.begin(), overhead.end(), 0) / iterations); in overhead_clock()
/third_party/boost/libs/fiber/performance/
Dclock.hpp20 typedef clock_type::duration duration_type; typedef
32 duration_type overhead_clock() in overhead_clock()
41 return duration_type( std::accumulate( overhead.begin(), overhead.end(), 0) / iterations); in overhead_clock()
/third_party/boost/libs/coroutine/performance/
Dclock.hpp20 typedef clock_type::duration duration_type; typedef
32 duration_type overhead_clock() in overhead_clock()
41 return duration_type( std::accumulate( overhead.begin(), overhead.end(), 0) / iterations); in overhead_clock()
/third_party/boost/libs/coroutine/performance/symmetric/segmented/
Dperformance_create_segmented.cpp26 duration_type measure_time( duration_type overhead) in measure_time()
33 duration_type total = clock_type::now() - start; in measure_time()
87 duration_type overhead_c = overhead_clock(); in main()
/third_party/boost/libs/coroutine/performance/asymmetric/segmented/
Dperformance_create_segmented.cpp27 duration_type measure_time( duration_type overhead) in measure_time()
34 duration_type total = clock_type::now() - start; in measure_time()
88 duration_type overhead_c = overhead_clock(); in main()

1234