Class: Babeltrace2::BTField::Variant::WithSelectorField::IntegerUnsigned

Inherits:
Babeltrace2::BTField::Variant::WithSelectorField show all
Defined in:
lib/babeltrace2/trace-ir/field.rb

Constant Summary

Constants inherited from Babeltrace2::BTField

TYPE_MAP

Instance Attribute Summary

Attributes inherited from Babeltrace2::BTObject

#handle

Instance Method Summary collapse

Methods inherited from Babeltrace2::BTField::Variant

#get_option_count, #get_selected_option_field, #get_selected_option_index, #select_option_by_index, #to_s, #value

Methods inherited from Babeltrace2::BTField

from_handle, #get_class, #get_class_type, #to_s

Methods inherited from Babeltrace2::BTObject

#==, #initialize, #to_ptr

Constructor Details

This class inherits a constructor from Babeltrace2::BTObject

Instance Method Details

#get_selected_option_classObject Also known as: selected_option_class



867
868
869
870
871
# File 'lib/babeltrace2/trace-ir/field.rb', line 867

def get_selected_option_class
  handle = Babeltrace2.bt_field_variant_with_selector_field_integer_unsigned_borrow_selected_option_class_const(@handle)
  return nil if handle.null?
  BTFieldClassVariantWithSelectorFieldIntegerUnsignedOption.new(handle)
end