class TTimeIntervalBase |
Provides a base class for all time interval classes using a 32-bit representation.
It supports retrieving the interval and provides various operations for comparing intervals. Its concrete derived classes can be added to and subtracted from a TTime .
The comparison operators simply compare the integer representations of the two intervals. They do not take account of different time interval units. So, for example, when comparing for equality an interval of three hours with an interval of three days, the result is true.
Public Member Functions | |
---|---|
TInt | Int () |
TBool | operator!= ( TTimeIntervalBase ) |
TBool | operator< ( TTimeIntervalBase ) |
TBool | operator<= ( TTimeIntervalBase ) |
TBool | operator== ( TTimeIntervalBase ) |
TBool | operator> ( TTimeIntervalBase ) |
TBool | operator>= ( TTimeIntervalBase ) |
Protected Member Functions | |
---|---|
TTimeIntervalBase () | |
TTimeIntervalBase ( TInt ) |
Protected Attributes | |
---|---|
TInt | iInterval |
TTimeIntervalBase | ( | TInt | aInterval | ) | [protected, inline] |
Constructor taking an interval value.
TInt aInterval | The interval value. |
TBool | operator!= | ( | TTimeIntervalBase | aInterval | ) | const [inline] |
Tests whether this time interval is not the same as the specified time interval.
TTimeIntervalBase aInterval | The time interval to be compared with this time interval. |
TBool | operator< | ( | TTimeIntervalBase | aInterval | ) | const [inline] |
Tests whether this time interval is less than the specified time interval.
TTimeIntervalBase aInterval | The time interval to be compared with this time interval. |
TBool | operator<= | ( | TTimeIntervalBase | aInterval | ) | const [inline] |
Tests whether this time interval is less than or equal to the specified time interval.
TTimeIntervalBase aInterval | The time interval to be compared with this time interval. |
TBool | operator== | ( | TTimeIntervalBase | aInterval | ) | const [inline] |
Tests whether this time interval is the same as the specified time interval.
TTimeIntervalBase aInterval | The time interval to be compared with this time interval. |
TBool | operator> | ( | TTimeIntervalBase | aInterval | ) | const [inline] |
Tests whether this time interval is greater than the specified time interval.
TTimeIntervalBase aInterval | The time interval to be compared with this time interval. |
TBool | operator>= | ( | TTimeIntervalBase | aInterval | ) | const [inline] |
Tests whether this time interval is greater than or equal to the specified time interval.
TTimeIntervalBase aInterval | The time interval to be compared with this time interval. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.