fast and inline enum index, params and constructor