46 Chain(std::string name_,
47 std::vector<std::unique_ptr<Rule>> &&rules = {});
48 TEST_VIRTUAL
~Chain() =
default;
52 const std::string &
name()
const;
66 std::vector<std::unique_ptr<Rule>> rules_;
const std::string & name() const
TEST_VIRTUAL ~Chain()=default
friend std::ostream & operator<<(std::ostream &os, const Chain &chain)
Chain & operator=(const Chain &other)
friend bool operator==(const Chain &lhs, const Chain &rhs)
std::ostream & operator<<(std::ostream &os, const Action &action)
TEST_VIRTUAL Action action(const Packet &packet, const MAVAddress &address)
bool operator==(const Action &lhs, const Action &rhs)
bool operator!=(const Action &lhs, const Action &rhs)
friend bool operator!=(const Chain &lhs, const Chain &rhs)
void append(std::unique_ptr< Rule > rule)
Chain(const Chain &other)