#include <e2sarUtil.hpp>
Public Types | |
enum class | Code { none = 0 , sendmmsg = 1 , liburing_send = 2 , liburing_recv = 3 , unknown = 15 } |
Static Public Member Functions | |
static OptimizationsWord | toWord (Code o) |
static std::string | toString (Code o) |
static Code | fromString (const std::string &opt) |
static const std::vector< std::string > | availableAsStrings () noexcept |
static const OptimizationsWord | availableAsWord () noexcept |
static result< int > | select (std::vector< std::string > &opt) noexcept |
static result< int > | select (std::vector< Code > &opt) noexcept |
static const std::vector< std::string > | selectedAsStrings () noexcept |
static const OptimizationsWord | selectedAsWord () noexcept |
static const std::vector< Code > | selectedAsList () noexcept |
static const bool | isSelected (Code o) noexcept |
This class encompasses the definition, encoding and selection of optimizations There are two types of optimizations - available (compiled in) and selected (chosen)
|
staticnoexcept |
List of strings of available optimizations that are compiled in
|
staticnoexcept |
Get a single 16-bit word with OR of all compiled-in optimizations
A word bit-wise ORing all available optimizationsn
|
staticnoexcept |
Is this optimization selected?
|
staticnoexcept |
Select optimizations based on enum value names and add them to internal state
Select optimizations based on enum value names
|
staticnoexcept |
Select optimizations based on names and add them to internal state
Select optimizations based on names
|
staticnoexcept |
List of selected optimizations as a vector
A word bitwise ORing all selected optimizations
|
staticnoexcept |
List of strings of selected optimizations
|
staticnoexcept |
List of selected optimizations as a word