/*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
CBDATA_NAMESPACED_CLASS_INIT(Acl, Tree);
-allow_t
+Acl::Answer
Acl::Tree::winningAction() const
{
return actionAt(lastMatch_ - nodes.begin());
}
-allow_t
+Acl::Answer
Acl::Tree::lastAction() const
{
if (actions.empty())
}
/// computes action that corresponds to the position of the matched rule
-allow_t
+Acl::Answer
Acl::Tree::actionAt(const Nodes::size_type pos) const
{
assert(pos < nodes.size());
}
void
-Acl::Tree::add(ACL *rule, const allow_t &action)
+Acl::Tree::add(ACL *rule, const Acl::Answer &action)
{
// either all rules have actions or none
assert(nodes.size() == actions.size());