| 1 | #cxx . . $ `<file>/chrono/period.h`/ifndef CHRONO_UTILITIES_PERIOD_H |
| 2 | #define CHRONO_UTILITIES_PERIOD_Hcxx . . $ `chrono/period.h:2:9`! |
| 3 | |
| 4 | #include "./datetime.h"cxx . . $ `<file>/chrono/datetime.h`/ |
| 5 | |
| 6 | namespace CppUtilitiescxx . . $ CppUtilities/ { |
| 7 | |
| 8 | class CPP_UTILITIES_EXPORTcxx . . $ `global.h:11:9`! Periodcxx . . $ CppUtilities/Period# { |
| 9 | public: |
| 10 | constexpr Periodcxx . . $ CppUtilities/Period#Period(49f6e7a06ebc5aa8).(); |
| 11 | Periodcxx . . $ CppUtilities/Period#Period(46fa059ed87d5dae).(DateTimecxx . . $ CppUtilities/DateTime# begin, DateTimecxx . . $ CppUtilities/DateTime# end); |
| 12 | constexpr int yearscxx . . $ CppUtilities/Period#years(455f465bc33b4cdf).() const; |
| 13 | constexpr int monthscxx . . $ CppUtilities/Period#months(455f465bc33b4cdf).() const; |
| 14 | constexpr int dayscxx . . $ CppUtilities/Period#days(455f465bc33b4cdf).() const; |
| 15 | |
| 16 | private: |
| 17 | int m_yearscxx . . $ CppUtilities/Period#m_years.; |
| 18 | int m_monthscxx . . $ CppUtilities/Period#m_months.; |
| 19 | int m_dayscxx . . $ CppUtilities/Period#m_days.; |
| 20 | }; |
| 21 | |
| 22 | constexpr Periodcxx . . $ CppUtilities/Period#::Periodcxx . . $ CppUtilities/Period#Period(49f6e7a06ebc5aa8).() |
| 23 | : m_yearscxx . . $ CppUtilities/Period#m_years.(0) |
| 24 | , m_monthscxx . . $ CppUtilities/Period#m_months.(0) |
| 25 | , m_dayscxx . . $ CppUtilities/Period#m_days.(0) |
| 26 | { |
| 27 | } |
| 28 | |
| 29 | /*! |
| 30 | * \brief Returns the years component of the period represented by the current instance. |
| 31 | */ |
| 32 | constexpr int Periodcxx . . $ CppUtilities/Period#::yearscxx . . $ CppUtilities/Period#years(455f465bc33b4cdf).() const |
| 33 | { |
| 34 | return m_yearscxx . . $ CppUtilities/Period#m_years.; |
| 35 | } |
| 36 | |
| 37 | /*! |
| 38 | * \brief Returns the months component of the period represented by the current instance. |
| 39 | */ |
| 40 | constexpr int Periodcxx . . $ CppUtilities/Period#::monthscxx . . $ CppUtilities/Period#months(455f465bc33b4cdf).() const |
| 41 | { |
| 42 | return m_monthscxx . . $ CppUtilities/Period#m_months.; |
| 43 | } |
| 44 | |
| 45 | /*! |
| 46 | * \brief Returns the days component of the period represented by the current instance. |
| 47 | */ |
| 48 | constexpr int Periodcxx . . $ CppUtilities/Period#::dayscxx . . $ CppUtilities/Period#days(455f465bc33b4cdf).() const |
| 49 | { |
| 50 | return m_dayscxx . . $ CppUtilities/Period#m_days.; |
| 51 | } |
| 52 | |
| 53 | CPP_UTILITIES_EXPORTcxx . . $ `global.h:11:9`! DateTimecxx . . $ CppUtilities/DateTime# operatorcxx . . $ CppUtilities/operator+(aea77c219e118c30).+(DateTimecxx . . $ CppUtilities/DateTime# begin, Periodcxx . . $ CppUtilities/Period# period); |
| 54 | |
| 55 | } // namespace CppUtilities |
| 56 | |
| 57 | #endif // CHRONO_UTILITIES_PERIOD_H |