OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
InputNumberCombination Struct Reference

Combination of input numbers. More...

#include <SimWheelTypes.hpp>

Public Member Functions

constexpr InputNumberCombination ()
 Create an empty combination of input numbers.
 
constexpr InputNumberCombination (std::initializer_list< InputNumber > items) noexcept
 Create a combination of input numbers.
 
constexpr InputNumberCombination (const uint128_t &from)
 Create from a 128-bit bitmap.
 
constexpr InputNumberCombination (uint128_t &&from)
 Create from a 128-bit bitmap.
 
constexpr uint8_t size () const noexcept
 Get the count of input numbers in the combination.
 
constexpr InputNumberCombination (const InputNumberCombination &) noexcept=default
 Copy constructor (default)
 
constexpr InputNumberCombination (InputNumberCombination &&) noexcept=default
 Move constructor (default)
 
constexpr InputNumberCombinationoperator= (const InputNumberCombination &) noexcept=default
 Copy-assignment (default)
 
constexpr InputNumberCombinationoperator= (InputNumberCombination &&)=default
 Move-assignment (default)
 
- Public Member Functions inherited from uint128_t
constexpr operator bool ()
 Non-zero check.
 
constexpr bool bit (uint8_t n) const noexcept
 Check bit.
 
constexpr void set_bit (uint8_t n, bool value=true) noexcept
 Set or clear a single bit.
 
constexpr uint128_toperator|= (const uint128_t &rhs) noexcept
 Compound bitwise OR.
 
constexpr uint128_toperator&= (const uint128_t &rhs) noexcept
 Compound bitwise AND.
 
constexpr uint128_toperator^= (const uint128_t &rhs) noexcept
 Compound bitwise XOR.
 

Additional Inherited Members

- Static Public Member Functions inherited from uint128_t
static constexpr uint128_t bitmap (uint8_t n) noexcept
 Get the bitmap that represents a number.
 
static constexpr uint128_t neg () noexcept
 Get the bitwise negation of zero.
 
- Public Attributes inherited from uint128_t
uint64_t low {0ULL}
 Least significant unsigned long long.
 
uint64_t high {0ULL}
 Most significant unsigned long long.
 

Detailed Description

Combination of input numbers.

Definition at line 725 of file SimWheelTypes.hpp.

Constructor & Destructor Documentation

◆ InputNumberCombination() [1/4]

InputNumberCombination::InputNumberCombination ( )
inlineconstexpr

Create an empty combination of input numbers.

Definition at line 728 of file SimWheelTypes.hpp.

◆ InputNumberCombination() [2/4]

InputNumberCombination::InputNumberCombination ( std::initializer_list< InputNumber > items)
inlineconstexprnoexcept

Create a combination of input numbers.

Parameters
itemsList of values for initialization

Definition at line 735 of file SimWheelTypes.hpp.

◆ InputNumberCombination() [3/4]

InputNumberCombination::InputNumberCombination ( const uint128_t & from)
inlineconstexpr

Create from a 128-bit bitmap.

Parameters
fromBitmap

Definition at line 747 of file SimWheelTypes.hpp.

◆ InputNumberCombination() [4/4]

InputNumberCombination::InputNumberCombination ( uint128_t && from)
inlineconstexpr

Create from a 128-bit bitmap.

Parameters
fromBitmap

Definition at line 755 of file SimWheelTypes.hpp.

Member Function Documentation

◆ size()

uint8_t InputNumberCombination::size ( ) const
inlineconstexprnoexcept

Get the count of input numbers in the combination.

Returns
constexpr uint8_t Count of input numbers

Definition at line 763 of file SimWheelTypes.hpp.


The documentation for this struct was generated from the following file: