25 return actions.back();
32 assert(pos < nodes.size());
34 assert(actions.size() == nodes.size());
45 assert(nodes.size() == actions.size());
47 actions.push_back(action);
62 assert(actions.size() == nodes.size());
63 const Nodes::size_type pos =
node - nodes.begin();
bool bannedAction(const Acl::Answer &action) const
whether the action is banned or not
void add(Acl::Node *node)
appends the node to the collection and takes control over it
Nodes nodes
children of this intermediate node
Nodes::const_iterator lastMatch_
bool bannedAction(ACLChecklist *, Nodes::const_iterator) const override
Acl::OrNode API.
Answer actionAt(const Nodes::size_type pos) const
computes action that corresponds to the position of the matched rule
void add(Acl::Node *rule, const Answer &action)
appends and takes control over the rule with a given action
Answer winningAction() const
Returns the corresponding action after a successful tree match.
Answer lastAction() const
what action to use if no nodes matched