Class: Babeltrace2::BTFieldClass::Option::WithSelectorField

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

Direct Known Subclasses

Bool, IntegerSigned, IntegerUnsigned

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

#handle

Instance Method Summary collapse

Methods inherited from Babeltrace2::BTFieldClass::Option

#get_field_class

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_selector_field_pathObject 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_hObject



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