62 :
Rule(
std::move(condition)), priority_(priority)
81 os <<
" with priority " << priority_.value();
115 return std::make_unique<Accept>(priority_.value(),
condition_);
128 return typeid(*this) ==
typeid(other) &&
129 priority_ == static_cast<const Accept &>(other).priority_ &&
140 return typeid(*this) !=
typeid(other) ||
141 priority_ != static_cast<const Accept &>(other).priority_ ||
Accept(std::optional< If > condition={})
static Action make_accept(std::optional< int > priority={})
virtual Action action(const Packet &packet, const MAVAddress &address) const
virtual bool operator!=(const Rule &other) const
static Action make_continue()
virtual std::ostream & print_(std::ostream &os) const
virtual std::unique_ptr< Rule > clone() const
std::optional< If > condition_
virtual bool operator==(const Rule &other) const