]>
Commit | Line | Data |
---|---|---|
5dee515e | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
5dee515e | 3 | * |
bbc27441 AJ |
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. | |
5dee515e | 7 | */ |
8 | ||
ff9d9458 FC |
9 | #ifndef SQUID_SRC_ACL_INTRANGE_H |
10 | #define SQUID_SRC_ACL_INTRANGE_H | |
63be0a78 | 11 | |
3ad63615 | 12 | #include "acl/Data.h" |
21dfc374 | 13 | #include "base/Range.h" |
5dee515e | 14 | |
cd44274b AJ |
15 | #include <list> |
16 | ||
b0dd28ba | 17 | class ACLIntRange : public ACLData<int> |
62e76326 | 18 | { |
19 | ||
20 | public: | |
cd44274b | 21 | ACLIntRange() {} |
62e76326 | 22 | |
337b9aa4 AR |
23 | ~ACLIntRange() override; |
24 | bool match(int) override; | |
25 | SBufList dump() const override; | |
26 | void parse() override; | |
27 | bool empty() const override; | |
62e76326 | 28 | |
b0dd28ba | 29 | private: |
e855eca1 | 30 | typedef Range<int> RangeType; |
cd44274b | 31 | std::list<RangeType> ranges; |
b0dd28ba | 32 | }; |
5dee515e | 33 | |
ff9d9458 | 34 | #endif /* SQUID_SRC_ACL_INTRANGE_H */ |
f53969cc | 35 |