Home
last modified time | relevance | path

Searched refs:proto_id (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-google/cirq_google/api/v2/
H A Dprogram.py45 def qubit_from_proto_id(proto_id: str) -> cirq.Qid:
62 num_coords = len(proto_id.split('_'))
65 grid_q = grid_qubit_from_proto_id(proto_id)
71 line_q = line_qubit_from_proto_id(proto_id)
77 named_q = named_qubit_from_proto_id(proto_id)
81 def grid_qubit_from_proto_id(proto_id: str) -> cirq.GridQubit:
98 match = re.match(GRID_QUBIT_ID_PATTERN, proto_id)
107 def line_qubit_from_proto_id(proto_id: str) -> cirq.LineQubit:
123 return cirq.LineQubit(x=int(proto_id))
128 def named_qubit_from_proto_id(proto_id: str) -> cirq.NamedQubit:
[all …]
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-google/cirq_google/api/v2/
H A Dprogram.py45 def qubit_from_proto_id(proto_id: str) -> cirq.Qid:
62 num_coords = len(proto_id.split('_'))
65 grid_q = grid_qubit_from_proto_id(proto_id)
71 line_q = line_qubit_from_proto_id(proto_id)
77 named_q = named_qubit_from_proto_id(proto_id)
81 def grid_qubit_from_proto_id(proto_id: str) -> cirq.GridQubit:
98 match = re.match(GRID_QUBIT_ID_PATTERN, proto_id)
107 def line_qubit_from_proto_id(proto_id: str) -> cirq.LineQubit:
123 return cirq.LineQubit(x=int(proto_id))
128 def named_qubit_from_proto_id(proto_id: str) -> cirq.NamedQubit:
[all …]
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-google/cirq_google/api/v2/
H A Dprogram.py45 def qubit_from_proto_id(proto_id: str) -> cirq.Qid:
62 num_coords = len(proto_id.split('_'))
65 grid_q = grid_qubit_from_proto_id(proto_id)
71 line_q = line_qubit_from_proto_id(proto_id)
77 named_q = named_qubit_from_proto_id(proto_id)
81 def grid_qubit_from_proto_id(proto_id: str) -> cirq.GridQubit:
98 match = re.match(GRID_QUBIT_ID_PATTERN, proto_id)
107 def line_qubit_from_proto_id(proto_id: str) -> cirq.LineQubit:
123 return cirq.LineQubit(x=int(proto_id))
128 def named_qubit_from_proto_id(proto_id: str) -> cirq.NamedQubit:
[all …]
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-google/cirq_google/api/v2/
H A Dprogram.py45 def qubit_from_proto_id(proto_id: str) -> cirq.Qid:
62 num_coords = len(proto_id.split('_'))
65 grid_q = grid_qubit_from_proto_id(proto_id)
71 line_q = line_qubit_from_proto_id(proto_id)
77 named_q = named_qubit_from_proto_id(proto_id)
81 def grid_qubit_from_proto_id(proto_id: str) -> cirq.GridQubit:
98 match = re.match(GRID_QUBIT_ID_PATTERN, proto_id)
107 def line_qubit_from_proto_id(proto_id: str) -> cirq.LineQubit:
123 return cirq.LineQubit(x=int(proto_id))
128 def named_qubit_from_proto_id(proto_id: str) -> cirq.NamedQubit:
[all …]
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-google/cirq_google/api/v2/
H A Dprogram.py45 def qubit_from_proto_id(proto_id: str) -> cirq.Qid:
62 num_coords = len(proto_id.split('_'))
65 grid_q = grid_qubit_from_proto_id(proto_id)
71 line_q = line_qubit_from_proto_id(proto_id)
77 named_q = named_qubit_from_proto_id(proto_id)
81 def grid_qubit_from_proto_id(proto_id: str) -> cirq.GridQubit:
98 match = re.match(GRID_QUBIT_ID_PATTERN, proto_id)
107 def line_qubit_from_proto_id(proto_id: str) -> cirq.LineQubit:
123 return cirq.LineQubit(x=int(proto_id))
128 def named_qubit_from_proto_id(proto_id: str) -> cirq.NamedQubit:
[all …]
/dports/net/exabgp4/exabgp-4.2.13/lib/exabgp/bgp/message/update/nlri/bgpls/
H A Dnode.py41 …def __init__(self, domain, proto_id, node_ids, packed=None, nexthop=None, action=None, route_d=Non… argument
44 self.proto_id = proto_id
56 '"protocol-id": %d' % int(self.proto_id),
67 proto_id = unpack('!B', data[0:1])[0]
68 if proto_id not in PROTO_CODES.keys():
69 raise Exception('Protocol-ID {} is not valid'.format(proto_id))
83 node_id, left = NodeDescriptor.unpack(values, proto_id)
89 return cls(domain=domain, proto_id=proto_id, node_ids=node_ids, route_d=rd, packed=data)
96 and self.proto_id == other.proto_id
107 return hash((self.proto_id, self.node_ids))
H A Dprefixv4.py43 proto_id, argument
56 self.proto_id = proto_id
66 proto_id = unpack('!B', data[0:1])[0]
67 if proto_id not in PROTO_CODES.keys():
68 raise Exception('Protocol-ID {} is not valid'.format(proto_id))
81 node, left = NodeDescriptor.unpack(values, proto_id)
99 proto_id=proto_id,
112 and self.proto_id == other.proto_id
131 '"protocol-id": %d' % int(self.proto_id),
H A Dprefixv6.py44 proto_id, argument
57 self.proto_id = proto_id
67 proto_id = unpack('!B', data[0:1])[0]
68 if proto_id not in PROTO_CODES.keys():
69 raise Exception('Protocol-ID {} is not valid'.format(proto_id))
82 node, left = NodeDescriptor.unpack(values, proto_id)
100 proto_id=proto_id,
113 and self.proto_id == other.proto_id
132 '"protocol-id": %d' % int(self.proto_id),
H A Dlink.py63 proto_id, argument
77 self.proto_id = proto_id
89 proto_id = unpack('!B', data[0:1])[0]
95 if proto_id not in PROTO_CODES.keys():
96 raise Exception('Protocol-ID {} is not valid'.format(proto_id))
109 node, left = NodeDescriptor.unpack(values, proto_id)
121 node, left = NodeDescriptor.unpack(values, proto_id)
149 proto_id=proto_id,
164 and self.proto_id == other.proto_id
187 content += '"protocol-id": %d, ' % int(self.proto_id)
/dports/net/wireshark/wireshark-3.6.1/ui/qt/
H A Dcapture_info_dialog.cpp157 int proto_id = GPOINTER_TO_INT(key); in updateInfo() local
158 int cur_count = (int) capture_dissector_get_count(cap_info_->counts, proto_id); in updateInfo()
159 if (!points_.contains(proto_id)) { in updateInfo()
162 points_[proto_id] = zeroes.toList(); in updateInfo()
163 last_count_[proto_id] = 0; in updateInfo()
166 points_[proto_id].append(cur_count - last_count_[proto_id]); in updateInfo()
167 last_count_[proto_id] = cur_count; in updateInfo()
191 int proto_id = proto_ids.at(row); in data() local
192 return QString(proto_get_protocol_short_name(find_protocol_by_id(proto_id))); in data()
198 int proto_id = proto_ids.at(row); in data() local
[all …]
/dports/net/wireshark-lite/wireshark-3.6.1/ui/qt/
H A Dcapture_info_dialog.cpp157 int proto_id = GPOINTER_TO_INT(key); in updateInfo() local
158 int cur_count = (int) capture_dissector_get_count(cap_info_->counts, proto_id); in updateInfo()
159 if (!points_.contains(proto_id)) { in updateInfo()
162 points_[proto_id] = zeroes.toList(); in updateInfo()
163 last_count_[proto_id] = 0; in updateInfo()
166 points_[proto_id].append(cur_count - last_count_[proto_id]); in updateInfo()
167 last_count_[proto_id] = cur_count; in updateInfo()
191 int proto_id = proto_ids.at(row); in data() local
192 return QString(proto_get_protocol_short_name(find_protocol_by_id(proto_id))); in data()
198 int proto_id = proto_ids.at(row); in data() local
[all …]
/dports/net/tshark-lite/wireshark-3.6.1/ui/qt/
H A Dcapture_info_dialog.cpp157 int proto_id = GPOINTER_TO_INT(key); in updateInfo() local
158 int cur_count = (int) capture_dissector_get_count(cap_info_->counts, proto_id); in updateInfo()
159 if (!points_.contains(proto_id)) { in updateInfo()
162 points_[proto_id] = zeroes.toList(); in updateInfo()
163 last_count_[proto_id] = 0; in updateInfo()
166 points_[proto_id].append(cur_count - last_count_[proto_id]); in updateInfo()
167 last_count_[proto_id] = cur_count; in updateInfo()
191 int proto_id = proto_ids.at(row); in data() local
192 return QString(proto_get_protocol_short_name(find_protocol_by_id(proto_id))); in data()
198 int proto_id = proto_ids.at(row); in data() local
[all …]
/dports/net/tshark/wireshark-3.6.1/ui/qt/
H A Dcapture_info_dialog.cpp157 int proto_id = GPOINTER_TO_INT(key); in updateInfo() local
158 int cur_count = (int) capture_dissector_get_count(cap_info_->counts, proto_id); in updateInfo()
159 if (!points_.contains(proto_id)) { in updateInfo()
162 points_[proto_id] = zeroes.toList(); in updateInfo()
163 last_count_[proto_id] = 0; in updateInfo()
166 points_[proto_id].append(cur_count - last_count_[proto_id]); in updateInfo()
167 last_count_[proto_id] = cur_count; in updateInfo()
191 int proto_id = proto_ids.at(row); in data() local
192 return QString(proto_get_protocol_short_name(find_protocol_by_id(proto_id))); in data()
198 int proto_id = proto_ids.at(row); in data() local
[all …]
/dports/net/wireshark/wireshark-3.6.1/epan/
H A Drtd_table.c21 int proto_id; /* protocol id (0-indexed) */ member
35 return rtd->proto_id; in get_rtd_proto_id()
60 register_rtd_table(const int proto_id, const char* tap_listener, guint num_tables, guint num_timest… in register_rtd_table() argument
68 table->proto_id = proto_id; in register_rtd_table()
72 table->tap_listen_str = proto_get_protocol_filter_name(proto_id); in register_rtd_table()
82 …wmem_tree_insert_string(registered_rtd_tables, proto_get_protocol_filter_name(proto_id), table, 0); in register_rtd_table()
113 GString *cmd_str = g_string_new(proto_get_protocol_filter_name(rtd->proto_id)); in rtd_table_get_tap_string()
H A Dexport_object.c20 int proto_id; /* protocol id (0-indexed) */ member
29 register_export_object(const int proto_id, tap_packet_cb export_packet_func, export_object_gui_rese… in register_export_object() argument
36 table->proto_id = proto_id; in register_export_object()
37 …ten_str = wmem_strdup_printf(wmem_epan_scope(), "%s_eo", proto_get_protocol_filter_name(proto_id)); in register_export_object()
44 … wmem_tree_insert_string(registered_eo_tables, proto_get_protocol_filter_name(proto_id), table, 0); in register_export_object()
53 return eo->proto_id; in get_eo_proto_id()
/dports/net/wireshark-lite/wireshark-3.6.1/epan/
H A Drtd_table.c21 int proto_id; /* protocol id (0-indexed) */ member
35 return rtd->proto_id; in get_rtd_proto_id()
60 register_rtd_table(const int proto_id, const char* tap_listener, guint num_tables, guint num_timest… in register_rtd_table() argument
68 table->proto_id = proto_id; in register_rtd_table()
72 table->tap_listen_str = proto_get_protocol_filter_name(proto_id); in register_rtd_table()
82 …wmem_tree_insert_string(registered_rtd_tables, proto_get_protocol_filter_name(proto_id), table, 0); in register_rtd_table()
113 GString *cmd_str = g_string_new(proto_get_protocol_filter_name(rtd->proto_id)); in rtd_table_get_tap_string()
H A Dexport_object.c20 int proto_id; /* protocol id (0-indexed) */ member
29 register_export_object(const int proto_id, tap_packet_cb export_packet_func, export_object_gui_rese… in register_export_object() argument
36 table->proto_id = proto_id; in register_export_object()
37 …ten_str = wmem_strdup_printf(wmem_epan_scope(), "%s_eo", proto_get_protocol_filter_name(proto_id)); in register_export_object()
44 … wmem_tree_insert_string(registered_eo_tables, proto_get_protocol_filter_name(proto_id), table, 0); in register_export_object()
53 return eo->proto_id; in get_eo_proto_id()
/dports/net/tshark-lite/wireshark-3.6.1/epan/
H A Drtd_table.c21 int proto_id; /* protocol id (0-indexed) */
35 return rtd->proto_id;
60 register_rtd_table(const int proto_id, const char* tap_listener, guint num_tables, guint num_timest…
68 table->proto_id = proto_id;
72 table->tap_listen_str = proto_get_protocol_filter_name(proto_id);
82 …wmem_tree_insert_string(registered_rtd_tables, proto_get_protocol_filter_name(proto_id), table, 0);
113 GString *cmd_str = g_string_new(proto_get_protocol_filter_name(rtd->proto_id));
H A Dexport_object.c20 int proto_id; /* protocol id (0-indexed) */ member
29 register_export_object(const int proto_id, tap_packet_cb export_packet_func, export_object_gui_rese… in register_export_object() argument
36 table->proto_id = proto_id; in register_export_object()
37 …ten_str = wmem_strdup_printf(wmem_epan_scope(), "%s_eo", proto_get_protocol_filter_name(proto_id)); in register_export_object()
44 … wmem_tree_insert_string(registered_eo_tables, proto_get_protocol_filter_name(proto_id), table, 0); in register_export_object()
53 return eo->proto_id; in get_eo_proto_id()
/dports/net/tshark/wireshark-3.6.1/epan/
H A Drtd_table.c21 int proto_id; /* protocol id (0-indexed) */ member
35 return rtd->proto_id; in get_rtd_proto_id()
60 register_rtd_table(const int proto_id, const char* tap_listener, guint num_tables, guint num_timest… in register_rtd_table() argument
68 table->proto_id = proto_id; in register_rtd_table()
72 table->tap_listen_str = proto_get_protocol_filter_name(proto_id); in register_rtd_table()
82 …wmem_tree_insert_string(registered_rtd_tables, proto_get_protocol_filter_name(proto_id), table, 0); in register_rtd_table()
113 GString *cmd_str = g_string_new(proto_get_protocol_filter_name(rtd->proto_id)); in rtd_table_get_tap_string()
H A Dexport_object.c20 int proto_id; /* protocol id (0-indexed) */ member
29 register_export_object(const int proto_id, tap_packet_cb export_packet_func, export_object_gui_rese… in register_export_object() argument
36 table->proto_id = proto_id; in register_export_object()
37 …ten_str = wmem_strdup_printf(wmem_epan_scope(), "%s_eo", proto_get_protocol_filter_name(proto_id)); in register_export_object()
44 … wmem_tree_insert_string(registered_eo_tables, proto_get_protocol_filter_name(proto_id), table, 0); in register_export_object()
53 return eo->proto_id; in get_eo_proto_id()
/dports/net/wireshark/wireshark-3.6.1/ui/qt/widgets/
H A Dfield_filter_edit.cpp151 …for (int proto_id = proto_get_first_protocol(&proto_cookie); proto_id != -1; proto_id = proto_get_… in buildCompletionList() local
152 protocol_t *protocol = find_protocol_by_id(proto_id); in buildCompletionList()
155 const QString pfname = proto_get_protocol_filter_name(proto_id); in buildCompletionList()
165 …fo = proto_get_first_protocol_field(proto_id, &field_cookie); hfinfo; hfinfo = proto_get_next_prot… in buildCompletionList()
/dports/net/wireshark-lite/wireshark-3.6.1/ui/qt/widgets/
H A Dfield_filter_edit.cpp151 …for (int proto_id = proto_get_first_protocol(&proto_cookie); proto_id != -1; proto_id = proto_get_… in buildCompletionList() local
152 protocol_t *protocol = find_protocol_by_id(proto_id); in buildCompletionList()
155 const QString pfname = proto_get_protocol_filter_name(proto_id); in buildCompletionList()
165 …fo = proto_get_first_protocol_field(proto_id, &field_cookie); hfinfo; hfinfo = proto_get_next_prot… in buildCompletionList()
/dports/net/tshark/wireshark-3.6.1/ui/qt/widgets/
H A Dfield_filter_edit.cpp151 …for (int proto_id = proto_get_first_protocol(&proto_cookie); proto_id != -1; proto_id = proto_get_… in buildCompletionList() local
152 protocol_t *protocol = find_protocol_by_id(proto_id); in buildCompletionList()
155 const QString pfname = proto_get_protocol_filter_name(proto_id); in buildCompletionList()
165 …fo = proto_get_first_protocol_field(proto_id, &field_cookie); hfinfo; hfinfo = proto_get_next_prot… in buildCompletionList()
/dports/net/tshark-lite/wireshark-3.6.1/ui/qt/widgets/
H A Dfield_filter_edit.cpp151 …for (int proto_id = proto_get_first_protocol(&proto_cookie); proto_id != -1; proto_id = proto_get_… in buildCompletionList() local
152 protocol_t *protocol = find_protocol_by_id(proto_id); in buildCompletionList()
155 const QString pfname = proto_get_protocol_filter_name(proto_id); in buildCompletionList()
165 …fo = proto_get_first_protocol_field(proto_id, &field_cookie); hfinfo; hfinfo = proto_get_next_prot… in buildCompletionList()

12345678910>>...16