![]() |
FireSTARR
|
A table initialized using the given function ranging over the number of digits and precision. More...
#include <LookupTable.h>

Public Member Functions | |
| LookupTable (LookupTable &&rhs) noexcept=delete | |
| LookupTable (const LookupTable &rhs) noexcept=delete | |
| LookupTable & | operator= (LookupTable &&rhs) noexcept=delete |
| LookupTable & | operator= (const LookupTable &rhs) noexcept=delete |
| constexpr MathSize | operator() (const MathSize value) const |
| Get result of function lookup table was initialized with for given value. | |
Private Types | |
| using | ValuesArray = array<MathSize, pow_int<IndexDigits>(10) * pow_int<Precision>(10)> |
| Array with enough space for function called with specific number of digits and precision. | |
Private Member Functions | |
| constexpr ValuesArray | makeValues () |
| Call function with range of values with given precision. | |
Private Attributes | |
| const ValuesArray | values_ |
| Array of values from calling function. | |
A table initialized using the given function ranging over the number of digits and precision.
| Fct | Function to apply over the range of values |
| IndexDigits | Number of digits to use for range of values |
| Precision | Precision in decimal places to use for range of values |
|
inlinenodiscardconstexprprivate |
Call function with range of values with given precision.
|
inlinenodiscardconstexpr |
Get result of function lookup table was initialized with for given value.
| value | value to get lookup result for |