Class: Babeltrace2::BTFieldClass::Option
- Inherits:
-
Babeltrace2::BTFieldClass
- Object
- Babeltrace2::BTObject
- Babeltrace2::BTSharedObject
- Babeltrace2::BTFieldClass
- Babeltrace2::BTFieldClass::Option
- Defined in:
- lib/babeltrace2/trace-ir/field-class.rb
Direct Known Subclasses
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
Instance Method Summary collapse
- #get_field_class ⇒ Object (also: #field_class)
- #to_h ⇒ Object
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
Methods inherited from Babeltrace2::BTObject
Constructor Details
This class inherits a constructor from Babeltrace2::BTSharedObject
Instance Method Details
#get_field_class ⇒ Object 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_h ⇒ Object
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 |