Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using iterators instead of [i] #6

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

Using iterators instead of [i] #6

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
- Not applicable

What is the expected output? What do you see instead?
- Not applicable.

What version of the product are you using? On what operating system?
- Gentoo Linux amd64, 2.6.31

Please provide any additional information below.
- I checked out head from svn today (03 Dec 2009) and am finding this code
very useful. After going through the code, I find that all plot functions
use templates for storing data variable; however the [] operator used to
access individual data elements restricts templates to those containers
that define the [] operator (such as std::vector). It might be more useful
if elements are accessed using iterators instead as it will allow use of
greater range of containers.

Original issue reported on code.google.com by [email protected] on 3 Dec 2009 at 5:49

@GoogleCodeExporter
Copy link
Author

[] is much faster then using iterators, specially if data to be plotted is 
large. However, if the program is already generating data in container other 
then vector; then building a vector out of other container to pass to gnuplot 
functions and then discard afterwards; is bad. :-)

Original comment by [email protected] on 18 Sep 2013 at 12:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant