home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) IBM Corp. 1992 */
-
-
- template < class Element, class Key >
- INumber IAKeySet < Element, Key >::
- numberOfElementsWithKey (Key const& key) const
- { if (containsElementWithKey (key))
- return 1;
- else
- return 0;
- }
-
- template < class Element, class Key >
- Boolean IAKeySet < Element, Key >::
- locateNextElementWithKey (Key const&, ICursor& cursor) const
- { cursor.invalidate ();
- return False;
- }
-
- template < class Element, class Key >
- INumber IAKeySet < Element, Key >::
- removeAllElementsWithKey (Key const& key)
- { if (removeElementWithKey (key))
- return 1;
- else
- return 0;
- }
-
- template < class Element, class Key >
- INumber IAKeySet < Element, Key >::
- numberOfDifferentKeys () const
- { return numberOfElements ();
- }
-
- template < class Element, class Key >
- Boolean IAKeySet < Element, Key >::
- setToNextWithDifferentKey (ICursor& cursor) const
- { return setToNext (cursor);
- }
-