soc-2008-mxcurioni: added Iterator class, base class for all iterators in Freestyle (on the C++ side). Created the equivalent in Python BPy_Iterator with the simple interface:

- getExactTypeName()
- increment()
- decrement()
- isBegin()
- isEnd()

Contrary to previously stated, I am reverting back to implementing iterators in the (Python) API, for different reasons:
- it will make testing quicker to achieve, as I won't have to recode a big chunk of the original Python files
- it will be a base for API refactoring
- it won't prevent the use a list-based approach later (it is simple to get it from the Iterator)
This commit is contained in:
Maxime Curioni
2008-07-23 10:19:08 +00:00
parent a9789d90ae
commit d1b82d1f15
13 changed files with 7915 additions and 8768 deletions

View File

@@ -32,7 +32,7 @@
# define VIEWMAPADVANCEDITERATORS_H
#include "ViewMap.h"
#include "../system/Iterator.h" //soc
/**********************************/
/* */