KiCad PCB EDA Suite
Loading...
Searching...
No Matches
calc_parser::ESERIES_UTILS Class Reference

Static Public Member Functions

static auto FindNearest (double aValue, const std::string &aSeries) -> std::optional< double >
 
static auto FindUp (double aValue, const std::string &aSeries) -> std::optional< double >
 
static auto FindDown (double aValue, const std::string &aSeries) -> std::optional< double >
 

Static Private Member Functions

static auto parseSeriesString (const std::string &aSeries) -> int
 
static auto getSeriesValue (int aSeries, size_t aIndex) -> uint16_t
 
static auto getSeriesSize (int aSeries) -> size_t
 

Static Private Attributes

static constexpr std::array< uint16_t, 24 > s_e24
 
static constexpr std::array< uint16_t, 192 > s_e192
 

Detailed Description

Definition at line 321 of file text_eval_parser.cpp.

Member Function Documentation

◆ FindDown()

static auto calc_parser::ESERIES_UTILS::FindDown ( double aValue,
const std::string & aSeries ) -> std::optional<double>
inlinestatic

◆ FindNearest()

static auto calc_parser::ESERIES_UTILS::FindNearest ( double aValue,
const std::string & aSeries ) -> std::optional<double>
inlinestatic

◆ FindUp()

static auto calc_parser::ESERIES_UTILS::FindUp ( double aValue,
const std::string & aSeries ) -> std::optional<double>
inlinestatic

◆ getSeriesSize()

static auto calc_parser::ESERIES_UTILS::getSeriesSize ( int aSeries) -> size_t
inlinestaticprivate

Definition at line 381 of file text_eval_parser.cpp.

Referenced by FindDown(), FindNearest(), and FindUp().

◆ getSeriesValue()

static auto calc_parser::ESERIES_UTILS::getSeriesValue ( int aSeries,
size_t aIndex ) -> uint16_t
inlinestaticprivate

Definition at line 365 of file text_eval_parser.cpp.

References s_e192, and s_e24.

Referenced by FindDown(), FindNearest(), and FindUp().

◆ parseSeriesString()

static auto calc_parser::ESERIES_UTILS::parseSeriesString ( const std::string & aSeries) -> int
inlinestaticprivate

Definition at line 345 of file text_eval_parser.cpp.

Referenced by FindDown(), FindNearest(), and FindUp().

Member Data Documentation

◆ s_e192

std::array<uint16_t, 192> calc_parser::ESERIES_UTILS::s_e192
staticconstexprprivate
Initial value:
= {
100, 101, 102, 104, 105, 106, 107, 109, 110, 111, 113, 114, 115, 117, 118, 120, 121, 123,
124, 126, 127, 129, 130, 132, 133, 135, 137, 138, 140, 142, 143, 145, 147, 149, 150, 152,
154, 156, 158, 160, 162, 164, 165, 167, 169, 172, 174, 176, 178, 180, 182, 184, 187, 189,
191, 193, 196, 198, 200, 203, 205, 208, 210, 213, 215, 218, 221, 223, 226, 229, 232, 234,
237, 240, 243, 246, 249, 252, 255, 258, 261, 264, 267, 271, 274, 277, 280, 284, 287, 291,
294, 298, 301, 305, 309, 312, 316, 320, 324, 328, 332, 336, 340, 344, 348, 352, 357, 361,
365, 370, 374, 379, 383, 388, 392, 397, 402, 407, 412, 417, 422, 427, 432, 437, 442, 448,
453, 459, 464, 470, 475, 481, 487, 493, 499, 505, 511, 517, 523, 530, 536, 542, 549, 556,
562, 569, 576, 583, 590, 597, 604, 612, 619, 626, 634, 642, 649, 657, 665, 673, 681, 690,
698, 706, 715, 723, 732, 741, 750, 759, 768, 777, 787, 796, 806, 816, 825, 835, 845, 856,
866, 876, 887, 898, 909, 920, 931, 942, 953, 965, 976, 988
}

Definition at line 331 of file text_eval_parser.cpp.

Referenced by getSeriesValue().

◆ s_e24

std::array<uint16_t, 24> calc_parser::ESERIES_UTILS::s_e24
staticconstexprprivate
Initial value:
= {
100, 110, 120, 130, 150, 160, 180, 200, 220, 240, 270, 300,
330, 360, 390, 430, 470, 510, 560, 620, 680, 750, 820, 910
}

Definition at line 325 of file text_eval_parser.cpp.

Referenced by getSeriesValue().


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