API Guides > ConceptRT 3.x
Overloaded Operators

Detailed Description

Functions

TimeSpan operator- (const WeekNumber &left, const WeekNumber &right)
 Subtraction operator. More...
 
WeekNumber operator+ (const WeekNumber &left, const TimeSpan &timeSpan)
 Addition operator. More...
 
bool operator< (const WeekNumber &left, const WeekNumber &right)
 Less-than comparison operator. More...
 
bool operator> (const WeekNumber &left, const WeekNumber &right)
 Greater-than comparison operator. More...
 
bool operator<= (const WeekNumber &left, const WeekNumber &right)
 Less-than-or-equal comparison operator. More...
 
bool operator>= (const WeekNumber &left, const WeekNumber &right)
 Greater-than-or-equal comparison operator. More...
 
bool operator== (const WeekNumber &left, const WeekNumber &right)
 Equality operator. More...
 
bool operator!= (const WeekNumber &left, const WeekNumber &right)
 Finaliser. More...
 

Function Documentation

bool operator!= ( const WeekNumber left,
const WeekNumber right 
)

Finaliser.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is not equal to the second.
WeekNumber operator+ ( const WeekNumber left,
const TimeSpan timeSpan 
)

Addition operator.

Parameters
leftThe first value.
timeSpanA value to add to it.
Returns
The result of the operation.
TimeSpan operator- ( const WeekNumber left,
const WeekNumber right 
)

Subtraction operator.

Parameters
leftThe first value.
rightA value to subtract from it.
Returns
The result of the operation.
bool operator< ( const WeekNumber left,
const WeekNumber right 
)

Less-than comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is less than the second.
bool operator<= ( const WeekNumber left,
const WeekNumber right 
)

Less-than-or-equal comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is less than or equal to the second.
bool operator== ( const WeekNumber left,
const WeekNumber right 
)

Equality operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the parameters are considered equivalent.
bool operator> ( const WeekNumber left,
const WeekNumber right 
)

Greater-than comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is greater than to the second.
bool operator>= ( const WeekNumber left,
const WeekNumber right 
)

Greater-than-or-equal comparison operator.

Parameters
leftThe first instance to compare.
rightThe second instance to compare.
Returns
true if the first parameter is greater than or equal to the second.