]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/acl/MethodData.h
Maintenance: automate header guards 2/3 (#1655)
[thirdparty/squid.git] / src / acl / MethodData.h
index a3c02dcafb6fe53884e017106a1a2fc9e62503b6..340b18c969e05620ba6fab34391c211fb64b0931 100644 (file)
@@ -1,37 +1,36 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
  * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
-#ifndef SQUID_ACLMETHODDATA_H
-#define SQUID_ACLMETHODDATA_H
+#ifndef SQUID_SRC_ACL_METHODDATA_H
+#define SQUID_SRC_ACL_METHODDATA_H
 
 #include "acl/Acl.h"
 #include "acl/Data.h"
-#include "base/CbDataList.h"
 #include "http/RequestMethod.h"
 
+#include <list>
+
 class ACLMethodData : public ACLData<HttpRequestMethod>
 {
     MEMPROXY_CLASS(ACLMethodData);
 
 public:
-    ACLMethodData();
-    ACLMethodData(ACLMethodData const &);
-    ACLMethodData &operator= (ACLMethodData const &);
-    virtual ~ACLMethodData();
-    bool match(HttpRequestMethod);
-    virtual SBufList dump() const;
-    void parse();
-    bool empty() const;
-    virtual ACLData<HttpRequestMethod> *clone() const;
-
-    CbDataList<HttpRequestMethod> *values;
+    ACLMethodData() {}
+    ~ACLMethodData() override;
+    bool match(HttpRequestMethod) override;
+    SBufList dump() const override;
+    void parse() override;
+    bool empty() const override {return values.empty();}
+
+    std::list<HttpRequestMethod> values;
 
     static int ThePurgeCount; ///< PURGE methods seen by parse()
 };
 
-#endif /* SQUID_ACLMETHODDATA_H */
+#endif /* SQUID_SRC_ACL_METHODDATA_H */
+