Device interface library for multiple platforms including Mbed.
Dependents: DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#
FlagSet< Flag, flagBits > Class Template Reference
Provides functionality similar to std::bitset except using a bit flag, typically of an enum type, as the indexer. More...
#include <FlagSet.hpp>
Public Member Functions | |
Element access | |
bool | operator[] (Flag flag) const |
reference | operator[] (Flag flag) |
bool | test (Flag flag) const |
bool | any () const |
bool | none () const |
size_t | count () const |
Capacity | |
size_t | size () const |
Modifiers | |
FlagSet & | operator&= (const FlagSet &other) |
FlagSet & | operator|= (const FlagSet &other) |
FlagSet & | operator^= (const FlagSet &other) |
FlagSet | operator~ () const |
FlagSet & | set () |
FlagSet & | set (Flag flag, bool value=true) |
FlagSet & | reset () |
FlagSet & | reset (Flag flag) |
FlagSet & | flip () |
FlagSet & | flip (Flag flag) |
Conversions | |
template<typename CharT , typename Traits , typename Allocator > | |
std::basic_string< CharT, Traits, Allocator > | to_string () const |
unsigned long | to_ulong () const |
Detailed Description
template<typename Flag, size_t flagBits>
class MaximInterfaceCore::FlagSet< Flag, flagBits >
Provides functionality similar to std::bitset except using a bit flag, typically of an enum type, as the indexer.
Definition at line 44 of file FlagSet.hpp.
Generated on Fri May 29 2020 21:20:50 by
