37 const auto& raw = lutc->get_output_pin_configs();
38 std::vector<std::pair<std::string, LUTComponent::LUTOutputConfig>> configs(raw.begin(), raw.end());
39 std::sort(configs.begin(), configs.end(), [](
const auto& a,
const auto& b) { return a.first < b.first; });
41 for (
const auto& [pin_name, cfg] : configs)
44 if (cfg.bit_count > 0)
45 value +=
QString(
" [%1..%2] %3").
arg(cfg.bit_offset).
arg(cfg.bit_offset + cfg.bit_count - 1).
arg(cfg.is_ascending ?
"asc" :
"desc");
bool has_component_of_type(const GateTypeComponent::ComponentType type) const
T * get_component_as(const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const
GatelibraryFrameLut(QWidget *parent=nullptr)
static bool is_class_of(const GateTypeComponent *component)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
QString fromStdString(const std::string &str)