Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32std.h>

Class TTimeIntervalBase

class TTimeIntervalBase;

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.

Members

Defined in TTimeIntervalBase:


Construction and destruction


TTimeIntervalBase()

protected: inline TTimeIntervalBase();

Description

Default constructor.


TTimeIntervalBase(TInt)

protected: inline TTimeIntervalBase(TInt aInterval);

Description

Constructor taking an interval value.

Parameters

TInt aInterval

The interval value.

[Top]


Member functions


operator==(TTimeIntervalBase)const

inline TBool operator==(TTimeIntervalBase aInterval) const;

Description

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

Parameters

TTimeIntervalBase aInterval

The time interval to be compared with this time interval.

Return value

TBool

True if the two time intervals are equal. False otherwise.


operator!=(TTimeIntervalBase)const

inline TBool operator!=(TTimeIntervalBase aInterval) const;

Description

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

Parameters

TTimeIntervalBase aInterval

The time interval to be compared with this time interval.

Return value

TBool

True if the two time intervals differ. False otherwise.


operator>=(TTimeIntervalBase)const

inline TBool operator>=(TTimeIntervalBase aInterval) const;

Description

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

Parameters

TTimeIntervalBase aInterval

The time interval to be compared with this time interval.

Return value

TBool

True if this time interval is greater than or equal to the specified time interval. False otherwise.


operator<=(TTimeIntervalBase)const

inline TBool operator<=(TTimeIntervalBase aInterval) const;

Description

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

Parameters

TTimeIntervalBase aInterval

The time interval to be compared with this time interval.

Return value

TBool

True if this time interval is less than or equal to the specified time interval. False otherwise.


operator>(TTimeIntervalBase)const

inline TBool operator>(TTimeIntervalBase aInterval) const;

Description

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

Parameters

TTimeIntervalBase aInterval

The time interval to be compared with this time interval.

Return value

TBool

True if this time interval is greater than the specified time interval. False otherwise.


operator<(TTimeIntervalBase)const

inline TBool operator<(TTimeIntervalBase aInterval) const;

Description

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

Parameters

TTimeIntervalBase aInterval

The time interval to be compared with this time interval.

Return value

TBool

True if this time interval is less than the specified time interval. False otherwise.


Int()const

inline TInt Int() const;

Description

Gets the time interval as a 32 bit integer.

Return value

TInt

The time interval as a 32 bit integer.

[Top]


Member data


iInterval

protected: TInt iInterval;

Description