Topic: Help needed in TEMPLATES ???


Author: srvishy@picasso.ocis.temple.edu (S. R. Viswanathan)
Date: 13 Dec 92 21:03:27 GMT
Raw View
Hi,

Can someone help me with this problem in Borland C++ 3.0 ?

I'm using the BI_QueusAsDoubleList template and it's iterator template
BI_QueueAsDoubleListIterator....I want to be able to do a non-destructive
iteration of the list and then do a selective deletion.

[I'm able to insert items into the list using the "put()" function...
but not able to delete items...I can only do a destructive iteration using
the "get()" function...which also removes the item from the list.]

If it's not possible using this particular ADT template class...Can you
suggest any other template which will achieve this functionality ?

Any useful pointers and suggestions are most welcome...Please reply
to me directly if possible..Thanx...


- Vishy


<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
  Internet:           <^>     Yellnet:
     srvishy@picasso.ocis.temple.edu   <^>          (215) 787-1043 (Work)
     srviswa@astro.ocis.temple.edu     <^>          (215) 735-3563 (Home)

  'T`(`'T`|_||) ^   'T` / | |  |       `T` n the beginning Man created God;
  (| (, | | ||\(_)   | (__| |_ |_       |  and in the image of Man
           ,|, created he him.
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->

--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
  Internet:           <^>     Yellnet:
     srvishy@picasso.ocis.temple.edu   <^>          (215) 787-1043 (Work)
     srviswa@astro.ocis.temple.edu     <^>          (215) 735-3563 (Home)

  'T`(`'T`|_||) ^   'T` / | |  |       `T` n the beginning Man created God;
  (| (, | | ||\(_)   | (__| |_ |_       |  and in the image of Man
           ,|, created he him.
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->




Author: srvishy@picasso.ocis.temple.edu (S. R. Viswanathan)
Date: 13 Dec 92 21:04:06 GMT
Raw View
Hi,

Can someone help me with this problem in Borland C++ 3.0 ?

I'm using the BI_QueusAsDoubleList template and it's iterator template
BI_QueueAsDoubleListIterator....I want to be able to do a non-destructive
iteration of the list and then do a selective deletion.

[I'm able to insert items into the list using the "put()" function...
but not able to delete items...I can only do a destructive iteration using
the "get()" function...which also removes the item from the list.]

If it's not possible using this particular ADT template class...Can you
suggest any other template which will achieve this functionality ?

Any useful pointers and suggestions are most welcome...Please reply
to me directly..Thanx...


- Vishy


<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
  Internet:           <^>     Yellnet:
     srvishy@picasso.ocis.temple.edu   <^>          (215) 787-1043 (Work)
     srviswa@astro.ocis.temple.edu     <^>          (215) 735-3563 (Home)

  'T`(`'T`|_||) ^   'T` / | |  |       `T` n the beginning Man created God;
  (| (, | | ||\(_)   | (__| |_ |_       |  and in the image of Man
           ,|, created he him.
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->

--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
  Internet:           <^>     Yellnet:
     srvishy@picasso.ocis.temple.edu   <^>          (215) 787-1043 (Work)
     srviswa@astro.ocis.temple.edu     <^>          (215) 735-3563 (Home)

  'T`(`'T`|_||) ^   'T` / | |  |       `T` n the beginning Man created God;
  (| (, | | ||\(_)   | (__| |_ |_       |  and in the image of Man
           ,|, created he him.
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->