|
liblcf
|
#include <flag_set.h>
Collaboration diagram for FlagSet< E, N >:Public Types | |
| using | underlying = std::bitset< N > |
| using | reference = typename underlying::reference |
Public Member Functions | |
| constexpr | FlagSet ()=default |
| FlagSet (std::initializer_list< E > ilist) | |
| constexpr bool | operator[] (E tag) const |
| reference | operator[] (E tag) |
| size_t | count () const |
| bool | any () const noexcept |
| bool | none () const noexcept |
| size_t | size () const |
| FlagSet | operator~ () const noexcept |
| FlagSet & | operator&= (const FlagSet &o) noexcept |
| FlagSet & | operator|= (const FlagSet &o) noexcept |
| FlagSet & | operator^= (const FlagSet &o) noexcept |
Private Attributes | |
| std::bitset< N > | _bits = {} |
Friends | |
| struct | std::hash< FlagSet< E, N > > |
| template<typename EE , size_t NN> | |
| bool | operator== (const FlagSet< EE, NN > &l, const FlagSet< EE, NN > &r) |
Definition at line 16 of file flag_set.h.
| using FlagSet< E, N >::reference = typename underlying::reference |
Definition at line 19 of file flag_set.h.
| using FlagSet< E, N >::underlying = std::bitset<N> |
Definition at line 18 of file flag_set.h.
Definition at line 78 of file flag_set.h.
|
inlinenoexcept |
Definition at line 28 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
inline |
Definition at line 27 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
inlinenoexcept |
Definition at line 29 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
inlinenoexcept |
Definition at line 34 of file flag_set.h.
References FlagSet< E, N >::_bits.
Definition at line 25 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
inlineconstexpr |
Definition at line 24 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
inlinenoexcept |
Definition at line 36 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
inlinenoexcept |
Definition at line 35 of file flag_set.h.
References FlagSet< E, N >::_bits.
Definition at line 33 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
inline |
Definition at line 31 of file flag_set.h.
References FlagSet< E, N >::_bits.
|
friend |
|
friend |
Definition at line 39 of file flag_set.h.
|
private |
Definition at line 43 of file flag_set.h.
Referenced by FlagSet< E, N >::any(), FlagSet< E, N >::count(), FlagSet< E, N >::none(), FlagSet< E, N >::operator&=(), std::hash< FlagSet< E, N > >::operator()(), operator==(), FlagSet< E, N >::operator[](), FlagSet< E, N >::operator^=(), FlagSet< E, N >::operator|=(), FlagSet< E, N >::operator~(), and FlagSet< E, N >::size().