Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Fuller <mistaed>2019-01-14 17:42:54 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-14 17:57:53 +0300
commitc08c6c8336e069c844fff49b4b870b6a727a2ef9 (patch)
treecf383b79a6903e1e0269e02a7729e6087d8dd0c4 /intern/cycles/graph
parent867ffacabf6c25ded40a39b5af7d61fee1dacc4d (diff)
Cleanup: add begin/end iterators to Cycles NodeEnum.
Differential Revision: https://developer.blender.org/D4173
Diffstat (limited to 'intern/cycles/graph')
-rw-r--r--intern/cycles/graph/node_enum.h3
1 files changed, 3 insertions, 0 deletions
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;