From 4fadd968fa12130524c8380f33fcfe25d4de79e5 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 13 Sep 2017 11:24:46 +0900 Subject: Imported Upstream version 1.65.0 Change-Id: Icf8400b375482cb11bcf77440a6934ba360d6ba4 Signed-off-by: DongHun Kwak --- doc/html/boost/date_time/base_time.html | 108 ++++++++++++++++---------------- 1 file changed, 54 insertions(+), 54 deletions(-) (limited to 'doc/html/boost/date_time/base_time.html') diff --git a/doc/html/boost/date_time/base_time.html b/doc/html/boost/date_time/base_time.html index f22d14116f..76e208b6bb 100644 --- a/doc/html/boost/date_time/base_time.html +++ b/doc/html/boost/date_time/base_time.html @@ -38,7 +38,7 @@ { public: // types - typedef void _is_boost_date_time_time_point; + typedef void _is_boost_date_time_time_point; typedef T time_type; typedef time_system::time_rep_type time_rep_type; typedef time_system::date_type date_type; @@ -46,94 +46,94 @@ typedef time_system::time_duration_type time_duration_type; // construct/copy/destruct - base_time(const date_type &, const time_duration_type &, + base_time(const date_type &, const time_duration_type &, dst_flags = not_dst); - base_time(special_values); - base_time(const time_rep_type &); + base_time(special_values); + base_time(const time_rep_type &); - // public member functions - date_type date() const; - time_duration_type time_of_day() const; - std::string zone_name(bool = false) const; - std::string zone_abbrev(bool = false) const; - std::string zone_as_posix_string() const; - bool is_not_a_date_time() const; - bool is_infinity() const; - bool is_pos_infinity() const; - bool is_neg_infinity() const; - bool is_special() const; - bool operator==(const time_type &) const; - bool operator<(const time_type &) const; - time_duration_type operator-(const time_type &) const; - time_type operator+(const date_duration_type &) const; - time_type operator+=(const date_duration_type &); - time_type operator-(const date_duration_type &) const; - time_type operator-=(const date_duration_type &); - time_type operator+(const time_duration_type &) const; - time_type operator+=(const time_duration_type &); - time_type operator-(const time_duration_type &) const; - time_type operator-=(const time_duration_type &); + // public member functions + date_type date() const; + time_duration_type time_of_day() const; + std::string zone_name(bool = false) const; + std::string zone_abbrev(bool = false) const; + std::string zone_as_posix_string() const; + bool is_not_a_date_time() const; + bool is_infinity() const; + bool is_pos_infinity() const; + bool is_neg_infinity() const; + bool is_special() const; + bool operator==(const time_type &) const; + bool operator<(const time_type &) const; + time_duration_type operator-(const time_type &) const; + time_type operator+(const date_duration_type &) const; + time_type operator+=(const date_duration_type &); + time_type operator-(const date_duration_type &) const; + time_type operator-=(const date_duration_type &); + time_type operator+(const time_duration_type &) const; + time_type operator+=(const time_duration_type &); + time_type operator-(const time_duration_type &) const; + time_type operator-=(const time_duration_type &); };
-

Description

+

Description

This class is a skeleton for the interface of a temporal type with a resolution that is higher than a day. It is intended that this class be the base class and that the actual time class be derived using the BN pattern. In this way, the derived class can make decisions such as 'should there be a default constructor' and what should it set its value to, should there be optional constructors say allowing only an time_durations that generate a time from a clock,etc. So, in fact multiple time types can be created for a time_system with different construction policies, and all of them can perform basic operations by only writing a copy constructor. Finally, compiler errors are also shorter.

The real behavior of the time class is provided by the time_system template parameter. This class must provide all the logic for addition, subtraction, as well as define all the interface types.

-

+

base_time public construct/copy/destruct

    -
  1. base_time(const date_type & day, const time_duration_type & td, 
    +
  2. base_time(const date_type & day, const time_duration_type & td, 
               dst_flags dst = not_dst);
  3. -
  4. base_time(special_values sv);
  5. -
  6. base_time(const time_rep_type & rhs);
  7. +
  8. base_time(special_values sv);
  9. +
  10. base_time(const time_rep_type & rhs);
-

-base_time public member functions

+

+base_time public member functions

    -
  1. date_type date() const;
  2. -
  3. time_duration_type time_of_day() const;
  4. +
  5. date_type date() const;
  6. +
  7. time_duration_type time_of_day() const;
  8. -
    std::string zone_name(bool = false) const;
    +
    std::string zone_name(bool = false) const;

    Optional bool parameter will return time zone as an offset (ie "+07:00"). Empty string is returned for classes that do not use a time_zone

  9. -
    std::string zone_abbrev(bool = false) const;
    +
    std::string zone_abbrev(bool = false) const;

    Optional bool parameter will return time zone as an offset (ie "+07:00"). Empty string is returned for classes that do not use a time_zone

  10. -
    std::string zone_as_posix_string() const;
    An empty string is returned for classes that do not use a time_zone.
  11. +
    std::string zone_as_posix_string() const;
    An empty string is returned for classes that do not use a time_zone.
  12. -
    bool is_not_a_date_time() const;
    check to see if date is not a value
  13. +
    bool is_not_a_date_time() const;
    check to see if date is not a value
  14. -
    bool is_infinity() const;
    check to see if date is one of the infinity values
  15. +
    bool is_infinity() const;
    check to see if date is one of the infinity values
  16. -
    bool is_pos_infinity() const;
    check to see if date is greater than all possible dates
  17. +
    bool is_pos_infinity() const;
    check to see if date is greater than all possible dates
  18. -
    bool is_neg_infinity() const;
    check to see if date is greater than all possible dates
  19. +
    bool is_neg_infinity() const;
    check to see if date is greater than all possible dates
  20. -
    bool is_special() const;
    check to see if time is a special value
  21. +
    bool is_special() const;
    check to see if time is a special value
  22. -
    bool operator==(const time_type & rhs) const;
    Equality operator – others generated by boost::equality_comparable.
  23. +
    bool operator==(const time_type & rhs) const;
    Equality operator – others generated by boost::equality_comparable.
  24. -
    bool operator<(const time_type & rhs) const;
    Equality operator – others generated by boost::less_than_comparable.
  25. +
    bool operator<(const time_type & rhs) const;
    Equality operator – others generated by boost::less_than_comparable.
  26. -
    time_duration_type operator-(const time_type & rhs) const;
    difference between two times
  27. +
    time_duration_type operator-(const time_type & rhs) const;
    difference between two times
  28. -
    time_type operator+(const date_duration_type & dd) const;
    add date durations
  29. -
  30. time_type operator+=(const date_duration_type & dd);
  31. +
    time_type operator+(const date_duration_type & dd) const;
    add date durations +
  32. time_type operator+=(const date_duration_type & dd);
  33. -
    time_type operator-(const date_duration_type & dd) const;
    subtract date durations
  34. -
  35. time_type operator-=(const date_duration_type & dd);
  36. +
    time_type operator-(const date_duration_type & dd) const;
    subtract date durations +
  37. time_type operator-=(const date_duration_type & dd);
  38. -
    time_type operator+(const time_duration_type & td) const;
    add time durations
  39. -
  40. time_type operator+=(const time_duration_type & td);
  41. +
    time_type operator+(const time_duration_type & td) const;
    add time durations +
  42. time_type operator+=(const time_duration_type & td);
  43. -
    time_type operator-(const time_duration_type & rhs) const;
    subtract time durations
  44. -
  45. time_type operator-=(const time_duration_type & td);
  46. +
    time_type operator-(const time_duration_type & rhs) const;
    subtract time durations +
  47. time_type operator-=(const time_duration_type & td);
-- cgit v1.2.3