![]() |
Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
|
A combination of several IDs. Not thread-safe. More...
A combination of several IDs. Not thread-safe.
#include "enums.h"
Classes | |
| class | Iterator |
| Iterator over the elements of a combination. More... | |
Public Types | |
| using | Initializer = std::initializer_list< BaseID > |
Public Member Functions | |
| bool | operator!= (const Combination &o) const noexcept |
| bool | operator== (const Combination &o) const noexcept |
| size_t | size (void) const noexcept |
| bool | empty (void) const noexcept |
| bool | any (void) const |
| bool | all (void) const |
| bool | has (BaseID f) const |
| bool | has (const Combination &otf) const |
| bool | hasIntersection (const Combination &otf) const |
| void | add (BaseID f) |
| void | add (const Combination &tf) |
| void | remove (BaseID f) |
| void | remove (const Combination &tf) |
| std::string | to_string (std::string delim=", ") const noexcept |
| Return a string with the names of all the IDs in the combination. More... | |
Constructors | |
| Combination (void)=default | |
| ~Combination (void)=default | |
| Combination (const Combination &tf)=default | |
| Combination & | operator= (const Combination &tf)=default |
| Combination (Combination &&)=default | |
| Combination & | operator= (Combination &&)=default |
| Combination (BaseID f) | |
| Combination (const Initializer &init) | |
| Constructor from a set of flags. More... | |
For iterating on enum combinations | |
| Iterator | begin (void) const noexcept |
| Iterator | end (void) const noexcept |
| using elementa::base::EnumExtPriv< BaseID, HelperIDString >::Combination::Initializer = std::initializer_list<BaseID> |
|
inlineexplicit |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Return a string with the names of all the IDs in the combination.
Definition at line 291 of file enums.h.
References elementa::base::EnumExtPriv< BaseID, HelperIDString >::IdName().
|
inlinenoexcept |
|
inlinenoexcept |