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

Inherits:
Babeltrace2Gen::BTFieldClass::Option show all
Defined in:
lib/metababel/bt2_stream_classes_generator.rb

Direct Known Subclasses

Bool, IntegerSigned, IntegerUnsigned

Defined Under Namespace

Classes: Bool, IntegerSigned, IntegerUnsigned

Constant Summary

Constants included from Babeltrace2Gen::BTPrinter

Babeltrace2Gen::BTPrinter::INDENT_INCREMENT

Instance Attribute Summary collapse

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 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:) ⇒ WithSelectorField

Returns a new instance of WithSelectorField.



723
724
725
726
# File 'lib/metababel/bt2_stream_classes_generator.rb', line 723

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

Instance Attribute Details

#selector_field_pathObject (readonly)

Returns the value of attribute selector_field_path.



721
722
723
# File 'lib/metababel/bt2_stream_classes_generator.rb', line 721

def selector_field_path
  @selector_field_path
end