def __next__(self): if self._at == len(self._comp_ports): raise StopIteration comp_ports = self._comp_ports comp_ptr = comp_ports._component._ptr port_ptr = comp_ports._get_port_at_index_fn(comp_ptr, self._at) assert (port_ptr) if comp_ports._is_private: port_pub_ptr = native_bt.port_from_private(port_ptr) name = native_bt.port_get_name(port_pub_ptr) native_bt.put(port_pub_ptr) else: name = native_bt.port_get_name(port_ptr) assert (name is not None) native_bt.put(port_ptr) self._at += 1 return name
def __next__(self): if self._at == len(self._comp_ports): raise StopIteration comp_ports = self._comp_ports comp_ptr = comp_ports._component._ptr port_ptr = comp_ports._get_port_at_index_fn(comp_ptr, self._at) assert(port_ptr) if comp_ports._is_private: port_pub_ptr = native_bt.port_from_private(port_ptr) name = native_bt.port_get_name(port_pub_ptr) native_bt.put(port_pub_ptr) else: name = native_bt.port_get_name(port_ptr) assert(name is not None) native_bt.put(port_ptr) self._at += 1 return name
def __next__(self): if self._at == len(self._comp_ports): raise StopIteration comp_ports = self._comp_ports comp_ptr = comp_ports._component_ptr port_ptr = comp_ports._borrow_port_ptr_at_index(comp_ptr, self._at) assert port_ptr is not None name = native_bt.port_get_name(comp_ports._port_pycls._as_port_ptr(port_ptr)) assert name is not None self._at += 1 return name
def name(self): ptr = self._as_port_ptr(self._ptr) name = native_bt.port_get_name(ptr) assert name is not None return name
def _name(ptr): name = native_bt.port_get_name(ptr) assert (name is not None) return name
def _name(ptr): name = native_bt.port_get_name(ptr) assert(name is not None) return name