Device interface library for multiple platforms including Mbed.

Dependents:   DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#

Embed: (wiki syntax)

« Back to documentation index

FlagSet< Flag, flagBits > Class Template Reference

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
FlagSetoperator&= (const FlagSet &other)
FlagSetoperator|= (const FlagSet &other)
FlagSetoperator^= (const FlagSet &other)
FlagSet operator~ () const
FlagSetset ()
FlagSetset (Flag flag, bool value=true)
FlagSetreset ()
FlagSetreset (Flag flag)
FlagSetflip ()
FlagSetflip (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.