Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TOrderedComparator
Inherited By:
None.
Purpose:
TOrderOldestEntityFirst derives from template class TOrderedComparator<TFileSystemEntity>. It is used to order File system entities by modification date, with the most recent date first. This is just a convenience class for use with sorted sequences. Clients do not need to understand the member functions, and should not ever call them. Rather, they only need to construct an instance of this class, and pass a reference to it to a TSortedSequenceOf<TFileSystemEntity> constructor.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
This class is designed to be used directly.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
virtual EComparisonResult OrderedCompare (const TFileSystemEntity &, const TFileSystemEntity &) const
Interface Category:
API.
Purpose:
Compares the modification date of the first File system entity with that of the second, and returns the comparison result.
Calling Context:
Clients should not call; this is for use only by the sorted sequence using this comparator.
Parameters:
Return Value:
The EComparisonResult result of the comparison of the modification date of the first File system entity with that of the second.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual HashResult GetHash (const TFileSystemEntity &) const
Interface Category:
API.
Purpose:
Returns a hash value for the specified File system entity.
Calling Context:
Clients should not call; this is for use only by the sorted sequence using this comparator.
Parameters:
- const TFileSystemEntity & -The File system entity for which a hash value will be computed.
Return Value:
A hash value for the specified File system entity.
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.