home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) IBM Corp. 1992 */
- template <class Element>
- IACollection <Element> ::~IACollection ()
- {
- }
-
- template <class Element>
- void IACollection < Element >::
- addAllFrom (IACollection < Element > const& collection)
- { ICursor *cursor = collection.newCursor ();
- forCursor (*cursor) {
- add (collection.elementAt (*cursor));
- }
- delete cursor;
- };
-
- template <class Element>
- void IACollection < Element >::
- copy (IACollection < Element > const& aSet)
- { removeAll ();
- addAllFrom (aSet);
- };
-