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. *
- * *
- **********************************************************************/
-
- // ---
- // IGBagAsListCursor
- // ---
-
- // public members
-
- template <class Element, class ElementOps>
- inline
- IGBagAsListCursor <Element, ElementOps>::
- IGBagAsListCursor
- (IGBagAsList
- <Element, ElementOps> const& collection)
- : IElementCursor <Element>
- (collection.ivImpl->CreateCursor ())
- {
- }
-
- template <class Element, class ElementOps>
- inline IGBagAsListCursor <Element, ElementOps>&
- IGBagAsListCursor <Element, ElementOps>::
- operator=
- (IGBagAsListCursor
- <Element, ElementOps> const& cursor)
- { Inherited::operator= (cursor);
- return *this;
- }
-
- // protected members
-
- template <class Element, class ElementOps>
- inline
- IGBagAsListCursor <Element, ElementOps>::
- IGBagAsListCursor (ICursorImpl* impl)
- : IElementCursor <Element> (impl)
- {
- }
-
- // ---
- // IGBagAsList
- // ---
-
- // public members
-
- template <class Element, class ElementOps>
- inline
- IGBagAsList <Element, ElementOps>::
- IGBagAsList (INumber numberOfElements)
- { SetImpl ((Implementation*) *new
- Instantiation (numberOfElements));
- }
-
- template <class Element, class ElementOps>
- inline
- IGBagAsList <Element, ElementOps>::
- IGBagAsList
- (IGBagAsList
- <Element, ElementOps> const& collection)
- { CloneImplOf (collection);
- }
-
- template <class Element, class ElementOps>
- inline IGBagAsList <Element, ElementOps>&
- IGBagAsList <Element, ElementOps>::
- operator= (IGBagAsList
- <Element, ElementOps> const& collection)
- { ImplOf (*this).Copy (ImplOf (collection));
- return *this;
- }
-
- // protected members
-
- template <class Element, class ElementOps>
- inline
- IGBagAsList <Element, ElementOps>::
- IGBagAsList (PureImplementation& impl)
- { SetImpl (&impl);
- }
-
- template <class Element, class ElementOps>
- inline IGBagAsList
- <Element, ElementOps>::Implementation&
- IGBagAsList <Element, ElementOps>::
- ImplOf (IGBagAsList
- <Element, ElementOps> const& collection)
- { return *(Implementation*)collection.ivImpl;
- }
-
- // ---
- // IBagAsList
- // ---
-
- // public members
-
- template <class Element>
- inline
- IBagAsList <Element>::
- IBagAsList (INumber numberOfElements)
- : IGBagAsList
- <Element, ICOps <Element> > (numberOfElements)
- {
- }
-
- // protected members
-
- template <class Element>
- inline
- IBagAsList <Element>::
- IBagAsList (PureImplementation& impl)
- : IGBagAsList
- <Element, ICOps <Element> > (impl)
- {
- }
-
- // ---
- // IVGBagAsList
- // ---
-
- // public members
-
- template <class Element, class ElementOps>
- inline
- IVGBagAsList <Element, ElementOps>::
- IVGBagAsList (INumber numberOfElements)
- : IGBagAsList
- <Element, ElementOps> (*(Implementation*) *new
- Instantiation (numberOfElements))
- {
- }
-
- // protected members
-
- template <class Element, class ElementOps>
- inline
- IVGBagAsList <Element, ElementOps>::
- IVGBagAsList (PureImplementation& impl)
- : IGBagAsList
- <Element, ElementOps> (impl)
- {
- }
-
- // ---
- // IVBagAsList
- // ---
-
- // public members
-
- template <class Element>
- inline
- IVBagAsList <Element>::
- IVBagAsList (INumber numberOfElements)
- : IVGBagAsList
- <Element, ICOps <Element> > (numberOfElements)
- {
- }
-
- // protected members
-
- template <class Element>
- inline
- IVBagAsList <Element>::
- IVBagAsList (PureImplementation& impl)
- : IVGBagAsList
- <Element, ICOps <Element> > (impl)
- {
- }
-