Class: Babeltrace2::BTObject

Inherits:
Object
  • Object
show all
Defined in:
lib/babeltrace2/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handle) ⇒ BTObject

Returns a new instance of BTObject.



564
565
566
567
# File 'lib/babeltrace2/types.rb', line 564

def initialize(handle)
  raise "Invalid handle" if !handle
  @handle = handle
end

Instance Attribute Details

#handleObject (readonly)

Returns the value of attribute handle.



562
563
564
# File 'lib/babeltrace2/types.rb', line 562

def handle
  @handle
end

Instance Method Details

#==(other) ⇒ Object



573
574
575
# File 'lib/babeltrace2/types.rb', line 573

def ==(other)
  @handle == other.handle
end

#to_ptrObject



569
570
571
# File 'lib/babeltrace2/types.rb', line 569

def to_ptr
  @handle
end