Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TOrderedComparator
Inherited By:
None.
Purpose:
TOrderedOperatorComparator is an abstract class that you can use to perform comparison and hash operations on comparator objects.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Do not derive any classes from TOrderedOperatorComparator.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
- TOrderedOperatorComparator ()
- TOrderedOperatorComparator (const TOrderedOperatorComparator < AType > &)
Interface Category:
API.
Purpose:
- Default constructor.
- Copy constructor.
Calling Context:
- Call this function directly anywhere the creation of a TOrderedOperatorComparator is desired.
- Call this function directly to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TOrderedOperatorComparator ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Call this function directly to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual EComparisonResult Compare (const AType & leftObj, const AType & rightObj) const
Interface Category:
API.
Purpose:
Compares two objects of the same type.
Calling Context:
Call this function directly to do an ordered compare of two AType objects.
Parameters:
- const AType & leftObj -The left-hand object.
- const AType & rightObj -The right-hand object.
Return Value:
Returns kLessThan, kGreaterThan, kEqual, kNotEqual, or kUndefined.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual HashResult GetHash (const AType & obj) const
Interface Category:
API.
Purpose:
Calls an object's operator for generating a hash value.
Calling Context:
Call this function directly to generate a hash value for an object.
Parameters:
- const AType & obj -The object for which a hash value is to be generated.
Return Value:
The hash value generated.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
const TOrderedOperatorComparator < AType > & operator =(const TOrderedOperatorComparator < AType > &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Call this function directly when an object is assigned to another compatible object.
Parameters:
Return Value:
A reference to the left-hand object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual EComparisonResult OrderedCompare (const AType & leftObj, const AType & rightObj) const
Interface Category:
API.
Purpose:
Compares two comparator objects.
Calling Context:
Call this function directly to compare two objects.
Normally called internally.
Could be called by anyone wishing to do an ordered compare of two AType objects.
Parameters:
- const AType & leftObj -The left-hand object.
- const AType & rightObj -The right-hand object.
Return Value:
Returns kLessThan, kGreaterThan, kEqual, kNotEqual, or kUndefined.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.