#include <meos/types/temporal/TInstant.hpp>
template<typename BaseType>
TInstant class
A value at a particular instant in time.
Contents
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_TInstant(BaseType value_, time_
geometry<B>::type* = nullptr> point t_, int srid) -
template<typename B = BaseType, typename is_TInstant(std::pair<BaseType, time_
geometry<B>::type* = nullptr> point> p, int srid) -
template<typename B = BaseType, typename is_TInstant(std::string const& value, std::string const& t, int srid)
geometry<B>::type* = nullptr> -
template<typename B = BaseType, typename is_TInstant(std::pair<std::string const, std::string const> p, int srid)
geometry<B>::type* = nullptr> -
template<typename B = BaseType, typename is_TInstant(std::string const& serialized, int srid)
geometry<B>::type* = nullptr>
Public functions
-
template<typename B = BaseType, typename is_auto with_srid(int srid) const -> TInstant<BaseType>
geometry<B>::type* = nullptr> - 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. |
---|