38 If(std::optional<unsigned long>
id = {},
39 std::optional<MAVSubnet> source = {},
40 std::optional<MAVSubnet> dest = {});
45 If(
const If &other) =
default;
50 If(
If &&other) =
default;
51 If &
type(
unsigned long id);
54 If &
from(
const std::string &subnet);
56 If &
to(
const std::string &subnet);
72 std::ostream &os,
const If &if_);
75 std::optional<unsigned long> id_;
76 std::optional<MAVSubnet> source_;
77 std::optional<MAVSubnet> dest_;
83 std::ostream &
operator<<(std::ostream &os,
const If &if_);
If & from(MAVSubnet subnet)
If & type(unsigned long id)
If(std::optional< unsigned long > id={}, std::optional< MAVSubnet > source={}, std::optional< MAVSubnet > dest={})
std::string name(unsigned long id)
If & to(MAVSubnet subnet)
std::ostream & operator<<(std::ostream &os, const Action &action)
bool operator==(const Action &lhs, const Action &rhs)
bool operator!=(const Action &lhs, const Action &rhs)
bool check(const Packet &packet, const MAVAddress &address) const
friend bool operator==(const If &lhs, const If &rhs)
If & operator=(const If &other)=default
friend bool operator!=(const If &lhs, const If &rhs)
friend std::ostream & operator<<(std::ostream &os, const If &if_)