Class: Babeltrace2::BTFieldClass::Option::WithSelectorField
- Inherits:
-
Babeltrace2::BTFieldClass::Option
- Object
- Babeltrace2::BTObject
- Babeltrace2::BTSharedObject
- Babeltrace2::BTFieldClass
- Babeltrace2::BTFieldClass::Option
- Babeltrace2::BTFieldClass::Option::WithSelectorField
- Defined in:
- lib/babeltrace2/trace-ir/field-class.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Bool, IntegerSigned, IntegerUnsigned
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_selector_field_path ⇒ Object (also: #selector_field_path)
- #to_h ⇒ Object
Methods inherited from Babeltrace2::BTFieldClass::Option
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_selector_field_path ⇒ Object Also known as: selector_field_path
1178 1179 1180 1181 1182 |
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1178 def get_selector_field_path handle = Babeltrace2.bt_field_class_option_with_selector_field_borrow_selector_field_path_const(@handle) return nil if handle.null? BTFieldPath.new(handle, retain: true) end |
#to_h ⇒ Object
1185 1186 1187 1188 1189 |
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1185 def to_h res = super res[:selector_field_path] = selector_field_path.to_s if selector_field_path res end |