Class: Babeltrace2Gen::BTFieldClass::Option

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

Direct Known Subclasses

WithSelectorField, WithoutSelectorField

Defined Under Namespace

Classes: WithSelectorField, WithoutSelectorField

Constant Summary

Constants inherited from Babeltrace2Gen::BTFieldClass

BT_MATCH_ATTRS

Constants included from Babeltrace2Gen::BTPrinter

Babeltrace2Gen::BTPrinter::INDENT_INCREMENT

Instance Attribute Summary collapse

Attributes inherited from Babeltrace2Gen::BTFieldClass

#cast_type, #cast_type_is_struct, #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::BTMatch

#match?

Methods included from Babeltrace2Gen::BTPrinter

context, #name_sanitized, pr, #scope

Methods included from Babeltrace2Gen::BTLocator

#rec_event_class, #rec_member_class, #rec_stream_class, #rec_trace_class, #resolve_path

Constructor Details

#initialize(parent:, field_class:) ⇒ Option

Returns a new instance of Option.



872
873
874
875
# File 'lib/metababel/bt2_trace_class_generator.rb', line 872

def initialize(parent:, field_class:)
  @parent = parent
  @field_class = BTFieldClass.from_h(self, field_class)
end

Instance Attribute Details

#field_classObject (readonly)

Returns the value of attribute field_class.



870
871
872
# File 'lib/metababel/bt2_trace_class_generator.rb', line 870

def field_class
  @field_class
end