tempoch-cpp 0.5.5
Header-only C++ wrapper for tempoch
Loading...
Searching...
No Matches
period.hpp File Reference

Generic time periods parameterised by a typed time representation. More...

#include "qtty/qtty.hpp"
#include "time.hpp"
#include <ostream>
#include <vector>
Include dependency graph for period.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tempoch::TimeTraits< Time< S > >
struct  tempoch::TimeTraits< EncodedTime< S, F > >
struct  tempoch::TimeTraits< CivilTime >
class  tempoch::Period< T >

Namespaces

namespace  tempoch
namespace  tempoch::detail

Typedefs

using tempoch::TTMjdPeriod = Period<ModifiedJulianDate<scale::TT>>
using tempoch::UTCPeriod = Period<CivilTime>

Functions

template<typename Target, typename T>
auto tempoch::detail::convert_period_endpoint (const T &value)
template<typename TargetA, typename TargetB, typename T>
auto tempoch::detail::convert_period_endpoint (const T &value)
template<typename Target, typename T>
auto tempoch::detail::convert_period_endpoint_with (const T &value, const TimeContext &ctx)
template<typename TargetA, typename TargetB, typename T>
auto tempoch::detail::convert_period_endpoint_with (const T &value, const TimeContext &ctx)
template<typename T>
 tempoch::Period (T, T) -> Period< T >
template<typename T>
std::vector< tempoch_period_mjd_t > tempoch::detail::to_raw (const std::vector< Period< T > > &periods)
template<typename T>
std::vector< Period< T > > tempoch::detail::from_alloc (tempoch_period_mjd_t *ptr, std::size_t count)
template<typename T>
void tempoch::validate_periods (const std::vector< Period< T > > &periods)
template<typename T>
std::vector< Period< T > > tempoch::intersect_periods (const std::vector< Period< T > > &a, const std::vector< Period< T > > &b)
template<typename T>
std::vector< Period< T > > tempoch::union_periods (const std::vector< Period< T > > &a, const std::vector< Period< T > > &b)
template<typename T>
std::vector< Period< T > > tempoch::normalize_periods (const std::vector< Period< T > > &periods)
template<typename T>
std::ostream & tempoch::operator<< (std::ostream &os, const Period< T > &period)

Detailed Description

Generic time periods parameterised by a typed time representation.

Definition in file period.hpp.