MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLTimeInterval Class Reference

Detailed Description

This class represents an interval between two TSLTimeInstant objects.

 TSLTimeInterval (TSLTime64 dt=0)
 
TSLTime64 theInterval () const
 
TSLTimeIntervaloperator+= (TSLTimeInterval const &dt)
 
TSLTimeIntervaloperator-= (TSLTimeInterval const &dt)
 
TSLTimeInterval const operator+ (TSLTimeInterval const &dt) const
 
TSLTimeInterval const operator- (TSLTimeInterval const &dt) const
 
TSLTimeIntervaloperator*= (double f)
 
static TSLTimeInterval nullInterval ()
 

Constructor & Destructor Documentation

◆ TSLTimeInterval()

TSLTimeInterval::TSLTimeInterval ( TSLTime64 dt = 0)
inline

Constructor. Sets the time interval to the supplied value.

Parameters
timeA 64-bit value representing the time interval. Default = 0.

Member Function Documentation

◆ nullInterval()

TSLTimeInterval TSLTimeInterval::nullInterval ( )
inlinestatic

Static method to create an empty interval.

◆ operator*=()

TSLTimeInterval & TSLTimeInterval::operator*= ( double f)
inline

Scales the time interval by the given amount.

Parameters
fThe value to scale the interval by.

◆ operator+()

TSLTimeInterval const TSLTimeInterval::operator+ ( TSLTimeInterval const & dt) const
inline

Returns a new interval representing the sum of this interval and the given interval.

Parameters
dtThe time interval to add.

◆ operator+=()

TSLTimeInterval & TSLTimeInterval::operator+= ( TSLTimeInterval const & dt)
inline

Increments the interval by the given time interval.

Parameters
dtThe time interval to increment by.

◆ operator-()

TSLTimeInterval const TSLTimeInterval::operator- ( TSLTimeInterval const & dt) const
inline

Returns a new interval representing the difference between this interval and the given interval.

Parameters
dtThe time interval to subtract.

◆ operator-=()

TSLTimeInterval & TSLTimeInterval::operator-= ( TSLTimeInterval const & dt)
inline

Decrements the interval by the given time interval.

Parameters
dtThe time interval to decrement by.

◆ theInterval()

TSLTime64 TSLTimeInterval::theInterval ( ) const
inline

Returns a value representing the raw interval.