FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::EnumFlags< EnumType > Class Template Reference

A class to handle "flags" for an enum type. More...

#include <C_flag.hpp>

Public Types

using Type = std::underlying_type_t<EnumType>

Public Member Functions

constexpr EnumFlags (Type value=Type{0})
EnumFlagsset (Type flag)
EnumFlagsunset (Type flag)
EnumFlagstoggle (Type flag)
constexpr bool has (Type flag) const
constexpr Type get () const
constexpr EnumFlagsoperator= (Type value)

Detailed Description

template<typename EnumType>
class fge::EnumFlags< EnumType >

A class to handle "flags" for an enum type.

This class allows you to manage a set of flags for an enum type, where each flag is represented by a value of the enum. It provides methods to set, unset, toggle flags, check if a flag is set, and retrieve the current flags.

Template Parameters
EnumTypeThe enum type for which flags are managed.

The documentation for this class was generated from the following file: