Chatterino
Public Member Functions | List of all members
chatterino::FlagsEnum< T, Q > Class Template Reference

#include <FlagsEnum.hpp>

Public Member Functions

 FlagsEnum ()
 
 FlagsEnum (T value)
 
 FlagsEnum (std::initializer_list< T > flags)
 
bool operator== (const FlagsEnum< T > &other)
 
bool operator!= (const FlagsEnum &other)
 
void set (T flag)
 
void unset (T flag)
 
void set (T flag, bool value)
 
bool has (T flag) const
 
FlagsEnum operator| (T flag)
 
bool hasAny (FlagsEnum flags) const
 
bool hasAll (FlagsEnum< T > flags) const
 
bool hasNone (std::initializer_list< T > flags) const
 

Constructor & Destructor Documentation

◆ FlagsEnum() [1/3]

template<typename T, typename Q = typename std::underlying_type<T>::type>
chatterino::FlagsEnum< T, Q >::FlagsEnum ( )
inline

◆ FlagsEnum() [2/3]

template<typename T, typename Q = typename std::underlying_type<T>::type>
chatterino::FlagsEnum< T, Q >::FlagsEnum ( value)
inline

◆ FlagsEnum() [3/3]

template<typename T, typename Q = typename std::underlying_type<T>::type>
chatterino::FlagsEnum< T, Q >::FlagsEnum ( std::initializer_list< T >  flags)
inline

Member Function Documentation

◆ has()

template<typename T, typename Q = typename std::underlying_type<T>::type>
bool chatterino::FlagsEnum< T, Q >::has ( flag) const
inline
Here is the caller graph for this function:

◆ hasAll()

template<typename T, typename Q = typename std::underlying_type<T>::type>
bool chatterino::FlagsEnum< T, Q >::hasAll ( FlagsEnum< T >  flags) const
inline

◆ hasAny()

template<typename T, typename Q = typename std::underlying_type<T>::type>
bool chatterino::FlagsEnum< T, Q >::hasAny ( FlagsEnum< T, Q >  flags) const
inline
Here is the caller graph for this function:

◆ hasNone()

template<typename T, typename Q = typename std::underlying_type<T>::type>
bool chatterino::FlagsEnum< T, Q >::hasNone ( std::initializer_list< T >  flags) const
inline

◆ operator!=()

template<typename T, typename Q = typename std::underlying_type<T>::type>
bool chatterino::FlagsEnum< T, Q >::operator!= ( const FlagsEnum< T, Q > &  other)
inline

◆ operator==()

template<typename T, typename Q = typename std::underlying_type<T>::type>
bool chatterino::FlagsEnum< T, Q >::operator== ( const FlagsEnum< T > &  other)
inline

◆ operator|()

template<typename T, typename Q = typename std::underlying_type<T>::type>
FlagsEnum chatterino::FlagsEnum< T, Q >::operator| ( flag)
inline

◆ set() [1/2]

template<typename T, typename Q = typename std::underlying_type<T>::type>
void chatterino::FlagsEnum< T, Q >::set ( flag)
inline
Here is the caller graph for this function:

◆ set() [2/2]

template<typename T, typename Q = typename std::underlying_type<T>::type>
void chatterino::FlagsEnum< T, Q >::set ( flag,
bool  value 
)
inline

◆ unset()

template<typename T, typename Q = typename std::underlying_type<T>::type>
void chatterino::FlagsEnum< T, Q >::unset ( flag)
inline
Here is the caller graph for this function:

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