template<typename BaseType>
meos::TInstant class

A value at a particular instant in time.

Base classes

template<typename BaseType = float>
class Temporal<BaseType>
Base for all the temporal types - TInstant, TInstantSet, TSequence, TSequenceSet.
template<typename TemporalType>
struct TemporalComparators<TInstant<BaseType>>
template<typename TemporalType, typename TInstantType, typename BaseType>
struct TInstantFunctions<TInstant<BaseType>, TInstant<BaseType>, BaseType>

Constructors, destructors, conversion operators

TInstant()
TInstant(BaseType value, time_point t)
TInstant(std::pair<BaseType, time_point> p)
TInstant(std::string const& value, std::string const& t)
TInstant(std::pair<std::string const, std::string const> p)
TInstant(std::string const& serialized)
template<typename B = BaseType, typename is_geometry<B>::type* = nullptr>
TInstant(BaseType value_, time_point t_, int srid)
template<typename B = BaseType, typename is_geometry<B>::type* = nullptr>
TInstant(std::pair<BaseType, time_point> p, int srid)
template<typename B = BaseType, typename is_geometry<B>::type* = nullptr>
TInstant(std::string const& value, std::string const& t, int srid)
template<typename B = BaseType, typename is_geometry<B>::type* = nullptr>
TInstant(std::pair<std::string const, std::string const> p, int srid)
template<typename B = BaseType, typename is_geometry<B>::type* = nullptr>
TInstant(std::string const& serialized, int srid)

Public functions

template<typename B = BaseType, typename is_geometry<B>::type* = nullptr>
auto with_srid(int srid) const -> TInstant<BaseType>
auto compare(Temporal<BaseType> const& other) const -> int override
auto getValue() const -> BaseType
auto getTimestamp() const -> time_point
auto clone() const -> std::unique_ptr<TInstant<BaseType>>
auto duration() const -> TemporalDuration override
Duration of the temporal value, that is, one of Instant, InstantSet, Sequence, or SequenceSet.
auto instants() const -> std::set<TInstant>
Set of instants.
auto timespan() const -> duration_ms override
Interval on which the temporal value is defined.
auto getValues() const -> std::set<Range<BaseType>> override
Set of values taken by the temporal value.
auto timestamps() const -> std::set<time_point> override
Set of timestamps.
auto getTime() const -> PeriodSet override
Period set on which the temporal value is defined.
auto period() const -> Period override
Period on which the temporal value is defined ignoring potential time gaps.
auto shift(duration_ms const timedelta) const -> std::unique_ptr<TInstant>
auto intersectsTimestamp(time_point const datetime) const -> bool override
Does the temporal value intersect the timestamp?
auto intersectsPeriod(Period const period) const -> bool override
Does the temporal value intersect the period?
auto read(std::istream& in) -> std::istream&
auto write(std::ostream& os, bool with_srid = true) const -> std::ostream&

Private functions

auto clone_impl() const -> TInstant* override
auto shift_impl(duration_ms const timedelta) const -> TInstant* override

Friends

auto operator>>(std::istream& in, TInstant& instant) -> std::istream&
auto operator<<(std::ostream& os, TInstant const& instant) -> std::ostream&

Function documentation

template<typename BaseType>
TemporalDuration meos::TInstant<BaseType>::duration() const override

Duration of the temporal value, that is, one of Instant, InstantSet, Sequence, or SequenceSet.

Returns The temporal duration of the current object.