7 #include <hilti/ast/builder/type.h> 8 #include <hilti/ast/operators/common.h> 9 #include <hilti/ast/types/enum.h> 10 #include <hilti/ast/types/integer.h> 11 #include <hilti/ast/types/port.h> 15 STANDARD_OPERATOR_2(port, Equal, type::Bool(), type::Port(), type::Port(),
"Compares two port values.")
16 STANDARD_OPERATOR_2(port, Unequal, type::Bool(), type::Port(), type::Port(), "Compares two port values.")
18 BEGIN_KEYWORD_CTOR(port, Ctor, "port", type::Port(), "Creates a port instance.")
19 std::vector<Operand> parameters()
const {
24 BEGIN_METHOD(port, Protocol)
25 const auto& signature()
const {
26 static auto _signature = Signature{.self = type::Port(),
27 .result = builder::typeByID(
"hilti::Protocol"),
31 Returns the protocol the port is using (such as UDP or TCP). Definition: optional.h:79
Definition: operator-registry.h:15