Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
TTimeIntervalBase Class Reference

Provides a base class for all time interval classes using a 32-bit representation. More...

#include <e32std.h>

Inheritance diagram for TTimeIntervalBase:
TTimeIntervalDays TTimeIntervalHours TTimeIntervalMicroSeconds32 TTimeIntervalMinutes TTimeIntervalMonths TTimeIntervalSeconds TTimeIntervalYears

Public Member Functions

TBool operator== (TTimeIntervalBase aInterval) const
 Tests whether this time interval is the same as the specified time interval.
 
TBool operator!= (TTimeIntervalBase aInterval) const
 Tests whether this time interval is not the same as the specified time interval.
 
TBool operator>= (TTimeIntervalBase aInterval) const
 Tests whether this time interval is greater than or equal to the specified time interval.
 
TBool operator<= (TTimeIntervalBase aInterval) const
 Tests whether this time interval is less than or equal to the specified time interval.
 
TBool operator> (TTimeIntervalBase aInterval) const
 Tests whether this time interval is greater than the specified time interval.
 
TBool operator< (TTimeIntervalBase aInterval) const
 Tests whether this time interval is less than the specified time interval.
 
TInt Int () const
 Gets the time interval as a 32 bit integer.
 

Protected Member Functions

 TTimeIntervalBase ()
 Default constructor.
 
 TTimeIntervalBase (TInt aInterval)
 Constructor taking an interval value.
 

Protected Attributes

TInt iInterval
 

Detailed Description

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.

See also
TTime
API status
Published to all clients. Released API.

Definition at line 1646 of file e32std.h.

Constructor & Destructor Documentation

◆ TTimeIntervalBase() [1/2]

TTimeIntervalBase::TTimeIntervalBase ( )
inlineprotected

Default constructor.

(generated from Symbian Developer Library)

◆ TTimeIntervalBase() [2/2]

TTimeIntervalBase::TTimeIntervalBase ( TInt  aInterval)
inlineprotected

Constructor taking an interval value.

Parameters
aIntervalThe interval value.

(generated from Symbian Developer Library)

Member Function Documentation

◆ Int()

TInt TTimeIntervalBase::Int ( ) const
inline

Gets the time interval as a 32 bit integer.

(generated from Symbian Developer Library)

◆ operator!=()

TBool TTimeIntervalBase::operator!= ( TTimeIntervalBase  aInterval) const
inline

Tests whether this time interval is not the same as the specified time interval.

Parameters
aIntervalThe time interval to be compared with this time interval.

(generated from Symbian Developer Library)

◆ operator<()

TBool TTimeIntervalBase::operator< ( TTimeIntervalBase  aInterval) const
inline

Tests whether this time interval is less than the specified time interval.

Parameters
aIntervalThe time interval to be compared with this time interval.

(generated from Symbian Developer Library)

◆ operator<=()

TBool TTimeIntervalBase::operator<= ( TTimeIntervalBase  aInterval) const
inline

Tests whether this time interval is less than or equal to the specified time interval.

Parameters
aIntervalThe time interval to be compared with this time interval.

(generated from Symbian Developer Library)

◆ operator==()

TBool TTimeIntervalBase::operator== ( TTimeIntervalBase  aInterval) const
inline

Tests whether this time interval is the same as the specified time interval.

Parameters
aIntervalThe time interval to be compared with this time interval.

(generated from Symbian Developer Library)

◆ operator>()

TBool TTimeIntervalBase::operator> ( TTimeIntervalBase  aInterval) const
inline

Tests whether this time interval is greater than the specified time interval.

Parameters
aIntervalThe time interval to be compared with this time interval.

(generated from Symbian Developer Library)

◆ operator>=()

TBool TTimeIntervalBase::operator>= ( TTimeIntervalBase  aInterval) const
inline

Tests whether this time interval is greater than or equal to the specified time interval.

Parameters
aIntervalThe time interval to be compared with this time interval.

(generated from Symbian Developer Library)

Member Data Documentation

◆ iInterval

TInt TTimeIntervalBase::iInterval
protected

Definition at line 1660 of file e32std.h.


The documentation for this class was generated from the following files: