Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxcrt::Mask< E > Class Template Reference

#include <mask.h>

+ Collaboration diagram for fxcrt::Mask< E >:

Public Types

using UnderlyingType = typename std::underlying_type<E>::type
 

Public Member Functions

constexpr Mask ()=default
 
constexpr Mask (const Mask &that)=default
 
constexpr Mask (E val)
 
constexpr Mask (E v1, E v2)
 
constexpr Mask (E v1, E v2, E v3)
 
constexpr Mask (E v1, E v2, E v3, E v4)
 
constexpr Mask (E v1, E v2, E v3, E v4, E v5)
 
constexpr Mask (E v1, E v2, E v3, E v4, E v5, E v6)
 
constexpr Mask (E v1, E v2, E v3, E v4, E v5, E v6, E v7)
 
constexpr Mask (E v1, E v2, E v3, E v4, E v5, E v6, E v7, E v8)
 
 operator bool () const
 
Mask operator~ () const
 
constexpr Mask operator| (const Mask &that) const
 
constexpr Mask operator& (const Mask &that) const
 
constexpr Mask operator^ (const Mask &that) const
 
Maskoperator= (const Mask &that)
 
Maskoperator|= (const Mask &that)
 
Maskoperator&= (const Mask &that)
 
Maskoperator^= (const Mask &that)
 
bool operator== (const Mask &that) const
 
bool operator!= (const Mask &that) const
 
bool TestAll (const Mask &that) const
 
void Clear (const Mask &that)
 
UnderlyingType UncheckedValue () const
 

Static Public Member Functions

static Mask FromUnderlyingUnchecked (UnderlyingType val)
 

Detailed Description

template<typename E>
class fxcrt::Mask< E >

Definition at line 15 of file mask.h.

Member Typedef Documentation

◆ UnderlyingType

template<typename E >
using fxcrt::Mask< E >::UnderlyingType = typename std::underlying_type<E>::type

Definition at line 17 of file mask.h.

Constructor & Destructor Documentation

◆ Mask() [1/10]

template<typename E >
fxcrt::Mask< E >::Mask ( )
constexprdefault

◆ Mask() [2/10]

template<typename E >
fxcrt::Mask< E >::Mask ( const Mask< E > & that)
constexprdefault

◆ Mask() [3/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E val)
inlineconstexpr

Definition at line 26 of file mask.h.

◆ Mask() [4/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E v1,
E v2 )
inlineconstexpr

Definition at line 31 of file mask.h.

◆ Mask() [5/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E v1,
E v2,
E v3 )
inlineconstexpr

Definition at line 35 of file mask.h.

◆ Mask() [6/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E v1,
E v2,
E v3,
E v4 )
inlineconstexpr

Definition at line 39 of file mask.h.

◆ Mask() [7/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E v1,
E v2,
E v3,
E v4,
E v5 )
inlineconstexpr

Definition at line 44 of file mask.h.

◆ Mask() [8/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E v1,
E v2,
E v3,
E v4,
E v5,
E v6 )
inlineconstexpr

Definition at line 49 of file mask.h.

◆ Mask() [9/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E v1,
E v2,
E v3,
E v4,
E v5,
E v6,
E v7 )
inlineconstexpr

Definition at line 55 of file mask.h.

◆ Mask() [10/10]

template<typename E >
fxcrt::Mask< E >::Mask ( E v1,
E v2,
E v3,
E v4,
E v5,
E v6,
E v7,
E v8 )
inlineconstexpr

Definition at line 61 of file mask.h.

Member Function Documentation

◆ Clear()

template<typename E >
void fxcrt::Mask< E >::Clear ( const Mask< E > & that)
inline

Definition at line 103 of file mask.h.

◆ FromUnderlyingUnchecked()

template<typename E >
static Mask fxcrt::Mask< E >::FromUnderlyingUnchecked ( UnderlyingType val)
inlinestatic

Definition at line 20 of file mask.h.

◆ operator bool()

template<typename E >
fxcrt::Mask< E >::operator bool ( ) const
inlineexplicit

Definition at line 68 of file mask.h.

◆ operator!=()

template<typename E >
bool fxcrt::Mask< E >::operator!= ( const Mask< E > & that) const
inline

Definition at line 96 of file mask.h.

◆ operator&()

template<typename E >
Mask fxcrt::Mask< E >::operator& ( const Mask< E > & that) const
inlineconstexpr

Definition at line 73 of file mask.h.

◆ operator&=()

template<typename E >
Mask & fxcrt::Mask< E >::operator&= ( const Mask< E > & that)
inline

Definition at line 87 of file mask.h.

◆ operator=()

template<typename E >
Mask & fxcrt::Mask< E >::operator= ( const Mask< E > & that)
inline

Definition at line 79 of file mask.h.

◆ operator==()

template<typename E >
bool fxcrt::Mask< E >::operator== ( const Mask< E > & that) const
inline

Definition at line 95 of file mask.h.

◆ operator^()

template<typename E >
Mask fxcrt::Mask< E >::operator^ ( const Mask< E > & that) const
inlineconstexpr

Definition at line 76 of file mask.h.

◆ operator^=()

template<typename E >
Mask & fxcrt::Mask< E >::operator^= ( const Mask< E > & that)
inline

Definition at line 91 of file mask.h.

◆ operator|()

template<typename E >
Mask fxcrt::Mask< E >::operator| ( const Mask< E > & that) const
inlineconstexpr

Definition at line 70 of file mask.h.

◆ operator|=()

template<typename E >
Mask & fxcrt::Mask< E >::operator|= ( const Mask< E > & that)
inline

Definition at line 83 of file mask.h.

◆ operator~()

template<typename E >
Mask fxcrt::Mask< E >::operator~ ( ) const
inline

Definition at line 69 of file mask.h.

◆ TestAll()

template<typename E >
bool fxcrt::Mask< E >::TestAll ( const Mask< E > & that) const
inline

Definition at line 98 of file mask.h.

◆ UncheckedValue()

template<typename E >
UnderlyingType fxcrt::Mask< E >::UncheckedValue ( ) const
inline

Definition at line 106 of file mask.h.


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