openframeworks/openFrameworks — pull request #3133 by arturoc (2014-08-10 17:17:14+00:00)
Title: add iterators to collection classes for easier syntax in c++11 and faster access

adds iteartors to collections classes like ofPixels, ofPolyline, ofBuffer... to be abel to use the c++ syntax to go through their elements like:

```cpp
for(auto point: polyline){
cout << point << endl;
}
```

or

```cpp
for(auto line: pixels.getLines()){
for(auto & pixel: line){
pixel = ...;
}
}
```

from some tests it's also way faster than the traditional access, something like:

```cpp
for(auto pixel: grabber.getPixelsRef().getPixelsIter()){
pixel[1] = 0;
pixel[2] = 0;
}
```

is about 20 times faster than:

```cpp
for(int j=0;j