TrinityCore
Loading...
Searching...
No Matches
Trinity::RaceMask< T, N > Struct Template Reference

#include <RaceMask.h>

Public Member Functions

constexpr bool HasRace (uint32 raceId) const
 
constexpr bool operator== (RaceMask const &) const =default
 
constexpr bool IsEmpty () const
 
constexpr RaceMask operator& (RaceMask right) const
 
constexpr RaceMask operator| (RaceMask right) const
 
constexpr RaceMask operator~ () const
 
template<typename OtherT , size_t OtherN>
constexpr operator RaceMask< OtherT, OtherN > () const
 

Static Public Member Functions

static constexpr int32 GetRaceBit (uint32 raceId)
 
static constexpr RaceMask GetMaskForRace (uint32 raceId)
 

Public Attributes

std::array< T, N > RawValue
 

Detailed Description

template<typename T, size_t N = 1>
struct Trinity::RaceMask< T, N >

Definition at line 91 of file RaceMask.h.

Member Function Documentation

◆ GetMaskForRace()

template<typename T , size_t N = 1>
static constexpr RaceMask Trinity::RaceMask< T, N >::GetMaskForRace ( uint32  raceId)
inlinestaticconstexpr

◆ GetRaceBit()

◆ HasRace()

◆ IsEmpty()

◆ operator RaceMask< OtherT, OtherN >()

template<typename T , size_t N = 1>
template<typename OtherT , size_t OtherN>
constexpr Trinity::RaceMask< T, N >::operator RaceMask< OtherT, OtherN > ( ) const
inlineexplicitconstexpr

Definition at line 200 of file RaceMask.h.

References Trinity::RaceMask< T, N >::RawValue.

◆ operator&()

template<typename T , size_t N = 1>
constexpr RaceMask Trinity::RaceMask< T, N >::operator& ( RaceMask< T, N >  right) const
inlineconstexpr

Definition at line 175 of file RaceMask.h.

References Trinity::RaceMask< T, N >::RawValue.

◆ operator==()

template<typename T , size_t N = 1>
constexpr bool Trinity::RaceMask< T, N >::operator== ( RaceMask< T, N > const &  ) const
constexprdefault

◆ operator|()

template<typename T , size_t N = 1>
constexpr RaceMask Trinity::RaceMask< T, N >::operator| ( RaceMask< T, N >  right) const
inlineconstexpr

Definition at line 183 of file RaceMask.h.

References Trinity::RaceMask< T, N >::RawValue.

◆ operator~()

template<typename T , size_t N = 1>
constexpr RaceMask Trinity::RaceMask< T, N >::operator~ ( ) const
inlineconstexpr

Definition at line 191 of file RaceMask.h.

References Trinity::RaceMask< T, N >::RawValue.

Member Data Documentation

◆ RawValue


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