Class: Babeltrace2::BTFieldClass::Array

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

Direct Known Subclasses

Dynamic, Static

Defined Under Namespace

Classes: Dynamic, Static

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_element_field_classObject Also known as: element_field_class



814
815
816
817
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 814

def get_element_field_class
  BTFieldClass.from_handle(
    Babeltrace2.bt_field_class_array_borrow_element_field_class(@handle))
end

#to_hObject



820
821
822
823
824
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 820

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