159 if(metadata.name == name)
return metadata.type;
167 std::size_t
count = 0;
169 digits[
count++] =
static_cast<char>(
'0' + value % 10U);
171 }
while(value != 0U);
172 while(
count != 0U) out.push_back(digits[--
count]);
181 std::size_t
fb_count() const noexcept {
return fbs_.size(); }
191 if(desc.id ==
id)
return &desc;
202 return targets_[index];
211 out,
static_cast<std::uint32_t
>(fb_desc.id));
214 out,
static_cast<std::uint8_t
>(fb_desc.set));
216 out.append(fb_desc.lower_name.data(), fb_desc.lower_name.size());
218 out.append(fb_desc.source.data(), fb_desc.source.size());
220 out += fb_desc.declared ?
'1' :
'0';
221 out +=
" generated=";
222 out += fb_desc.generated ?
'1' :
'0';
224 out += fb_desc.excluded ?
'1' :
'0';
226 out.append(fb_desc.scope_reason.data(), fb_desc.scope_reason.size());
227 out +=
" rejection=";
228 out.append(fb_desc.rejection_test.data(),
229 fb_desc.rejection_test.size());
231 for(std::size_t index = 0; index < fb_desc.pin_count; ++index) {
237 out +=
" direction=";
239 out,
static_cast<std::uint8_t
>(pin.
direction));
244 out +=
" generated=";
250 out +=
" rejection=";
259 out,
static_cast<std::uint8_t
>(target_desc.kind));
263 out += target_desc.bindable ?
'1' :
'0';
272 static constexpr std::size_t kMaxPins = 32;
277 for(std::size_t fb_index = 0;
281 for(std::size_t pin_index = 0; pin_index < source.
pin_count;
285 pins_[fb_index][pin_index] = {
289 true,
true,
false, {}, {}};
295 pins_[fb_index].data(), source.
pin_count};
300 std::array<std::array<BindingPinDesc, kMaxPins>,
303 std::array<BindingTargetDesc, 2> targets_{{
311 static const BindingManifest manifest;
316 "aliased native FBs require distinct binding identities");
std::size_t target_count() const noexcept
std::size_t fb_count() const noexcept
std::string canonical_dump() const
const BindingFbDesc * find(BindingFbId id) const noexcept
friend const BindingManifest & binding_manifest()
const BindingFbDesc & fb(std::size_t index) const noexcept
const BindingTargetDesc & target(std::size_t index) const noexcept
const TypeTable & type_table() const noexcept
constexpr BindingSet binding_set(generated::StBindingSet set) noexcept
constexpr PinDirection pin_direction(generated::StBindingPinDirection direction) noexcept
constexpr TypeId pin_type_id(std::string_view name) noexcept
void append_unsigned(std::string &out, std::uint64_t value)
constexpr TypeId group_ref
constexpr TypeId axis_ref
constexpr std::array< StBindingTypeMetadata, 49 > kStBindingTypes
constexpr std::array< StBindingPinMetadata, 1476 > kStBindingPins
constexpr std::array< StBindingFbMetadata, 134 > kStBindingFbs
TypeError install_binding_types(TypeTable &types)
std::uint16_t BindingPinId
@ mc_remove_axis_from_group
const BindingManifest & binding_manifest()
constexpr TypeId invalid_type_id
std::string_view scope_reason
std::string_view lower_name
const BindingPinDesc * pins
std::string_view rejection_test
std::string_view lower_name
std::string_view scope_reason
std::string_view rejection_test