|
bool | supported (CPUFeature featureSet) const |
| Check if a set of features are currently supported and enabled.
|
|
bool | prefers (PlatformPreference preferenceSet) const |
|
void | setPlatformPreference (PlatformPreference preferenceSet) |
|
void | restrictTo (CPUFeature allowedSet) |
| Restrict the set of the detected features to the intersection with allowed features.
|
|
std::string | asString () const |
| Create a space-seperated list of features.
|
|
Definition at line 107 of file Features.h.
◆ Features()
◆ ~Features()
◆ asString()
std::string Features::asString |
( |
| ) |
const |
◆ prefers()
bool Cogs::Core::Features::prefers |
( |
PlatformPreference |
preferenceSet | ) |
const |
|
inline |
◆ restrictTo()
void Features::restrictTo |
( |
CPUFeature |
allowedSet | ) |
|
Restrict the set of the detected features to the intersection with allowed features.
Definition at line 180 of file Features.cpp.
◆ setPlatformPreference()
void Cogs::Core::Features::setPlatformPreference |
( |
PlatformPreference |
preferenceSet | ) |
|
|
inline |
◆ supported()
bool Cogs::Core::Features::supported |
( |
CPUFeature |
featureSet | ) |
const |
|
inline |
Check if a set of features are currently supported and enabled.
Definition at line 115 of file Features.h.
Referenced by asString().
◆ currentCPUFeatureSet
CPUFeature Cogs::Core::Features::currentCPUFeatureSet = CPUFeature::None |
|
private |
◆ currentPlatformPreferenceSet
PlatformPreference Cogs::Core::Features::currentPlatformPreferenceSet = (PlatformPreference)((unsigned)PlatformPreference::BackgroundTasks | (unsigned)PlatformPreference::AsyncFetch) |
|
private |
◆ detectedCPUFeatureSet
CPUFeature Cogs::Core::Features::detectedCPUFeatureSet = CPUFeature::None |
|
private |
The documentation for this class was generated from the following files: