Enumerations are scoped (global variables are declared to keep compatibility with previous unscoped enumeration)
Indices are based on enumerations (no more hard coded indices)
Main states are defined as a global variable
When main states are called, the global variable is read instead of the call of a static function (each time the static function is called, it instantiates a new variable instead of re-use the same).
Main changes are in VecId.h. The rest is trivial changes.
TVecId
can beconstexpr
Main changes are in
VecId.h
. The rest is trivial changes.By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if