]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/IntRange.h
71eb761a7937751e4c532dcd3aeef18d67fc9bcc
[thirdparty/squid.git] / src / acl / IntRange.h
1 /*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef SQUID_SRC_ACL_INTRANGE_H
10 #define SQUID_SRC_ACL_INTRANGE_H
11
12 #include "acl/Data.h"
13 #include "base/Range.h"
14
15 #include <list>
16
17 class ACLIntRange : public ACLData<int>
18 {
19
20 public:
21 ACLIntRange() {}
22
23 ~ACLIntRange() override;
24 bool match(int) override;
25 SBufList dump() const override;
26 void parse() override;
27 bool empty() const override;
28
29 private:
30 typedef Range<int> RangeType;
31 std::list<RangeType> ranges;
32 };
33
34 #endif /* SQUID_SRC_ACL_INTRANGE_H */
35