home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- * *
- * IBM(R) VisualAge(TM) for C++ for Windows(R), Version 3.5 *
- * *
- * PID: 5622-880 *
- * - Licensed Material - Program-Property of IBM *
- * (C) Copyright IBM Corp. 1991, 1995 - All Right Reserved. *
- * *
- * US Government Users Restricted Rights - Use, duplication or *
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *
- * *
- * VisualAge, and IBM are trademarks or registered trademarks of *
- * International Business Machines Corporation. *
- * Windows is a registered trademark of Microsoft Corporation. *
- * *
- **********************************************************************/
-
- #ifndef _IICSR_H
- #define _IICSR_H
-
- #include <iiasr.h>
-
- #pragma SOMAsDefault (off)
-
- #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
- #pragma pack (4)
-
- template <class CInherited>
- class ICSortedRelationImpl : public CInherited {
- public:
-
- typedef CInherited::Ops Ops;
-
- ICSortedRelationImpl
- (Ops&, INumber);
-
- ICSortedRelationImpl
- (Ops&, ICSortedRelationImpl
- <CInherited> const&);
-
- IBoolean Add (void const*, ICursorImpl&);
-
- void AddAllFrom (IACollectionImpl const&);
-
- IBoolean AddOrReplaceElementWithKey
- (void const*, ICursorImpl&);
-
- void* Any () const;
-
- void* ElementAt (ICursorImpl const&) const;
-
- void* ElementAtPosition
- (IPosition) const;
-
- void* ElementWithKey (void const*) const;
-
- void* First () const;
-
- IBoolean IsFirstAt (ICursorImpl const&) const;
-
- IBoolean IsLastAt (ICursorImpl const&) const;
-
- void* Last () const;
-
- IBoolean Locate (void const*, ICursorImpl&) const;
-
- IBoolean LocateElementWithKey
- (void const*, ICursorImpl&) const;
-
- IBoolean LocateNext (void const*, ICursorImpl&) const;
-
- IBoolean LocateNextElementWithKey
- (void const*, ICursorImpl&) const;
-
- IBoolean LocateOrAdd (void const*, ICursorImpl&);
-
- IBoolean LocateOrAddElementWithKey
- (void const*, ICursorImpl&);
-
- IPosition
- PositionAt (ICursorImpl const&) const;
-
- void RemoveAt (ICursorImpl&);
-
- void RemoveAtPosition (IPosition);
-
- void RemoveFirst ();
-
- void RemoveLast ();
-
- void ReplaceAt (ICursorImpl const& cursor,
- void const*);
-
- void ReplaceAtPosition
- (IPosition, void const*);
-
- IBoolean ReplaceElementWithKey
- (void const*, ICursorImpl&);
-
- IBoolean SetToFirst (ICursorImpl&) const;
-
- IBoolean SetToLast (ICursorImpl&) const;
-
- IBoolean SetToNext (ICursorImpl&) const;
-
- IBoolean SetToNextWithDifferentKey
- (ICursorImpl&) const;
-
- void SetToPosition (IPosition, ICursorImpl&) const;
-
- IBoolean SetToPrevious (ICursorImpl&) const;
-
- protected:
-
- private:
-
-
- };
-
- #pragma SOMAsDefault (pop)
-
- #if ! defined (__TEMPINC__)
- #include <iicsr.c>
- #endif
-
- #pragma info (restore)
- #pragma pack ()
-
- #endif
-