|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Set of formats to save profile data in. More...
#include <GREM/core/profiling.hpp>
Public Member Functions | |
| constexpr | ProfileFormats () noexcept=default |
| Construct an empty format set. | |
| constexpr | ProfileFormats (ProfileFormat format) noexcept |
| Construct a format set containing only one specific format. | |
| constexpr bool | operator== (const ProfileFormats &other) const noexcept=default |
| Compare this format set to another for equality. | |
| constexpr bool | empty () const noexcept |
| Check if the format set is empty. | |
| constexpr bool | contains (ProfileFormat format) const noexcept |
| Check if the format set contains the given format. | |
| constexpr bool | containsAnyOf (ProfileFormats formats) const noexcept |
| Check if the format set contains at least one of the given formats. | |
| constexpr bool | containsAllOf (ProfileFormats formats) const noexcept |
| Check if the format set contains all of the given formats. | |
Static Public Attributes | |
| static const ProfileFormats | ALL = ~ProfileFormats{} |
| Set containing all possible object formats. | |
Friends | |
| constexpr ProfileFormats | operator~ (ProfileFormats a) noexcept |
| Get the complement of a format set. | |
| constexpr ProfileFormats | operator& (ProfileFormats a, ProfileFormats b) noexcept |
| Get the intersection of two format sets. | |
| constexpr ProfileFormats | operator| (ProfileFormats a, ProfileFormats b) noexcept |
| Get the union of two format sets. | |
| constexpr ProfileFormats | operator^ (ProfileFormats a, ProfileFormats b) noexcept |
| Get the symmetric difference of two format sets. | |
| constexpr ProfileFormats & | operator&= (ProfileFormats &a, ProfileFormats b) noexcept |
| Assign the intersection of two format sets to the first set. | |
| constexpr ProfileFormats & | operator|= (ProfileFormats &a, ProfileFormats b) noexcept |
| Assign the union of two format sets to the first set. | |
| constexpr ProfileFormats & | operator^= (ProfileFormats &a, ProfileFormats b) noexcept |
| Assign the symmetric difference of two format sets to the first set. | |
Set of formats to save profile data in.
|
constexprdefaultnoexcept |
Construct an empty format set.
|
inlineconstexprnoexcept |
Construct a format set containing only one specific format.
| format | format identifier to include. |
|
nodiscardconstexprdefaultnoexcept |
Compare this format set to another for equality.
| other | the format set to compare this one to. |
|
inlinenodiscardconstexprnoexcept |
Check if the format set is empty.
|
inlinenodiscardconstexprnoexcept |
Check if the format set contains the given format.
| format | format identifier to check for. |
|
inlinenodiscardconstexprnoexcept |
Check if the format set contains at least one of the given formats.
| formats | format set to check for. |
|
inlinenodiscardconstexprnoexcept |
Check if the format set contains all of the given formats.
| formats | format set to check for. |
|
friend |
Get the complement of a format set.
| a | the set to invert. |
|
friend |
Get the intersection of two format sets.
| a | first format set. |
| b | second format set. |
|
friend |
Get the union of two format sets.
| a | first format set. |
| b | second format set. |
|
friend |
Get the symmetric difference of two format sets.
| a | first format set. |
| b | second format set. |
|
friend |
Assign the intersection of two format sets to the first set.
| a | first format set. |
| b | second format set. |
|
friend |
Assign the union of two format sets to the first set.
| a | first format set. |
| b | second format set. |
|
friend |
Assign the symmetric difference of two format sets to the first set.
| a | first format set. |
| b | second format set. |
|
inlinestaticconstexpr |
Set containing all possible object formats.