Private views of ports for component class instance methods. 
The bt_self_component_port, bt_self_component_port_input, and bt_self_component_port_output types are private views of a port from within a component class instance method.
Borrow the self component of a port with bt_self_component_port_borrow_component().
Get the user data attached to a port with bt_self_component_port_get_data().
Upcast the "self" (private) types to the public and common self component port types with the bt_self_component_port*_as_port*() and bt_self_component_port_*_as_self_component_port() functions. 
◆ bt_self_component_port_borrow_component()
Borrows the component of the port self_component_port. 
- Parameters
- 
  
    | [in] | self_component_port | Port from which to borrow the component which owns it. |  
 
- Returns
- Component which owns self_component_port.
- Precondition
- self_component_port is not NULL.
 
 
◆ bt_self_component_port_get_data()
◆ bt_self_component_port_as_port()
Upcasts the self component port self_component_port to the public bt_port type. 
- Parameters
- 
  
    | [in] | self_component_port | Port to upcast. Can be NULL. |  
 
- Returns
- self_component_port as a public port. 
 
 
◆ bt_self_component_port_input_as_port_input()
Upcasts the self component input port self_component_port to the public bt_port_input type. 
- Parameters
- 
  
    | [in] | self_component_port | Input port to upcast. Can be NULL. |  
 
- Returns
- self_component_port as a public input port. 
 
 
◆ bt_self_component_port_output_as_port_output()
Upcasts the self component output port self_component_port to the public bt_port_output type. 
- Parameters
- 
  
    | [in] | self_component_port | Output port to upcast. Can be NULL. |  
 
- Returns
- self_component_port as a public output port. 
 
 
◆ bt_self_component_port_input_as_self_component_port()
Upcasts the self input port self_component_port to the common bt_self_component_port type. 
- Parameters
- 
  
    | [in] | self_component_port | Input port to upcast. Can be NULL. |  
 
- Returns
- self_component_port as a common self component port. 
 
 
◆ bt_self_component_port_output_as_self_component_port()
Upcasts the self output port self_component_port to the common bt_self_component_port type. 
- Parameters
- 
  
    | [in] | self_component_port | Output port to upcast. Can be NULL. |  
 
- Returns
- self_component_port as a common self component port.