Class ov::EnumMask#

template<typename T>
class EnumMask#

Public Types

using value_type = typename std::underlying_type<T>::type#

Make sure the template type is an enum.

Extract the underlying type of the enum.

Public Functions

constexpr EnumMask() = default#

Some bit operations are not safe for signed values, we require enum type to use unsigned underlying type.

inline bool is_any_set(const EnumMask &p) const#

Check if any of the input parameter enum bit mask match.

inline bool is_set(const EnumMask &p) const#

Check if all of the input parameter enum bit mask match.

inline bool is_any_clear(const EnumMask &p) const#

Check if any of the input parameter enum bit mask does not match.

inline bool is_clear(const EnumMask &p) const#

Check if all of the input parameter enum bit mask do not match.