Class: Babeltrace2::BTConnection

Inherits:
BTSharedObject show all
Defined in:
lib/babeltrace2/graph/connection.rb

Instance Attribute Summary

Attributes inherited from BTObject

#handle

Instance Method Summary collapse

Methods inherited from BTSharedObject

inherited, #initialize

Methods inherited from BTObject

#==, #initialize, #to_ptr

Constructor Details

This class inherits a constructor from Babeltrace2::BTSharedObject

Instance Method Details

#get_downstream_portObject Also known as: downstream_port



23
24
25
26
# File 'lib/babeltrace2/graph/connection.rb', line 23

def get_downstream_port
  handle = Babeltrace2.bt_connection_borrow_downstream_port_const(@handle)
  BTPortInput.new(handle, retain: true)
end

#get_upstream_portObject Also known as: upstream_port



29
30
31
32
# File 'lib/babeltrace2/graph/connection.rb', line 29

def get_upstream_port
  handle = Babeltrace2.bt_connection_borrow_upstream_port_const(@handle)
  BTPortOutput.new(handle, retain: true)
end