Class: Babeltrace2Gen::BTFieldClass::Option::WithSelectorField::IntegerUnsigned

Inherits:
Babeltrace2Gen::BTFieldClass::Option::WithSelectorField show all
Extended by:
Babeltrace2Gen::BTFromH
Defined in:
lib/metababel/bt2_stream_classes_generator.rb

Constant Summary

Constants included from Babeltrace2Gen::BTPrinter

Babeltrace2Gen::BTPrinter::INDENT_INCREMENT

Instance Attribute Summary collapse

Attributes inherited from Babeltrace2Gen::BTFieldClass::Option::WithSelectorField

#selector_field_path

Attributes inherited from Babeltrace2Gen::BTFieldClass::Option

#field_class

Attributes inherited from Babeltrace2Gen::BTFieldClass

#cast_type

Attributes included from Babeltrace2Gen::BTLocator

#parent, #variable

Instance Method Summary collapse

Methods included from Babeltrace2Gen::BTFromH

from_h

Methods inherited from Babeltrace2Gen::BTFieldClass

#bt_get_variable, from_h, #get_declarator, #get_getter, #get_setter

Methods included from Babeltrace2Gen::BTPrinter

context, #name_sanitized, pr, #scope

Methods included from Babeltrace2Gen::BTLocator

#rec_event_class, #rec_menber_class, #rec_stream_class, #resolve_path

Constructor Details

#initialize(parent:, field_class:, selector_field_path:, selector_ranges:) ⇒ IntegerUnsigned

Returns a new instance of IntegerUnsigned.



743
744
745
746
# File 'lib/metababel/bt2_stream_classes_generator.rb', line 743

def initialize(parent:, field_class:, selector_field_path:, selector_ranges:)
  @selector_ranges = selector_ranges
  super(parent: parent, field_class: field_class, selector_field_path: selector_field_path)
end

Instance Attribute Details

#selector_rangesObject (readonly)

Returns the value of attribute selector_ranges.



741
742
743
# File 'lib/metababel/bt2_stream_classes_generator.rb', line 741

def selector_ranges
  @selector_ranges
end