Cleanup: add begin/end iterators to Cycles NodeEnum.
Differential Revision: https://developer.blender.org/D4173
This commit is contained in:

committed by
Brecht Van Lommel

parent
867ffacabf
commit
c08c6c8336
@@ -39,6 +39,9 @@ struct NodeEnum {
|
||||
int operator[](ustring x) const { return left.find(x)->second; }
|
||||
ustring operator[](int y) const { return right.find(y)->second; }
|
||||
|
||||
unordered_map<ustring, int, ustringHash>::const_iterator begin() const { return left.begin(); }
|
||||
unordered_map<ustring, int, ustringHash>::const_iterator end() const { return left.end(); }
|
||||
|
||||
private:
|
||||
unordered_map<ustring, int, ustringHash> left;
|
||||
unordered_map<int, ustring> right;
|
||||
|
Reference in New Issue
Block a user