FCT
载入中...
搜索中...
未找到
FCT::Flags< BitType > 模板类 参考

#include <Flags.h>

FCT::Flags< BitType > 的协作图:
Collaboration graph

Public 类型

using MaskType = typename std::underlying_type<BitType>::type

Public 成员函数

constexpr Flags () noexcept
constexpr Flags (BitType bit) noexcept
constexpr Flags (Flags< BitType > const &rhs) noexcept=default
constexpr Flags (MaskType flags) noexcept
constexpr bool operator< (Flags< BitType > const &rhs) const noexcept
constexpr bool operator<= (Flags< BitType > const &rhs) const noexcept
constexpr bool operator> (Flags< BitType > const &rhs) const noexcept
constexpr bool operator>= (Flags< BitType > const &rhs) const noexcept
constexpr bool operator== (Flags< BitType > const &rhs) const noexcept
constexpr bool operator!= (Flags< BitType > const &rhs) const noexcept
constexpr bool operator! () const noexcept
constexpr Flags< BitType > operator& (Flags< BitType > const &rhs) const noexcept
constexpr Flags< BitType > operator| (Flags< BitType > const &rhs) const noexcept
constexpr Flags< BitType > operator^ (Flags< BitType > const &rhs) const noexcept
constexpr Flags< BitType > operator~ () const noexcept
Flags< BitType > & operator= (Flags< BitType > const &rhs) noexcept=default
Flags< BitType > & operator= (BitType bit) noexcept
Flags< BitType > & operator|= (Flags< BitType > const &rhs) noexcept
Flags< BitType > & operator&= (Flags< BitType > const &rhs) noexcept
Flags< BitType > & operator^= (Flags< BitType > const &rhs) noexcept
constexpr operator bool () const noexcept
constexpr operator MaskType () const noexcept

Private 属性

MaskType m_mask

详细描述

template<typename BitType>
class FCT::Flags< BitType >

@tips 使用方法:

enum XX {
flag1 = 1 << 0,
flag1 = 1 << 1
};
#define FCT_DECLARE_FLAGS(BitType)

这样就定义了一个 XXs flag

模板参数
BitType

在文件 Flags.h29 行定义.

成员类型定义说明

◆ MaskType

template<typename BitType>
using FCT::Flags< BitType >::MaskType = typename std::underlying_type<BitType>::type

在文件 Flags.h31 行定义.

构造及析构函数说明

◆ Flags() [1/4]

template<typename BitType>
FCT::Flags< BitType >::Flags ( )
inlineconstexprnoexcept

在文件 Flags.h33 行定义.

这是这个函数的调用关系图:

◆ Flags() [2/4]

template<typename BitType>
FCT::Flags< BitType >::Flags ( BitType bit)
inlineconstexprnoexcept

在文件 Flags.h34 行定义.

◆ Flags() [3/4]

template<typename BitType>
FCT::Flags< BitType >::Flags ( Flags< BitType > const & rhs)
constexprdefaultnoexcept
函数调用图:

◆ Flags() [4/4]

template<typename BitType>
FCT::Flags< BitType >::Flags ( MaskType flags)
inlineexplicitconstexprnoexcept

在文件 Flags.h36 行定义.

成员函数说明

◆ operator bool()

template<typename BitType>
FCT::Flags< BitType >::operator bool ( ) const
inlineexplicitconstexprnoexcept

在文件 Flags.h58 行定义.

◆ operator MaskType()

template<typename BitType>
FCT::Flags< BitType >::operator MaskType ( ) const
inlineexplicitconstexprnoexcept

在文件 Flags.h59 行定义.

◆ operator!()

template<typename BitType>
bool FCT::Flags< BitType >::operator! ( ) const
inlineconstexprnoexcept

在文件 Flags.h45 行定义.

◆ operator!=()

template<typename BitType>
bool FCT::Flags< BitType >::operator!= ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h43 行定义.

函数调用图:

◆ operator&()

template<typename BitType>
Flags< BitType > FCT::Flags< BitType >::operator& ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h47 行定义.

函数调用图:

◆ operator&=()

template<typename BitType>
Flags< BitType > & FCT::Flags< BitType >::operator&= ( Flags< BitType > const & rhs)
inlinenoexcept

在文件 Flags.h55 行定义.

函数调用图:

◆ operator<()

template<typename BitType>
bool FCT::Flags< BitType >::operator< ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h38 行定义.

函数调用图:

◆ operator<=()

template<typename BitType>
bool FCT::Flags< BitType >::operator<= ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h39 行定义.

函数调用图:

◆ operator=() [1/2]

template<typename BitType>
Flags< BitType > & FCT::Flags< BitType >::operator= ( BitType bit)
inlinenoexcept

在文件 Flags.h53 行定义.

函数调用图:

◆ operator=() [2/2]

template<typename BitType>
Flags< BitType > & FCT::Flags< BitType >::operator= ( Flags< BitType > const & rhs)
defaultnoexcept
函数调用图:

◆ operator==()

template<typename BitType>
bool FCT::Flags< BitType >::operator== ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h42 行定义.

函数调用图:

◆ operator>()

template<typename BitType>
bool FCT::Flags< BitType >::operator> ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h40 行定义.

函数调用图:

◆ operator>=()

template<typename BitType>
bool FCT::Flags< BitType >::operator>= ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h41 行定义.

函数调用图:

◆ operator^()

template<typename BitType>
Flags< BitType > FCT::Flags< BitType >::operator^ ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h49 行定义.

函数调用图:

◆ operator^=()

template<typename BitType>
Flags< BitType > & FCT::Flags< BitType >::operator^= ( Flags< BitType > const & rhs)
inlinenoexcept

在文件 Flags.h56 行定义.

函数调用图:

◆ operator|()

template<typename BitType>
Flags< BitType > FCT::Flags< BitType >::operator| ( Flags< BitType > const & rhs) const
inlineconstexprnoexcept

在文件 Flags.h48 行定义.

函数调用图:

◆ operator|=()

template<typename BitType>
Flags< BitType > & FCT::Flags< BitType >::operator|= ( Flags< BitType > const & rhs)
inlinenoexcept

在文件 Flags.h54 行定义.

函数调用图:

◆ operator~()

template<typename BitType>
Flags< BitType > FCT::Flags< BitType >::operator~ ( ) const
inlineconstexprnoexcept

在文件 Flags.h50 行定义.

函数调用图:

类成员变量说明

◆ m_mask

template<typename BitType>
MaskType FCT::Flags< BitType >::m_mask
private

在文件 Flags.h64 行定义.


该类的文档由以下文件生成: