Class: TNullHashOperatorComparator

Declaration: Comparator.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TComparator

Inherited By:

None.

Purpose:

Provides a comparator over a class that does not have a Hash function

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TAbstractComparator.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TNullHashOperatorComparator::TNullHashOperatorComparator

  1. TNullHashOperatorComparator ()
  2. TNullHashOperatorComparator (const TNullHashOperatorComparator < AType > &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy Constructor

Calling Context:

  1. Call this function directly.
  2. Call this function directly to copy the comparator.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNullHashOperatorComparator::~TNullHashOperatorComparator

virtual ~ TNullHashOperatorComparator ()

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.

Member Function: TNullHashOperatorComparator::Compare

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 compare two objects. Call this function directly to do a null hash compare on two AType objects.

Parameters:

Return Value:

Returns kLessThan, kGreaterThan, kEqual, kNotEqual, or kUndefined.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNullHashOperatorComparator::GetHash

virtual HashResult GetHash (const AType & obj) const

Interface Category:

API.

Purpose:

Generates a hash value for 0 or an object.

Calling Context:

Call this function directly to generate a hash value for 0 or an object.

Parameters:

Return Value:

Returns 0.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNullHashOperatorComparator::operator=

const TNullHashOperatorComparator < AType > & operator =(const TNullHashOperatorComparator < 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 side object.

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.