home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cset21v1.zip
/
IBMCPP
/
IBMCLASS
/
IAKSSET.H
< prev
next >
Wrap
Text File
|
1993-09-22
|
2KB
|
51 lines
/*******************************************************************************
* *
* COPYRIGHT: *
* IBM C/C++ Tools Version 2.01 - Collection Class Library *
* Licensed Materials - Property of IBM *
* (C) Copyright IBM Corporation 1992, 1993 *
* All Rights Reserved *
* US Government Users Restricted Rights - Use, duplication, or disclosure *
* restricted by GSA ADP Schedule Contract with IBM Corp. *
* *
*******************************************************************************/
#ifndef _IAKSSET_H
#define _IAKSSET_H
#include <iglobals.h>
#include <icursor.h>
#include <iaksrt.h>
template < class Element, class Key >
class IAKeySortedSet :
public virtual IAKeySortedCollection < Element, Key > {
public:
virtual long compare (IAKeySortedSet < Element, Key > const&,
long (*comparisonFunction)
(Element const&,
Element const&)) const;
protected:
INumber numberOfElementsWithKey (Key const&) const;
IBoolean locateNextElementWithKey (Key const&,
ICursor&) const;
INumber removeAllElementsWithKey (Key const&);
INumber numberOfDifferentKeys () const;
IBoolean setToNextWithDifferentKey (ICursor&) const;
};
#ifdef __IBMCPP__
#ifndef __TEMPINC__
#include <iaksset.c>
#endif
#endif
#endif