Page MenuHome

Adding begin/end iterators to NodeEnum

Authored by Alex Fuller (mistaed) on Jan 5 2019, 8:56 PM.




I needed to add begin/end iterators to NodeEnum so that I could query the names and enum values of a given enum while developing GafferCycles. I was originally just making a for-loop with a made-up upper-bound and making a call to enum->exists(i) but I feel that it is too error-prone, especially when some enums having high numbers and are not in a sequence eg. Multiscatter GGX/GGX are like integer '30' and '32'.


Diff Detail

rC Cycles

Event Timeline

This revision is now accepted and ready to land.Jan 14 2019, 3:43 PM
This revision was automatically updated to reflect the committed changes.