tempoch-cpp 0.5.3
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 T >
 tempoch::Period (T, T) -> Period< T >
 
template<typename T >
std::vector< tempoch_period_mjd_ttempoch::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.