[Bf-blender-cvs] [c08c6c8336e] blender2.7: Cleanup: add begin/end iterators to Cycles NodeEnum.

Alex Fuller noreply at git.blender.org
Mon Jan 14 16:12:57 CET 2019


Commit: c08c6c8336e069c844fff49b4b870b6a727a2ef9
Author: Alex Fuller
Date:   Mon Jan 14 15:42:54 2019 +0100
Branches: blender2.7
https://developer.blender.org/rBc08c6c8336e069c844fff49b4b870b6a727a2ef9

Cleanup: add begin/end iterators to Cycles NodeEnum.

Differential Revision: https://developer.blender.org/D4173

===================================================================

M	intern/cycles/graph/node_enum.h

===================================================================

diff --git a/intern/cycles/graph/node_enum.h b/intern/cycles/graph/node_enum.h
index 9de776ddb55..705aec9a918 100644
--- a/intern/cycles/graph/node_enum.h
+++ b/intern/cycles/graph/node_enum.h
@@ -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;



More information about the Bf-blender-cvs mailing list