/** Get flags corresponding to a bitmask. */ static std::vector flags_from_mask(unsigned int mask); /** Get bitmask corresponding to a set of flags. */ static unsigned int mask_from_flags( std::vector flags);