Class: Babeltrace2::BTFieldClass::Option

Inherits:
Babeltrace2::BTFieldClass show all
Defined in:
lib/babeltrace2/trace-ir/field-class.rb

Direct Known Subclasses

WithSelectorField, WithoutSelectorField

Defined Under Namespace

Classes: WithSelectorField, WithoutSelectorField

Constant Summary

Constants inherited from Babeltrace2::BTFieldClass

IntegerSigned, IntegerUnsigned, RealDoublePrecision, RealSinglePrecision, TYPE_MAP

Instance Attribute Summary

Attributes inherited from Babeltrace2::BTObject

#handle

Instance Method Summary collapse

Methods inherited from Babeltrace2::BTFieldClass

from_h, #from_h, from_handle, #get_type, #get_user_attributes, #set_user_attributes, #type_is, #user_attributes=

Methods inherited from Babeltrace2::BTSharedObject

inherited, #initialize

Methods inherited from Babeltrace2::BTObject

#==, #initialize, #to_ptr

Constructor Details

This class inherits a constructor from Babeltrace2::BTSharedObject

Instance Method Details

#get_field_classObject Also known as: field_class



1128
1129
1130
1131
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1128

def get_field_class
  BTFieldClass.from_handle(
    Babeltrace2.bt_field_class_option_borrow_field_class(@handle))
end

#to_hObject



1134
1135
1136
1137
1138
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1134

def to_h
  res = super
  res[:field_class] = field_class.to_h
  res
end