Home » U++ Library support » U++ Core » Deepcopying One container
Re: Deepcopying One container [message #23590 is a reply to message #23578] |
Mon, 02 November 2009 17:57   |
|
Thanks for good news, Mirek!
Quote: | What is your usage scenario?
|
I was afraid you will ask Now I have to show everyone the ugly scheme I've come up with
I use descendants of my class PlotSymbol to provide a methods used to paint different marks in plot. Then I have a VectorMap<String,One<Plotsymbol> >. Every new symbol class is "registered" by adding into this VectorMap, so that user can be presented with a list of available symbols and choose which one to use. Everytime user changes his mind and selects new symbol, I would like just to copy the One<PlotSymbol> into local variable (and setup some additional parameters, e.g. colors or size).
So basicaly what I need is to make a copy of the underlaying PlotSymbol, without knowing what type is it. The information in manual made me believe it is possible, but then I've found that it only works when the source is picked.
I'll try the solution you suggested...
To cbporter: Thanks for your reply too. Unfortunately I need a full copy of the pointed object so I can change some additional properties without affecting the original...
|
|
|
Goto Forum:
Current Time: Thu May 01 00:00:08 CEST 2025
Total time taken to generate the page: 0.02552 seconds
|