class _UnsignedIntegerFieldClass(
_UnsignedIntegerFieldClassConst, _IntegerFieldClass, _FieldClass
):
class _UnsignedIntegerFieldClass(
_UnsignedIntegerFieldClassConst, _IntegerFieldClass, _FieldClass
):
class _SignedIntegerFieldClass(
_SignedIntegerFieldClassConst, _IntegerFieldClass, _FieldClass
):
class _SignedIntegerFieldClass(
_SignedIntegerFieldClassConst, _IntegerFieldClass, _FieldClass
):
status, labels = self._get_mapping_labels_for_value(self._ptr, value)
utils._handle_func_status(
status, labels = self._get_mapping_labels_for_value(self._ptr, value)
utils._handle_func_status(
status = self._add_mapping(self._ptr, label, ranges._ptr)
utils._handle_func_status(
status = self._add_mapping(self._ptr, label, ranges._ptr)
utils._handle_func_status(
class _UnsignedEnumerationFieldClassConst(
_EnumerationFieldClassConst, _UnsignedIntegerFieldClassConst
):
class _UnsignedEnumerationFieldClassConst(
_EnumerationFieldClassConst, _UnsignedIntegerFieldClassConst
):
_borrow_mapping_ptr_by_label = staticmethod(
native_bt.field_class_enumeration_unsigned_borrow_mapping_by_label_const
)
_borrow_mapping_ptr_by_label = staticmethod(
native_bt.field_class_enumeration_unsigned_borrow_mapping_by_label_const
)
_range_set_pycls = bt2_integer_range_set.UnsignedIntegerRangeSet
_add_mapping = staticmethod(native_bt.field_class_enumeration_unsigned_add_mapping)
_range_set_pycls = bt2_integer_range_set.UnsignedIntegerRangeSet
_add_mapping = staticmethod(native_bt.field_class_enumeration_unsigned_add_mapping)
class _SignedEnumerationFieldClassConst(
_EnumerationFieldClassConst, _SignedIntegerFieldClassConst
):
class _SignedEnumerationFieldClassConst(
_EnumerationFieldClassConst, _SignedIntegerFieldClassConst
):
_borrow_mapping_ptr_by_label = staticmethod(
native_bt.field_class_enumeration_signed_borrow_mapping_by_label_const
)
_borrow_mapping_ptr_by_label = staticmethod(
native_bt.field_class_enumeration_signed_borrow_mapping_by_label_const
)
class _SignedEnumerationFieldClass(
_SignedEnumerationFieldClassConst, _EnumerationFieldClass, _SignedIntegerFieldClass
):
class _SignedEnumerationFieldClass(
_SignedEnumerationFieldClassConst, _EnumerationFieldClass, _SignedIntegerFieldClass
):
_range_set_pycls = bt2_integer_range_set.SignedIntegerRangeSet
_add_mapping = staticmethod(native_bt.field_class_enumeration_signed_add_mapping)
class _StringFieldClassConst(_FieldClassConst):
_range_set_pycls = bt2_integer_range_set.SignedIntegerRangeSet
_add_mapping = staticmethod(native_bt.field_class_enumeration_signed_add_mapping)
class _StringFieldClassConst(_FieldClassConst):
_borrow_member_ptr_by_index = staticmethod(
native_bt.field_class_structure_borrow_member_by_index_const
)
_borrow_member_ptr_by_index = staticmethod(
native_bt.field_class_structure_borrow_member_by_index_const
)
self._ptr, name, field_class._ptr
)
utils._handle_func_status(
self._ptr, name, field_class._ptr
)
utils._handle_func_status(
_create_field_class_from_ptr_and_get_ref = staticmethod(
_create_field_class_from_const_ptr_and_get_ref
)
_create_field_class_from_ptr_and_get_ref = staticmethod(
_create_field_class_from_const_ptr_and_get_ref
)
_range_set_pycls = bt2_integer_range_set._UnsignedIntegerRangeSetConst
_borrow_selector_ranges_ptr = staticmethod(
native_bt.field_class_option_with_selector_field_integer_unsigned_borrow_selector_ranges_const
_range_set_pycls = bt2_integer_range_set._UnsignedIntegerRangeSetConst
_borrow_selector_ranges_ptr = staticmethod(
native_bt.field_class_option_with_selector_field_integer_unsigned_borrow_selector_ranges_const
_range_set_pycls = bt2_integer_range_set._SignedIntegerRangeSetConst
_borrow_selector_ranges_ptr = staticmethod(
native_bt.field_class_option_with_selector_field_integer_signed_borrow_selector_ranges_const
_range_set_pycls = bt2_integer_range_set._SignedIntegerRangeSetConst
_borrow_selector_ranges_ptr = staticmethod(
native_bt.field_class_option_with_selector_field_integer_signed_borrow_selector_ranges_const
class _OptionWithSelectorFieldClass(
_OptionWithSelectorFieldClassConst, _OptionFieldClass
):
class _OptionWithSelectorFieldClass(
_OptionWithSelectorFieldClassConst, _OptionFieldClass
):
class _OptionWithBoolSelectorFieldClass(
_OptionWithBoolSelectorFieldClassConst, _OptionWithSelectorFieldClass
):
class _OptionWithBoolSelectorFieldClass(
_OptionWithBoolSelectorFieldClassConst, _OptionWithSelectorFieldClass
):
def _selector_is_reversed(self, selector_is_reversed):
utils._check_bool(selector_is_reversed)
def _selector_is_reversed(self, selector_is_reversed):
utils._check_bool(selector_is_reversed)
class _OptionWithIntegerSelectorFieldClass(
_OptionWithIntegerSelectorFieldClassConst, _OptionWithSelectorFieldClass
):
class _OptionWithIntegerSelectorFieldClass(
_OptionWithIntegerSelectorFieldClassConst, _OptionWithSelectorFieldClass
):
class _OptionWithUnsignedIntegerSelectorFieldClass(
_OptionWithUnsignedIntegerSelectorFieldClassConst,
_OptionWithIntegerSelectorFieldClass,
):
class _OptionWithUnsignedIntegerSelectorFieldClass(
_OptionWithUnsignedIntegerSelectorFieldClassConst,
_OptionWithIntegerSelectorFieldClass,
):
class _OptionWithSignedIntegerSelectorFieldClass(
_OptionWithSignedIntegerSelectorFieldClassConst,
_OptionWithIntegerSelectorFieldClass,
):
class _OptionWithSignedIntegerSelectorFieldClass(
_OptionWithSignedIntegerSelectorFieldClassConst,
_OptionWithIntegerSelectorFieldClass,
):
class _VariantFieldClassWithoutSelector(
_VariantFieldClassWithoutSelectorConst, _VariantFieldClass
):
class _VariantFieldClassWithoutSelector(
_VariantFieldClassWithoutSelectorConst, _VariantFieldClass
):
def append_option(self, name, field_class, user_attributes=None):
utils._check_str(name)
def append_option(self, name, field_class, user_attributes=None):
utils._check_str(name)
self._ptr, name, field_class._ptr
)
utils._handle_func_status(
self._ptr, name, field_class._ptr
)
utils._handle_func_status(
class _VariantFieldClassWithIntegerSelector(
_VariantFieldClassWithIntegerSelectorConst, _VariantFieldClass
):
class _VariantFieldClassWithIntegerSelector(
_VariantFieldClassWithIntegerSelectorConst, _VariantFieldClass
):
def append_option(self, name, field_class, ranges, user_attributes=None):
utils._check_str(name)
def append_option(self, name, field_class, ranges, user_attributes=None):
utils._check_str(name)
status = self._append_option(self._ptr, name, field_class._ptr, ranges._ptr)
utils._handle_func_status(
status = self._append_option(self._ptr, name, field_class._ptr, ranges._ptr)
utils._handle_func_status(
_borrow_option_ptr_by_name = staticmethod(
native_bt.field_class_variant_with_selector_field_integer_unsigned_borrow_option_by_name_const
)
_borrow_option_ptr_by_name = staticmethod(
native_bt.field_class_variant_with_selector_field_integer_unsigned_borrow_option_by_name_const
)
_VariantFieldClassWithUnsignedIntegerSelectorConst,
_VariantFieldClassWithIntegerSelector,
):
_VariantFieldClassWithUnsignedIntegerSelectorConst,
_VariantFieldClassWithIntegerSelector,
):
_variant_option_pycls = _VariantFieldClassWithUnsignedIntegerSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_append_option = staticmethod(
_variant_option_pycls = _VariantFieldClassWithUnsignedIntegerSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_append_option = staticmethod(
_borrow_option_ptr_by_name = staticmethod(
native_bt.field_class_variant_with_selector_field_integer_signed_borrow_option_by_name_const
)
_borrow_option_ptr_by_name = staticmethod(
native_bt.field_class_variant_with_selector_field_integer_signed_borrow_option_by_name_const
)
_VariantFieldClassWithSignedIntegerSelectorConst,
_VariantFieldClassWithIntegerSelector,
):
_VariantFieldClassWithSignedIntegerSelectorConst,
_VariantFieldClassWithIntegerSelector,
):
_variant_option_pycls = _VariantFieldClassWithSignedIntegerSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_append_option = staticmethod(
_variant_option_pycls = _VariantFieldClassWithSignedIntegerSelectorOption
_as_option_ptr = staticmethod(_variant_option_pycls._as_option_ptr)
_append_option = staticmethod(
class _DynamicArrayWithLengthFieldFieldClass(
_DynamicArrayWithLengthFieldFieldClassConst, _DynamicArrayFieldClass
):
class _DynamicArrayWithLengthFieldFieldClass(
_DynamicArrayWithLengthFieldFieldClassConst, _DynamicArrayFieldClass
):