Home
last modified time | relevance | path

Searched refs:as_number (Results 1 – 25 of 27) sorted by relevance

12

/third_party/boost/boost/date_time/
Dint_adapter.hpp89 return (v == neg_infinity().as_number() || in is_inf()
90 v == pos_infinity().as_number()); in is_inf()
94 return (v == neg_infinity().as_number()); in is_neg_inf()
98 return (v == pos_infinity().as_number()); in is_pos_inf()
102 return (v == not_a_number().as_number()); in is_not_a_number()
120 return (value_ == neg_infinity().as_number() || in is_infinity()
121 value_ == pos_infinity().as_number()); in is_infinity()
125 return(value_ == pos_infinity().as_number()); in is_pos_infinity()
129 return(value_ == neg_infinity().as_number()); in is_neg_infinity()
133 return (value_ == not_a_number().as_number()); in is_nan()
[all …]
Dtime_resolution_traits.hpp34 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i;} in as_number() function
42 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i.as_number();} in as_number() function
50 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i;} in as_number() function
58 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i.as_number();} in as_number() function
106 static BOOST_CXX14_CONSTEXPR fractional_seconds_type as_number(impl_type i) in as_number() function in boost::date_time::time_resolution_traits
108 return frac_sec_type::as_number(i); in as_number()
Dtime_system_counted.hpp84 … return static_cast<unsigned long>(resolution_traits::as_number(time_count_) / frac_sec_per_day()); in day_count()
88 return resolution_traits::as_number(time_count_); in time_count()
92 return resolution_traits::as_number(time_count_) % frac_sec_per_day(); in tod()
102 return impl_type::is_pos_inf(time_count_.as_number()); in is_pos_infinity()
106 return impl_type::is_neg_inf(time_count_.as_number()); in is_neg_infinity()
110 return impl_type::is_not_a_number(time_count_.as_number()); in is_not_a_date_time()
253 impl_type::to_special((lhs.get_rep() - rhs.get_rep()).as_number()))); in subtract_times()
Ddate_duration.hpp61 return duration_rep_traits::as_number(days_); in days()
128 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i) { return i; } in as_number() function
138 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i) { return i.as_number(); } in as_number() function
Ddate_duration_types.hpp61 month_adjustor_type m_adj(_m.as_number()); in get_neg_offset()
66 month_adjustor_type m_adj(_m.as_number()); in get_offset()
181 month_adjustor_type m_adj(_y.as_number() * 12); in get_neg_offset()
186 month_adjustor_type m_adj(_y.as_number() * 12); in get_offset()
Ddate_generators.hpp461 duration_type dd(wd.as_number() - d.day_of_week().as_number()); in days_until_weekday()
479 duration_type dd(wd.as_number() - d.day_of_week().as_number()); in days_before_weekday()
Ddate_formatting_limited.hpp49 os << std::setw(2) << std::setfill('0') << month.as_number(); in format_month()
Ddate_formatting.hpp56 os << std::setw(2) << std::setfill(os.widen('0')) << month.as_number(); in format_month()
Ddate.hpp196 BOOST_CXX14_CONSTEXPR explicit date(date_rep_type days) : days_(days.as_number()) {} in date()
Ddate_formatting_locales.hpp61 os << std::setw(2) << std::setfill(os.widen('0')) << month.as_number(); in format_month()
Ddate_facet.hpp190 …turn std::use_facet<num_put>(a_ios.getloc()).put(next, a_ios, fill_char, dd.get_rep().as_number()); in put()
196 return f->put(next, a_ios, fill_char, dd.get_rep().as_number()); in put()
225 dtm.tm_mday = day.as_number(); in put()
Dtime_duration.hpp215 return traits_type::as_number(ticks_); in ticks()
/third_party/boost/boost/date_time/gregorian/
Dgreg_serialize.hpp140 typename gregorian::date_duration::duration_rep::int_type it = dr.as_number(); in save()
230 unsigned short us = gm.as_number(); in save()
256 unsigned short us = gd.as_number(); in save()
282 unsigned short us = gd.as_number(); in save()
314 gregorian::greg_month gm(pd.month().as_number()); in save()
352 typename gregorian::nth_kday_of_month::day_of_week_type d(nkd.day_of_week().as_number()); in save()
353 typename gregorian::nth_kday_of_month::month_type m(nkd.month().as_number()); in save()
395 typename gregorian::first_kday_of_month::day_of_week_type d(fkd.day_of_week().as_number()); in save()
396 typename gregorian::first_kday_of_month::month_type m(fkd.month().as_number()); in save()
434 typename gregorian::last_kday_of_month::day_of_week_type d(lkd.day_of_week().as_number()); in save()
[all …]
Dgreg_day.hpp46 BOOST_CXX14_CONSTEXPR value_type as_number() const {return value_;} in as_number() function in boost::gregorian::greg_day
Dgreg_weekday.hpp48 BOOST_CXX14_CONSTEXPR value_type as_number() const {return value_;} in as_number() function in boost::gregorian::greg_weekday
Dformatters_limited.hpp69 << ymd.month.as_number() //solves problem with gcc 3.1 hanging in to_sql_string()
Dgreg_month.hpp63 BOOST_CXX14_CONSTEXPR value_type as_number() const {return value_;} in as_number() function in boost::gregorian::greg_month
Dformatters.hpp111 << ymd.month.as_number() //solves problem with gcc 3.1 hanging in to_sql_string_type()
Dgreg_facet.hpp81 os << std::setw(2) << std::setfill(os.widen('0')) << m.as_number(); in operator <<()
/third_party/boost/libs/date_time/test/
Dtestint_adapter.cpp22 std::cout << "min: " << (int_type::min)().as_number() << std::endl; in print()
23 std::cout << "max: " << (int_type::max)().as_number() << std::endl; in print()
25 int_type::neg_infinity().as_number() << std::endl; in print()
27 int_type::pos_infinity().as_number() << std::endl; in print()
29 int_type::not_a_number().as_number() << std::endl; in print()
66 check("as_special convert", boost::date_time::neg_infin == int_type::to_special(i.as_number()) ); in test_int()
/third_party/boost/libs/date_time/test/gregorian/
Dtestgreg_month.cpp19 check("January as_number", m1.as_number() == 1); in test_month()
20 check("December as_number", m12.as_number() == 12); in test_month()
/third_party/boost/libs/log/src/setup/
Ddefault_formatter_factory.cpp192 m_strm << value.get_rep().as_number();
/third_party/python/Include/cpython/
Dobject.h281 PyNumberMethods as_number; member
/third_party/python/Objects/
Dtypeobject.c2755 type->tp_as_number = &et->as_number; in type_new_alloc()
3490 type->tp_as_number = &res->as_number; in PyType_FromModuleAndSpec()
7886 ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, DOC)
7888 ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, \
7891 ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, \
7894 ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_l, \
7897 ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_r, \
7900 ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_l, \
7903 ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_r, \
8115 else if ((size_t)offset >= offsetof(PyHeapTypeObject, as_number)) { in slotptr()
[all …]
/third_party/boost/libs/log/src/
Dtext_file_backend.cpp1100 m_Day(static_cast< unsigned char >(mday.as_number())), in rotation_at_time_point()
1144 …nt weekday = m_Day, previous_weekday = static_cast< int >(previous_date.day_of_week().as_number()); in operator ()()

12