|
Maps SDK for C++ 1.0.0
|
Time distance representation based on meters and seconds. More...
Public Member Functions | |
| TimeDistance () | |
| Default constructor. | |
| TimeDistance (unsigned int urT, unsigned int urD, unsigned int rT=0, unsigned int rD=0, double beR=-1.) | |
| Constructor with unrestricted and restricted times. | |
| TimeDistance & | reset () |
| Reset object for reuse. | |
| TimeDistance & | assign (unsigned int urT, unsigned int urD, unsigned int rT=0, unsigned int rD=0, double beR=-1.) |
| Assign new values to this object. | |
| bool | empty () const |
| Check if empty. | |
| unsigned int | getTotalTime () const |
| Get the total time in seconds. | |
| unsigned int | getUnrestrictedTime () const |
| Get the unrestricted time in seconds. | |
| unsigned int | getRestrictedTime () const |
| Get the restricted time in seconds. | |
| unsigned int | getRestrictedTimeAtBegin () const |
| Get the restricted time at beginning. | |
| unsigned int | getRestrictedTimeAtEnd () const |
| Get the restricted time at end. | |
| unsigned int | getTotalDistance () const |
| Get the total distance in meters. | |
| unsigned int | getUnrestrictedDistance () const |
| Get the unrestricted distance in meters. | |
| unsigned int | getRestrictedDistance () const |
| Get the restricted distance in meters. | |
| unsigned int | getRestrictedDistanceAtBegin () const |
| Get the restricted distance at beginning in meters. | |
| unsigned int | getRestrictedDistanceAtEnd () const |
| Get the restricted distance at end in meters. | |
| bool | hasRestrictedBeginEndDifferentiation () const |
| Check if it has different begin/end. | |
| double | getRestrictedBeginEndRatio () |
| Get restricted begin/end ratio. | |
| bool | operator== (const TimeDistance &source) const |
| Comparison operator equal. | |
| bool | operator!= (const TimeDistance &source) const |
| Comparison operator not equal. | |
| TimeDistance | operator+ (const TimeDistance &source) const |
| Add operator. | |
| TimeDistance & | operator+= (const TimeDistance &source) |
| Add operator. | |
Time distance representation based on meters and seconds.
|
inline |
Constructor with unrestricted and restricted times.
| urT | Unrestricted time in seconds. |
| urD | Unrestricted distance in meters. |
| rT | Restricted time in seconds. |
| rD | Restricted distance in meters. |
| beR | Restricted begin/end ratio. |
|
inline |
Assign new values to this object.
| urT | Unrestricted time in seconds. |
| urD | Unrestricted distance in meters. |
| rT | Restricted time in seconds. |
| rD | Restricted distance in meters. |
| beR | Restricted begin/end ratio. |
|
inline |
Check if empty.
|
inline |
Get restricted begin/end ratio.
|
inline |
Get the restricted distance in meters.
|
inline |
Get the restricted distance at beginning in meters.
|
inline |
Get the restricted distance at end in meters.
|
inline |
Get the restricted time in seconds.
|
inline |
Get the restricted time at beginning.
|
inline |
Get the restricted time at end.
|
inline |
Get the total distance in meters.
|
inline |
Get the total time in seconds.
|
inline |
Get the unrestricted distance in meters.
|
inline |
Get the unrestricted time in seconds.
|
inline |
Check if it has different begin/end.
|
inline |
Comparison operator not equal.
| source | TimeDistance to compare to. |
|
inline |
Add operator.
| source | TimeDistance to add. |
|
inline |
Add operator.
| source | TimeDistance to add. |
|
inline |
Comparison operator equal.
| source | TimeDistance to compare to. |
|
inline |
Reset object for reuse.