]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: Simplify MEMPROXY_CLASS_* macros
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Oct 2014 06:58:59 +0000 (23:58 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Oct 2014 06:58:59 +0000 (23:58 -0700)
There are no logical changes in this patch.

* Make MEMPROXY_CLASS() macro inline its definitions.

* Remove MEMPROXY_CLASS_INLINE

* Remove last remaining mention of obsolete MEMPROXY_CLASS_INIT

* Adjust MEMPROXY_CLASS() to control its private/public definitions
  appropriate to their needs.

* Shuffle all MEMPROXY_CLASS() macro uses to the top of the relevant
  classes (in some cases renaming struct to class with public members
  if necessary) such that the new terminal private: does not affect
  existing class definitions.

82 files changed:
include/MemPool.h
squid3.dox
src/ExternalACL.h
src/ExternalACLEntry.h
src/HttpHdrCc.h
src/HttpHdrSc.h
src/HttpHdrScTarget.h
src/HttpHeader.h
src/HttpHeaderRange.h
src/HttpReply.h
src/HttpRequest.h
src/MemBlob.h
src/MemObject.h
src/Notes.h
src/StoreMetaMD5.h
src/StoreMetaObjSize.h
src/StoreMetaSTD.h
src/StoreMetaSTDLFS.h
src/StoreMetaURL.h
src/StoreMetaVary.h
src/StoreSwapLogData.h
src/URL.h
src/acl/Acl.h
src/acl/AllOf.h
src/acl/AnyOf.h
src/acl/Arp.h
src/acl/Asn.h
src/acl/AtStepData.h
src/acl/BoolOps.h
src/acl/CertificateData.h
src/acl/DestinationIp.h
src/acl/DomainData.h
src/acl/Eui64.h
src/acl/ExtUser.h
src/acl/HierCodeData.h
src/acl/HttpHeaderData.h
src/acl/HttpStatus.h
src/acl/Ip.h
src/acl/LocalIp.h
src/acl/MaxConnection.h
src/acl/MethodData.h
src/acl/NoteData.h
src/acl/ProtocolData.h
src/acl/Random.h
src/acl/RegexData.h
src/acl/SourceIp.h
src/acl/SslErrorData.h
src/acl/StringData.h
src/acl/TimeData.h
src/acl/UserData.h
src/auth/AclMaxUserIp.h
src/auth/AclProxyAuth.h
src/auth/Gadgets.h
src/auth/QueueNode.h
src/auth/UserRequest.h
src/auth/basic/User.h
src/auth/basic/UserRequest.h
src/auth/digest/User.h
src/auth/digest/UserRequest.h
src/auth/negotiate/User.h
src/auth/negotiate/UserRequest.h
src/auth/ntlm/User.h
src/auth/ntlm/UserRequest.h
src/cbdata.cc
src/comm/Connection.h
src/esi/Assign.h
src/esi/Esi.cc
src/esi/Include.h
src/esi/Literal.h
src/esi/Sequence.h
src/event.h
src/external_acl.cc
src/fs/rock/RockIoState.h
src/fs/ufs/UFSStoreState.h
src/helper/Request.h
src/htcp.cc
src/ident/AclIdent.h
src/mem_node.h
src/mime.cc
src/tests/CapturingStoreEntry.h
src/tests/stub_event.cc
src/wordlist.h

index b99902e0c919b526bfd74df56a482f603bdc037e..559c3a9863b158bfbb695a90e042761548eab86f 100644 (file)
@@ -284,43 +284,26 @@ private:
 /* help for classes */
 
 /**
- \ingroup MemPoolsAPI
- \hideinitializer
\ingroup MemPoolsAPI
\hideinitializer
  *
+ * Pool and account the memory used for the CLASS object.
  * This macro is intended for use within the declaration of a class.
  */
 #define MEMPROXY_CLASS(CLASS) \
-    inline void *operator new(size_t); \
-    inline void operator delete(void *); \
-    static inline MemAllocatorProxy &Pool()
-
-/**
- \ingroup MemPoolsAPI
- \hideinitializer
- *
- * This macro is intended for use within the .h or .cci of a class as appropriate.
- */
-#define MEMPROXY_CLASS_INLINE(CLASS) \
-MemAllocatorProxy& CLASS::Pool() \
-{ \
-    static MemAllocatorProxy thePool(#CLASS, sizeof (CLASS)); \
-    return thePool; \
-} \
-\
-void * \
-CLASS::operator new (size_t byteCount) \
-{ \
-    /* derived classes with different sizes must implement their own new */ \
-    assert (byteCount == sizeof (CLASS)); \
-\
-    return Pool().alloc(); \
-}  \
-\
-void \
-CLASS::operator delete (void *address) \
-{ \
-    Pool().freeOne(address); \
-}
+    private: \
+    static inline MemAllocatorProxy &Pool() { \
+        static MemAllocatorProxy thePool(#CLASS, sizeof(CLASS)); \
+        return thePool; \
+    } \
+    public: \
+    void *operator new(size_t byteCount) { \
+        /* derived classes with different sizes must implement their own new */ \
+        assert (byteCount == sizeof(CLASS)); \
+        return Pool().alloc(); \
+    } \
+    void operator delete(void *address) {Pool().freeOne(address);} \
+    private:
 
 /// \ingroup MemPoolsAPI
 class MemImplementingAllocator : public MemAllocator
index d3f568172e7590597cccf583a38bef341cd6c3c5..f90955c55df9150b44e353be577a39d096c448e1 100644 (file)
@@ -1313,9 +1313,7 @@ EXPAND_AS_DEFINED      = AsyncCallWrapper \
                          CBDATA_CLASS2 \
                          CBDATA_CLASS_INIT \
                          CBDATA_NAMESPACED_CLASS_INIT \
-                         MEMPROXY_CLASS_INLINE \
                          MEMPROXY_CLASS \
-                         MEMPROXY_CLASS_INIT \
                          STUB \
                          STUB_NOP \
                          STUB_RETVAL
index 5727fbedd1a4894fd3e335c03d26e5e2c9ed9edc..e34e54844dd7672242063b12fb4ef55ba903c39f 100644 (file)
@@ -38,10 +38,9 @@ private:
 
 class ACLExternal : public ACL
 {
-
-public:
     MEMPROXY_CLASS(ACLExternal);
 
+public:
     static void ExternalAclLookup(ACLChecklist * ch, ACLExternal *);
 
     ACLExternal(char const *);
@@ -70,8 +69,6 @@ protected:
     char const *class_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLExternal);
-
 void parse_externalAclHelper(external_acl **);
 void dump_externalAclHelper(StoreEntry * sentry, const char *name, const external_acl *);
 void free_externalAclHelper(external_acl **);
index 7b94cd8cebc0feace0f33fc75ac9cdc99f8fbefb..b7ef687aa43099e4747b41c6577dc94a0b411dbf 100644 (file)
@@ -48,11 +48,13 @@ public:
 
 /*******************************************************************
  * external_acl cache entry
- * Used opaqueue in the interface
+ * Used opaque in the interface
  */
 
 class ExternalACLEntry: public hash_link, public RefCountable
 {
+    MEMPROXY_CLASS(ExternalACLEntry);
+
 public:
     ExternalACLEntry();
     ~ExternalACLEntry();
@@ -73,10 +75,6 @@ public:
     String tag;
     String log;
     external_acl *def;
-
-    MEMPROXY_CLASS(ExternalACLEntry);
 };
 
-MEMPROXY_CLASS_INLINE(ExternalACLEntry);
-
 #endif
index c8bdea3f492f79d09e88384da5e5c67c013eecf1..3448ad56b5ef349f61b7706639489ef1f607f822 100644 (file)
@@ -21,6 +21,7 @@ class Packer;
  */
 class HttpHdrCc
 {
+    MEMPROXY_CLASS(HttpHdrCc);
 
 public:
     static const int32_t MAX_AGE_UNKNOWN=-1; //max-age is unset
@@ -145,8 +146,6 @@ public:
 
     void packInto(Packer * p) const;
 
-    MEMPROXY_CLASS(HttpHdrCc);
-
     /** bit-mask representing what header values are set among those
      * recognized by squid.
      *
@@ -173,8 +172,6 @@ public:
     String other;
 };
 
-MEMPROXY_CLASS_INLINE(HttpHdrCc);
-
 class StatHist;
 class StoreEntry;
 
index 50dc34cfbe8e4c6e18d5b2f62807a18dcdd1a29c..e542a94af79704c042c11529f0b24014b64178e7 100644 (file)
@@ -17,6 +17,7 @@ class StatHist;
 
 class HttpHdrSc
 {
+    MEMPROXY_CLASS(HttpHdrSc);
 
 public:
     HttpHdrSc(const HttpHdrSc &);
@@ -35,15 +36,12 @@ public:
         dlinkAddTail (t, &t->node, &targets);
     }
 
-    MEMPROXY_CLASS(HttpHdrSc);
     dlink_list targets;
 private:
     HttpHdrScTarget * findTarget (const char *target);
 
 };
 
-MEMPROXY_CLASS_INLINE(HttpHdrSc);
-
 /* Http Surrogate Control Header Field */
 void httpHdrScStatDumper(StoreEntry * sentry, int idx, double val, double size, int count);
 void httpHdrScInitModule (void);
index c405ad3b533ec5fcd52cd05bbcbea2c07451a4f9..49d3040a93f9e210c326327a487f16679c48b9c5 100644 (file)
@@ -25,6 +25,8 @@ class StoreEntry;
  */
 class HttpHdrScTarget
 {
+    MEMPROXY_CLASS(HttpHdrScTarget);
+
     // parsing is done in HttpHdrSc, need to grant them access.
     friend class HttpHdrSc;
 public:
@@ -83,7 +85,6 @@ public:
     void packInto (Packer *p) const;
     void updateStats(StatHist *) const;
 
-    MEMPROXY_CLASS(HttpHdrScTarget);
 private:
     bool isSet(http_hdr_sc_type id) const {
         assert (id >= SC_NO_STORE && id < SC_ENUM_END);
@@ -103,8 +104,6 @@ private:
     dlink_node node;
 };
 
-MEMPROXY_CLASS_INLINE(HttpHdrScTarget);
-
 void httpHdrScTargetStatDumper(StoreEntry * sentry, int idx, double val, double size, int count);
 
 #endif /* SQUID_HTTPHDRSURROGATECONTROLTARGET_H */
index b03d1d5523fc6abeb68763a6fbd952ee56c5fc8c..cbf16ef80d3d7da380cb7c6611bff13e77793489 100644 (file)
@@ -182,6 +182,7 @@ typedef ssize_t HttpHeaderPos;
 
 class HttpHeaderEntry
 {
+    MEMPROXY_CLASS(HttpHeaderEntry);
 
 public:
     HttpHeaderEntry(http_hdr_type id, const char *name, const char *value);
@@ -191,14 +192,12 @@ public:
     void packInto(Packer *p) const;
     int getInt() const;
     int64_t getInt64() const;
-    MEMPROXY_CLASS(HttpHeaderEntry);
+
     http_hdr_type id;
     String name;
     String value;
 };
 
-MEMPROXY_CLASS_INLINE(HttpHeaderEntry);
-
 class ETag;
 class TimeOrTag;
 
index b64bb378b4cee9ed5fbff943eb7a8810aeb002e8..20f101fc0c2fb051e76bcb5d222a36e986baeab7 100644 (file)
@@ -21,9 +21,9 @@ class HttpReply;
 
 class HttpHdrRangeSpec
 {
+    MEMPROXY_CLASS(HttpHdrRangeSpec);
 
 public:
-    MEMPROXY_CLASS(HttpHdrRangeSpec);
     typedef Range<int64_t, uint64_t> HttpRange;
     static int64_t const UnknownPosition;
 
@@ -39,8 +39,6 @@ public:
     int64_t length;
 };
 
-MEMPROXY_CLASS_INLINE(HttpHdrRangeSpec);
-
 /**
  * There may be more than one byte range specified in the request.
  * This object holds all range specs in order of their appearence
@@ -48,10 +46,9 @@ MEMPROXY_CLASS_INLINE(HttpHdrRangeSpec);
  */
 class HttpHdrRange
 {
-
-public:
     MEMPROXY_CLASS(HttpHdrRange);
 
+public:
     static size_t ParsedCount;
     /* Http Range Header Field */
     static HttpHdrRange *ParseCreate(const String * range_spec);
@@ -89,8 +86,6 @@ private:
     int64_t clen;
 };
 
-MEMPROXY_CLASS_INLINE(HttpHdrRange);
-
 /**
  * Data for iterating thru range specs
  */
index a6d5daacc976ecca7ff70fc1cdc8a71a0952f854..93aca6615a7c185919444d021c10fcb55490f341 100644 (file)
@@ -24,11 +24,11 @@ class HttpHdrSc;
 
 class HttpReply: public HttpMsg
 {
+    MEMPROXY_CLASS(HttpReply);
 
 public:
     typedef RefCount<HttpReply> Pointer;
 
-    MEMPROXY_CLASS(HttpReply);
     HttpReply();
     ~HttpReply();
 
@@ -144,6 +144,4 @@ protected:
     virtual bool parseFirstLine(const char *start, const char *end);
 };
 
-MEMPROXY_CLASS_INLINE(HttpReply);
-
 #endif /* SQUID_HTTPREPLY_H */
index 46227e67f0cbe5494303984b7afd24e9d520f919..5f50fbe70303a97a9ef1d5b08bb17db18af1b354 100644 (file)
@@ -43,11 +43,11 @@ class DnsLookupDetails;
 
 class HttpRequest: public HttpMsg
 {
+    MEMPROXY_CLASS(HttpRequest);
 
 public:
     typedef RefCount<HttpRequest> Pointer;
 
-    MEMPROXY_CLASS(HttpRequest);
     HttpRequest();
     HttpRequest(const HttpRequestMethod& aMethod, AnyP::ProtocolType aProtocol, const char *aUrlpath);
     ~HttpRequest();
@@ -263,6 +263,4 @@ protected:
     virtual bool inheritProperties(const HttpMsg *aMsg);
 };
 
-MEMPROXY_CLASS_INLINE(HttpRequest);
-
 #endif /* SQUID_HTTPREQUEST_H */
index f961cbe145ff3601d45205eddc6da8f727b712d7..d57d333ba3fe9226b4a22fce4fe04ce92825856c 100644 (file)
@@ -44,12 +44,12 @@ public:
  */
 class MemBlob: public RefCountable
 {
+    MEMPROXY_CLASS(MemBlob);
+
 public:
     typedef RefCount<MemBlob> Pointer;
     typedef uint32_t size_type;
 
-    MEMPROXY_CLASS(MemBlob);
-
     /// obtain a const view of class-wide statistics
     static const MemBlobStats& GetStats();
 
@@ -120,6 +120,4 @@ private:
     MemBlob& operator =(const MemBlob &);
 };
 
-MEMPROXY_CLASS_INLINE(MemBlob);
-
 #endif /* SQUID_MEMBLOB_H_ */
index c1240180a6399a47d23ad94e67dc3966313eabc7..0f38ec9faf7411d667d3cbbc0043f236a6719c39 100644 (file)
@@ -29,10 +29,10 @@ class HttpReply;
 
 class MemObject
 {
+    MEMPROXY_CLASS(MemObject);
 
 public:
     static size_t inUseCount();
-    MEMPROXY_CLASS(MemObject);
 
     void dump() const;
     MemObject();
@@ -181,8 +181,6 @@ private:
     DeferredReadManager deferredReads;
 };
 
-MEMPROXY_CLASS_INLINE(MemObject);
-
 /** global current memory removal policy */
 extern RemovalPolicy *mem_policy;
 
index 0e8a92e621945c35463f78c2ebceeec47f8fac35..9d2303c50a6d3fb887ec41e764971a1ed22d7ae3 100644 (file)
@@ -128,11 +128,11 @@ public:
      */
     class Entry
     {
+        MEMPROXY_CLASS(Entry);
     public:
         Entry(const char *aKey, const char *aValue): name(aKey), value(aValue) {}
         String name;
         String value;
-        MEMPROXY_CLASS(Entry);
     };
 
     NotePairs() {}
@@ -208,8 +208,6 @@ private:
     NotePairs(NotePairs const &); // Not implemented
 };
 
-MEMPROXY_CLASS_INLINE(NotePairs::Entry);
-
 class AccessLogEntry;
 /**
  * Keep in sync HttpRequest and the corresponding AccessLogEntry objects
index 28e4bae845a268211dcc9d72f1440d3e74099d54..6b9431c4202a0f8eb54ca835c393f65eeea0bb97 100644 (file)
@@ -9,19 +9,16 @@
 #ifndef SQUID_STOREMETAMD5_H
 #define SQUID_STOREMETAMD5_H
 
-/* for inheritance */
 #include "StoreMeta.h"
-/* for MEMPROXY_CLASS() macros */
 #include "MemPool.h"
 /* for STORE_META_KEY_MD5 */
 #include "enums.h"
 
 class StoreMetaMD5 : public StoreMeta
 {
-
-public:
     MEMPROXY_CLASS(StoreMetaMD5);
 
+public:
     char getType() const {return STORE_META_KEY_MD5;}
 
     bool validLength(int) const;
@@ -31,6 +28,4 @@ private:
     static int md5_mismatches;
 };
 
-MEMPROXY_CLASS_INLINE(StoreMetaMD5);
-
 #endif /* SQUID_STOREMETAMD5_H */
index 5557ca000d5186fb4958a0648aa7ad25f7fe30e9..a7b6c298738c718283a786faf353aa3c8512d5bc 100644 (file)
 
 class StoreMetaObjSize : public StoreMeta
 {
-
-public:
     MEMPROXY_CLASS(StoreMetaObjSize);
 
+public:
     char getType() const {return STORE_META_OBJSIZE;}
 };
 
-MEMPROXY_CLASS_INLINE(StoreMetaObjSize);
-
 #endif /* SQUID_STOREMETAOBJSIZE_H */
index 86148e7b1f0965c531aef4da25540d0bd2a35f75..63c6e7a91963110dd5f1d5885b8635dc33f6a2d5 100644 (file)
 #define SQUID_STOREMETASTD_H
 
 #include "StoreMeta.h"
-/* for MEMPROXY_CLASS() macros */
 #include "MemPool.h"
 
 class StoreMetaSTD : public StoreMeta
 {
-
-public:
     MEMPROXY_CLASS(StoreMetaSTD);
 
+public:
     char getType() const {return STORE_META_STD;}
 
     bool validLength(int) const;
     //    bool checkConsistency(StoreEntry *) const;
 };
 
-MEMPROXY_CLASS_INLINE(StoreMetaSTD);
-
 #endif /* SQUID_STOREMETASTD_H */
index e819dceee04105450a15ab142f681b1b24cadb1c..b6319f8ab08c0a5414ced10c1b35accb2e95d046 100644 (file)
@@ -9,22 +9,18 @@
 #ifndef SQUID_STOREMETASTDLFS_H
 #define SQUID_STOREMETASTDLFS_H
 
-/* for inheritance */
 #include "StoreMeta.h"
-/* for MEMPROXY() macros */
 #include "MemPool.h"
 
 class StoreMetaSTDLFS : public StoreMeta
 {
-public:
     MEMPROXY_CLASS(StoreMetaSTDLFS);
 
+public:
     char getType() const {return STORE_META_STD_LFS;}
 
     bool validLength(int) const;
     //    bool checkConsistency(StoreEntry *) const;
 };
 
-MEMPROXY_CLASS_INLINE(StoreMetaSTDLFS);
-
 #endif /* SQUID_STOREMETASTDLFS_H */
index a859a698c61697f9b9e79a6aa7057189761d8ec7..133d35ba060aeea73881907013ce1e8ad989f8d2 100644 (file)
@@ -9,21 +9,17 @@
 #ifndef SQUID_STOREMETAURL_H
 #define SQUID_STOREMETAURL_H
 
-/* for inheritance */
 #include "StoreMeta.h"
-/* for MEMPROXY_CLASS() macros */
 #include "MemPool.h"
 
 class StoreMetaURL : public StoreMeta
 {
-public:
     MEMPROXY_CLASS(StoreMetaURL);
 
+public:
     char getType() const {return STORE_META_URL;}
 
     bool checkConsistency(StoreEntry *) const;
 };
 
-MEMPROXY_CLASS_INLINE(StoreMetaURL);
-
 #endif /* SQUID_STOREMETAURL_H */
index 8e7b15954b7597cb2d4f4c2620b01da0f5e48120..47c068cd845b97f326fe1bccff970d119218d9f7 100644 (file)
@@ -9,21 +9,17 @@
 #ifndef SQUID_STOREMETAVARY_H
 #define SQUID_STOREMETAVARY_H
 
-/* for inheritance */
 #include "StoreMeta.h"
-/* for MEMPROXY_CLASS() macros */
 #include "MemPool.h"
 
 class StoreMetaVary : public StoreMeta
 {
-public:
     MEMPROXY_CLASS(StoreMetaVary);
 
+public:
     char getType() const {return STORE_META_VARY_HEADERS;}
 
     bool checkConsistency(StoreEntry *) const;
 };
 
-MEMPROXY_CLASS_INLINE(StoreMetaVary);
-
 #endif /* SQUID_STOREMETAVARY_H */
index dea11775aeca933d6e8abbb2d06eaf6b34e001f2..3dcbfb5cf2867c04997cf79f7ff721569d3b39cd 100644 (file)
@@ -84,10 +84,9 @@ operator <<(std::ostream &os, const SwapChecksum24 &sum)
  */
 class StoreSwapLogData
 {
-
-public:
     MEMPROXY_CLASS(StoreSwapLogData);
 
+public:
     /// type to use for storing time-related members; must be signed
     typedef int64_t SwappedTime;
 
@@ -177,8 +176,6 @@ public:
     unsigned char key[SQUID_MD5_DIGEST_LENGTH];
 };
 
-MEMPROXY_CLASS_INLINE(StoreSwapLogData);
-
 /// \ingroup FileFormatSwapStateAPI
 /// Swap log starts with this binary structure.
 class StoreSwapLogHeader
index 59752df83d75a3844e99cbb9f86bb5932714bf14..d10672b696387aafaa34bce5faff00bfee833292 100644 (file)
--- a/src/URL.h
+++ b/src/URL.h
 #include "MemPool.h"
 
 /**
- \ingroup POD
- *
  * The URL class represents a Uniform Resource Location
  */
 class URL
 {
-public:
     MEMPROXY_CLASS(URL);
+
+public:
     URL() : scheme_() {}
     URL(AnyP::UriScheme const &aScheme) : scheme_(aScheme) {}
 
@@ -57,8 +56,6 @@ private:
     AnyP::UriScheme scheme_;
 };
 
-MEMPROXY_CLASS_INLINE(URL);
-
 class HttpRequest;
 class HttpRequestMethod;
 
index 7c5be41b7720d16c30dc76cdb3ce0f968627215b..1c4582fcfbb81a1728042620617bf6a1ab0f658c 100644 (file)
@@ -209,16 +209,14 @@ operator <<(std::ostream &o, const allow_t a)
 /// \ingroup ACLAPI
 class acl_proxy_auth_match_cache
 {
+    MEMPROXY_CLASS(acl_proxy_auth_match_cache);
 
 public:
-    MEMPROXY_CLASS(acl_proxy_auth_match_cache);
     dlink_node link;
     int matchrv;
     void *acl_data;
 };
 
-MEMPROXY_CLASS_INLINE(acl_proxy_auth_match_cache);
-
 /// \ingroup ACLAPI
 /// XXX: find a way to remove or at least use a refcounted ACL pointer
 extern const char *AclMatchedName;     /* NULL */
index 66fde82535c9b278c416608dd5637f89c2a55447..aa3118f95b8274279b6c420ff95f6b1e2e18096a 100644 (file)
@@ -19,9 +19,9 @@ namespace Acl
 /// acl all-of lines are always ORed together.
 class AllOf: public Acl::InnerNode
 {
-public:
     MEMPROXY_CLASS(AllOf);
 
+public:
     /* ACL API */
     virtual char const *typeString() const;
     virtual ACL *clone() const;
@@ -35,7 +35,6 @@ private:
     static Prototype RegistryProtoype;
     static AllOf RegistryEntry_;
 };
-MEMPROXY_CLASS_INLINE(Acl::AllOf);
 
 } // namespace Acl
 
index c9ba682a0ef2e3a9fafa1d409f374e1bb44b011f..c7a7184fb169c17c38566f05c1854d2d1f6aa4d3 100644 (file)
@@ -17,9 +17,9 @@ namespace Acl
 /// Configurable any-of ACL. Each ACL line is a disjuction of ACLs.
 class AnyOf: public Acl::OrNode
 {
-public:
     MEMPROXY_CLASS(AnyOf);
 
+public:
     /* ACL API */
     virtual char const *typeString() const;
     virtual ACL *clone() const;
@@ -29,7 +29,6 @@ private:
     static Prototype RegistryProtoype;
     static AnyOf RegistryEntry_;
 };
-MEMPROXY_CLASS_INLINE(Acl::AnyOf);
 
 } // namespace Acl
 
index 106ac922dffcd5d6bff897e85b1dec1a446359d5..c6f61847bd41a8006d1f091e82fa2d7cfce4af4e 100644 (file)
@@ -21,10 +21,9 @@ class Eui48;
 /// \ingroup ACLAPI
 class ACLARP : public ACL
 {
-
-public:
     MEMPROXY_CLASS(ACLARP);
 
+public:
     ACLARP(char const *);
     ACLARP(ACLARP const &);
     ~ACLARP();
@@ -44,6 +43,4 @@ protected:
     char const *class_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLARP);
-
 #endif /* SQUID_ACLARP_H */
index fe92200c5264915d63d5085e91ed30ea8a05bf3e..2b81dcdf26973d5e8b30a89aad32448ac7e902e6 100644 (file)
@@ -26,10 +26,9 @@ void asnFreeMemory(void);
 /// \ingroup ACLAPI
 class ACLASN : public ACLData<Ip::Address>
 {
-
-public:
     MEMPROXY_CLASS(ACLASN);
 
+public:
     virtual ~ACLASN();
 
     virtual bool match(Ip::Address);
@@ -47,6 +46,4 @@ private:
     CbDataList<int> *data;
 };
 
-MEMPROXY_CLASS_INLINE(ACLASN);
-
 #endif /* SQUID_ACLASN_H */
index be31d5628df35a154610d8611d6f040e6c155c44..895a8b8c74be3ec599c650073f4b90655ac27208 100644 (file)
 
 class ACLAtStepData : public ACLData<Ssl::BumpStep>
 {
-
-public:
     MEMPROXY_CLASS(ACLAtStepData);
 
+public:
     ACLAtStepData();
     ACLAtStepData(ACLAtStepData const &);
     ACLAtStepData &operator= (ACLAtStepData const &);
@@ -37,8 +36,6 @@ public:
     std::list<Ssl::BumpStep> values;
 };
 
-MEMPROXY_CLASS_INLINE(ACLAtStepData);
-
 #endif /* USE_OPENSSL */
 
 #endif /* SQUID_ACLSSL_ERRORDATA_H */
index a5952eb2895284b2b9dab37f94546f23e1fc7b25..a6193047d1246948ecc313a12c5034ddbac9a9a6 100644 (file)
@@ -21,9 +21,9 @@ namespace Acl
 /// Implements the "not" or "!" operator.
 class NotNode: public InnerNode
 {
-public:
     MEMPROXY_CLASS(NotNode);
 
+public:
     explicit NotNode(ACL *acl);
 
 private:
@@ -36,16 +36,15 @@ private:
     /* Acl::InnerNode API */
     virtual int doMatch(ACLChecklist *checklist, Nodes::const_iterator start) const;
 };
-MEMPROXY_CLASS_INLINE(Acl::NotNode);
 
 /// An inner ACL expression tree node representing a boolean conjuction (AND)
 /// operator applied to a list of child tree nodes.
 /// For example, conditions expressed on a single http_access line are ANDed.
 class AndNode: public InnerNode
 {
-public:
     MEMPROXY_CLASS(AndNode);
 
+public:
     /* ACL API */
     virtual char const *typeString() const;
     virtual ACL *clone() const;
@@ -54,16 +53,15 @@ public:
 private:
     virtual int doMatch(ACLChecklist *checklist, Nodes::const_iterator start) const;
 };
-MEMPROXY_CLASS_INLINE(Acl::AndNode);
 
 /// An inner ACL expression tree node representing a boolean disjuction (OR)
 /// operator applied to a list of child tree nodes.
 /// For example, conditions expressed by multiple http_access lines are ORed.
 class OrNode: public InnerNode
 {
-public:
     MEMPROXY_CLASS(OrNode);
 
+public:
     /* ACL API */
     virtual char const *typeString() const;
     virtual ACL *clone() const;
@@ -75,7 +73,6 @@ protected:
 private:
     virtual int doMatch(ACLChecklist *checklist, Nodes::const_iterator start) const;
 };
-MEMPROXY_CLASS_INLINE(Acl::OrNode);
 
 } // namespace Acl
 
index 4923fe430a9323065955729933f2b04cdf988d90..00562afbb24908e235c431a62e26ff6a5c33e221 100644 (file)
 /// \ingroup ACLAPI
 class ACLCertificateData : public ACLData<X509 *>
 {
-
-public:
     MEMPROXY_CLASS(ACLCertificateData);
 
+public:
     ACLCertificateData(Ssl::GETX509ATTRIBUTE *, const char *attributes, bool optionalAttr = false);
     ACLCertificateData(ACLCertificateData const &);
     ACLCertificateData &operator= (ACLCertificateData const &);
@@ -51,6 +50,4 @@ private:
     Ssl::GETX509ATTRIBUTE *sslAttributeCall;
 };
 
-MEMPROXY_CLASS_INLINE(ACLCertificateData);
-
 #endif /* SQUID_ACLCERTIFICATEDATA_H */
index 1b8d890bd1099bb471cc180f737cb4267d8af966..c1e630e9f4f49e54183e1b6c52407b3b4e2082df 100644 (file)
@@ -8,6 +8,7 @@
 
 #ifndef SQUID_ACLDESTINATIONIP_H
 #define SQUID_ACLDESTINATIONIP_H
+
 #include "acl/Checklist.h"
 #include "acl/Ip.h"
 #include "ipcache.h"
@@ -26,10 +27,9 @@ private:
 
 class ACLDestinationIP : public ACLIP
 {
-
-public:
     MEMPROXY_CLASS(ACLDestinationIP);
 
+public:
     ACLDestinationIP(): ACLIP(ACLDestinationIP::SupportedFlags) {}
     virtual char const *typeString() const;
     virtual int match(ACLChecklist *checklist);
@@ -43,6 +43,4 @@ private:
     static ACLDestinationIP RegistryEntry_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLDestinationIP);
-
 #endif /* SQUID_ACLDESTINATIONIP_H */
index 4821a758063dace6f03dda1048a9d932b15a1ea2..3ab9866f9a2eca260154fc7192dff2646a7bdead 100644 (file)
 #include "acl/Data.h"
 #include "splay.h"
 
-/// \ingroup ACLAPI
 class ACLDomainData : public ACLData<char const *>
 {
-
-public:
     MEMPROXY_CLASS(ACLDomainData);
 
+public:
     virtual ~ACLDomainData();
     bool match(char const *);
     virtual SBufList dump() const;
@@ -30,6 +28,4 @@ public:
     SplayNode<char *> *domains;
 };
 
-MEMPROXY_CLASS_INLINE(ACLDomainData);
-
 #endif /* SQUID_ACLDOMAINDATA_H */
index 25c2a47bb0f71d3e15ca4b4fa34f1988ab2f9d39..d910e6574d5f2e97dc957949dbc809ef0d11b0c8 100644 (file)
@@ -18,13 +18,11 @@ namespace Eui
 class Eui64;
 };
 
-/// \ingroup ACLAPI
 class ACLEui64 : public ACL
 {
+    MEMPROXY_CLASS(ACLEui64);
 
 public:
-    MEMPROXY_CLASS(ACLEUI64);
-
     ACLEui64(char const *);
     ACLEui64(ACLEui64 const &);
     ~ACLEui64();
@@ -44,6 +42,4 @@ protected:
     char const *class_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLEui64);
-
 #endif /* SQUID_ACLEUI64_H */
index 51f0806f33893d733b4aa71014dabbbcbe8dc704..bb393b92376e0e2b5f02c0a9c5160f7729fe96d8 100644 (file)
 #include "acl/Checklist.h"
 #include "acl/Data.h"
 
-/// \ingroup ACLAPI
 class ACLExtUser : public ACL
 {
-
-public:
     MEMPROXY_CLASS(ACLExtUser);
 
+public:
     ACLExtUser(ACLData<char const *> *newData, char const *);
     ACLExtUser (ACLExtUser const &old);
     ACLExtUser & operator= (ACLExtUser const &rhs);
@@ -44,7 +42,5 @@ private:
     char const *type_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLExtUser);
-
 #endif /* USE_AUTH */
 #endif /* SQUID_EXTUSER_H */
index b91e9fc8a39ef6b05009ee69c5b65b21e2559266..5f72bc90954abb2493956bb0de3606ecec380e02 100644 (file)
 /// \ingroup ACLAPI
 class ACLHierCodeData : public ACLData<hier_code>
 {
-
-public:
     MEMPROXY_CLASS(ACLHierCodeData);
 
+public:
     ACLHierCodeData();
     ACLHierCodeData(ACLHierCodeData const &);
     ACLHierCodeData &operator= (ACLHierCodeData const &);
@@ -35,6 +34,4 @@ public:
     bool values[HIER_MAX];
 };
 
-MEMPROXY_CLASS_INLINE(ACLHierCodeData);
-
 #endif /* SQUID_ACLHIERCODEDATA_H */
index fbeff1a9a4781306b0b160c127fc30f150911993..e61d193da93908e25d7178c96e718a09e5d6b22c 100644 (file)
@@ -9,25 +9,16 @@
 #ifndef SQUID_ACLHTTPHEADERDATA_H
 #define SQUID_ACLHTTPHEADERDATA_H
 
-class HttpHeader;
-class wordlist;
-
-/* becaue we inherit from it */
 #include "acl/Data.h"
-/* for String field */
 #include "SquidString.h"
-/* for http_hdr_type field */
 #include "HttpHeader.h"
-/* because weuse its MEMPROXY_CLASS() macros */
 #include "MemPool.h"
 
-/// \ingroup ACLAPI
 class ACLHTTPHeaderData : public ACLData<HttpHeader*>
 {
-
-public:
     MEMPROXY_CLASS(ACLHTTPHeaderData);
 
+public:
     ACLHTTPHeaderData();
     virtual ~ACLHTTPHeaderData();
     virtual bool match(HttpHeader* hdr);
@@ -42,6 +33,4 @@ private:
     ACLData<char const *> * regex_rule;
 };
 
-MEMPROXY_CLASS_INLINE(ACLHTTPHeaderData);
-
 #endif /* SQUID_ACLHTTPHEADERDATA_H */
index 2b404abc791de81e1a2b0c33b1ec41474e117dc9..8d7b76c4be3e441a2a21ddf77e89799627601c01 100644 (file)
@@ -26,10 +26,9 @@ struct acl_httpstatus_data {
 /// \ingroup ACLAPI
 class ACLHTTPStatus : public ACL
 {
-
-public:
     MEMPROXY_CLASS(ACLHTTPStatus);
 
+public:
     ACLHTTPStatus(char const *);
     ACLHTTPStatus(ACLHTTPStatus const &);
     ~ACLHTTPStatus();
@@ -50,6 +49,4 @@ protected:
     char const *class_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLHTTPStatus);
-
 #endif /* SQUID_ACLHTTPSTATUS_H */
index d1db9e2ebe6816c6a6d539ea68c2a2e050a3ab6d..36137ecf983934a849a9e6a42a32aeb5f53bc33b 100644 (file)
 #include "ip/Address.h"
 #include "splay.h"
 
-/// \ingroup ACLAPI
 class acl_ip_data
 {
+    MEMPROXY_CLASS(acl_ip_data);
 
 public:
-    MEMPROXY_CLASS(acl_ip_data);
     static acl_ip_data *FactoryParse(char const *);
     static int NetworkCompare(acl_ip_data * const & a, acl_ip_data * const &b);
 
@@ -42,12 +41,8 @@ private:
     static bool DecodeMask(const char *asc, Ip::Address &mask, int string_format_type);
 };
 
-MEMPROXY_CLASS_INLINE(acl_ip_data);
-
-/// \ingroup ACLAPI
 class ACLIP : public ACL
 {
-
 public:
     void *operator new(size_t);
     void operator delete(void *);
index 32d75f275d056aee8c0abba748eee1e27fc173e4..cf1587ac5f508c37413234340018dd05826eaffa 100644 (file)
@@ -14,9 +14,9 @@
 /// \ingroup ACLAPI
 class ACLLocalIP : public ACLIP
 {
+    MEMPROXY_CLASS(ACLLocalIP);
 
 public:
-    MEMPROXY_CLASS(ACLLocalIP);
     static ACLLocalIP const &RegistryEntry();
 
     virtual char const *typeString() const;
@@ -28,6 +28,4 @@ private:
     static ACLLocalIP RegistryEntry_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLLocalIP);
-
 #endif /* SQUID_ACLLOCALIP_H */
index 11aa7108e941378ffec04dd6b5f4ec42ffae396e..3e06b0b213e158dd98906df46356077af8005169 100644 (file)
 /// \ingroup ACLAPI
 class ACLMaxConnection : public ACL
 {
-
-public:
     MEMPROXY_CLASS(ACLMaxConnection);
 
+public:
     ACLMaxConnection(char const *);
     ACLMaxConnection(ACLMaxConnection const &);
     ~ACLMaxConnection();
@@ -40,6 +39,4 @@ protected:
     int limit;
 };
 
-MEMPROXY_CLASS_INLINE(ACLMaxConnection);
-
 #endif /* SQUID_ACLMAXCONNECTION_H */
index 32a59dc152035c8bb5489cc6aebbc8451e2d5113..92a5fd79c4a231536e019d0d2a9444bd8416b35c 100644 (file)
 #include "CbDataList.h"
 #include "HttpRequestMethod.h"
 
-/// \ingroup ACLAPI
 class ACLMethodData : public ACLData<HttpRequestMethod>
 {
-
-public:
     MEMPROXY_CLASS(ACLMethodData);
 
+public:
     ACLMethodData();
     ACLMethodData(ACLMethodData const &);
     ACLMethodData &operator= (ACLMethodData const &);
@@ -36,6 +34,4 @@ public:
     static int ThePurgeCount; ///< PURGE methods seen by parse()
 };
 
-MEMPROXY_CLASS_INLINE(ACLMethodData);
-
 #endif /* SQUID_ACLMETHODDATA_H */
index 91ba593997d5509356c3796737ca42ce6da6a8a8..9bb8591b6e6ad662e576e7694e8d524b9438172c 100644 (file)
@@ -19,9 +19,9 @@ class NotePairs;
 /// \ingroup ACLAPI
 class ACLNoteData : public ACLData<HttpRequest *>
 {
-public:
     MEMPROXY_CLASS(ACLNoteData);
 
+public:
     ACLNoteData();
     virtual ~ACLNoteData();
     virtual bool match(HttpRequest* request);
@@ -36,6 +36,4 @@ private:
     ACLData<char const *> *values; ///< if set, at least one value must match
 };
 
-MEMPROXY_CLASS_INLINE(ACLNoteData);
-
 #endif /* SQUID_ACLNOTEDATA_H */
index 3bd44a1de76794a360ada6bd7bb5438cd3b97dcc..2f5e357e6b00c69c4f56649bd93e7b8383f2b9a7 100644 (file)
 
 class ACLProtocolData : public ACLData<AnyP::ProtocolType>
 {
-
-public:
     MEMPROXY_CLASS(ACLProtocolData);
 
+public:
     ACLProtocolData();
     ACLProtocolData(ACLProtocolData const &);
     ACLProtocolData &operator= (ACLProtocolData const &);
@@ -33,6 +32,4 @@ public:
     CbDataList<AnyP::ProtocolType> *values;
 };
 
-MEMPROXY_CLASS_INLINE(ACLProtocolData);
-
 #endif /* SQUID_ACLPROTOCOLDATA_H */
index 29bc341d94d691a6f1924ac8f696f60158df3b61..da0bb54fdf824e33ac686895a8581428cd21ea05 100644 (file)
 #include "acl/Acl.h"
 #include "acl/Checklist.h"
 
-/// \ingroup ACLAPI
 class ACLRandom : public ACL
 {
-
-public:
     MEMPROXY_CLASS(ACLRandom);
 
+public:
     ACLRandom(char const *);
     ACLRandom(ACLRandom const &);
     ~ACLRandom();
@@ -40,6 +38,4 @@ protected:
     char const *class_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLRandom);
-
 #endif /* SQUID_ACL_RANDOM_H */
index 041cdb006dc5f9ab7bddbe79fcf82a6da7de9f73..d8a2a509b495ce132954bb5ba29e40db6b6d4fe7 100644 (file)
@@ -16,10 +16,9 @@ class RegexList;
 
 class ACLRegexData : public ACLData<char const *>
 {
-
-public:
     MEMPROXY_CLASS(ACLRegexData);
 
+public:
     virtual ~ACLRegexData();
     virtual bool match(char const *user);
     virtual SBufList dump() const;
@@ -31,6 +30,4 @@ private:
     RegexList *data;
 };
 
-MEMPROXY_CLASS_INLINE(ACLRegexData);
-
 #endif /* SQUID_ACLREGEXDATA_H */
index 5c355dd062b44d5fea7adafce4462e92b4c6c601..f4fb77b8df5b0e1ec2686d3f159797e8d738d187 100644 (file)
@@ -8,14 +8,14 @@
 
 #ifndef SQUID_ACLSOURCEIP_H
 #define SQUID_ACLSOURCEIP_H
+
 #include "acl/Ip.h"
 
 class ACLSourceIP : public ACLIP
 {
-
-public:
     MEMPROXY_CLASS(ACLSourceIP);
 
+public:
     virtual char const *typeString() const;
     virtual int match(ACLChecklist *checklist);
     virtual ACL *clone()const;
@@ -25,6 +25,4 @@ private:
     static ACLSourceIP RegistryEntry_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLSourceIP);
-
 #endif /* SQUID_ACLSOURCEIP_H */
index 81e3ea0b13115afa770fac6eb1426d810e0bbf76..eaf249681f99a633a7b11c882521b7a89cfe24a0 100644 (file)
@@ -8,6 +8,7 @@
 
 #ifndef SQUID_ACLSSL_ERRORDATA_H
 #define SQUID_ACLSSL_ERRORDATA_H
+
 #include "acl/Acl.h"
 #include "acl/Data.h"
 #include "CbDataList.h"
 
 class ACLSslErrorData : public ACLData<const Ssl::CertErrors *>
 {
-
-public:
     MEMPROXY_CLASS(ACLSslErrorData);
 
+public:
     ACLSslErrorData();
     ACLSslErrorData(ACLSslErrorData const &);
     ACLSslErrorData &operator= (ACLSslErrorData const &);
@@ -34,6 +34,4 @@ public:
     Ssl::Errors *values;
 };
 
-MEMPROXY_CLASS_INLINE(ACLSslErrorData);
-
 #endif /* SQUID_ACLSSL_ERRORDATA_H */
index 7857bcd1b53cdc22264441008c2e136ded171815..da0ad3b5bba4accfd045e92a5aa7cb05d96826ea 100644 (file)
@@ -8,16 +8,16 @@
 
 #ifndef SQUID_ACLSTRINGDATA_H
 #define SQUID_ACLSTRINGDATA_H
+
 #include "acl/Acl.h"
 #include "acl/Data.h"
 #include "splay.h"
 
 class ACLStringData : public ACLData<char const *>
 {
-
-public:
     MEMPROXY_CLASS(ACLStringData);
 
+public:
     ACLStringData();
     ACLStringData(ACLStringData const &);
     ACLStringData &operator= (ACLStringData const &);
@@ -33,8 +33,4 @@ public:
     SplayNode<char *> *values;
 };
 
-/* TODO move into .cci files */
-
-MEMPROXY_CLASS_INLINE(ACLStringData);
-
 #endif /* SQUID_ACLSTRINGDATA_H */
index 30e5554422f50b7a76042c4699aed3b6c8af0e3a..1a6f8598a56c2bff4ea87712c37c4ef0fca29748 100644 (file)
@@ -8,16 +8,16 @@
 
 #ifndef SQUID_ACLTIMEDATA_H
 #define SQUID_ACLTIMEDATA_H
+
 #include "acl/Acl.h"
 #include "acl/Data.h"
 #include "splay.h"
 
 class ACLTimeData : public ACLData<time_t>
 {
-
-public:
     MEMPROXY_CLASS(ACLTimeData);
 
+public:
     ACLTimeData();
     ACLTimeData(ACLTimeData const &);
     ACLTimeData&operator=(ACLTimeData const &);
@@ -35,6 +35,4 @@ private:
     ACLTimeData *next;
 };
 
-MEMPROXY_CLASS_INLINE(ACLTimeData);
-
 #endif /* SQUID_ACLTIMEDATA_H */
index edcc1ce7cb276ff10578b296fc2a68a8c3644a9f..6fe94686ab0aee19d127c0d656ad1362681ee3ed 100644 (file)
@@ -8,16 +8,16 @@
 
 #ifndef SQUID_ACLUSERDATA_H
 #define SQUID_ACLUSERDATA_H
+
 #include "acl/Acl.h"
 #include "acl/Data.h"
 #include "splay.h"
 
 class ACLUserData : public ACLData<char const *>
 {
-
-public:
     MEMPROXY_CLASS(ACLUserData);
 
+public:
     virtual ~ACLUserData();
     bool match(char const *user);
     virtual SBufList dump() const;
@@ -33,6 +33,4 @@ public:
     } flags;
 };
 
-MEMPROXY_CLASS_INLINE(ACLUserData);
-
 #endif /* SQUID_ACLUSERDATA_H */
index f15e7555a4244da6349d92e3683932d3ac3962f5..63026c959d6b6fe9b2a8ab7d51282c398ad649bb 100644 (file)
 #include "acl/Checklist.h"
 #include "auth/UserRequest.h"
 
-/// \ingroup ACLAPI
 class ACLMaxUserIP : public ACL
 {
-public:
     MEMPROXY_CLASS(ACLMaxUserIP);
 
+public:
     ACLMaxUserIP(char const *theClass);
     ACLMaxUserIP(ACLMaxUserIP const &old);
     ~ACLMaxUserIP();
@@ -49,7 +48,5 @@ private:
     int maximum;
 };
 
-MEMPROXY_CLASS_INLINE(ACLMaxUserIP);
-
 #endif /* USE_AUTH */
 #endif /* SQUID_ACLMAXUSERIP_H */
index a42b47b0364ad68d2b573e4888bed2fc9ed00703..b95b1e49bce21ad9fc21a8ec55932290573cccbb 100644 (file)
@@ -29,9 +29,9 @@ private:
 
 class ACLProxyAuth : public ACL
 {
-public:
     MEMPROXY_CLASS(ACLProxyAuth);
 
+public:
     ~ACLProxyAuth();
     ACLProxyAuth(ACLData<char const *> *, char const *);
     ACLProxyAuth(ACLProxyAuth const &);
@@ -60,7 +60,5 @@ private:
     char const *type_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLProxyAuth);
-
 #endif /* USE_AUTH */
 #endif /* SQUID_ACLPROXYAUTH_H */
index 5135e647a4f770771d192e1e4a72725b78cd7012..a7ee818cc630fbc04964edcea300515eaa954247 100644 (file)
  */
 class AuthUserHashPointer : public hash_link
 {
-    /* first two items must be same as hash_link */
-
-public:
     MEMPROXY_CLASS(AuthUserHashPointer);
 
+public:
     AuthUserHashPointer(Auth::User::Pointer);
     ~AuthUserHashPointer() { auth_user = NULL; };
 
@@ -44,8 +42,6 @@ private:
     Auth::User::Pointer auth_user;
 };
 
-MEMPROXY_CLASS_INLINE(AuthUserHashPointer);
-
 namespace Auth
 {
 class Scheme;
index 2d5fdf1eaaf33992a7eaa6bbb5b76b557a428254..5854b120b33ac52dfe6d6a8fdae1361051e1fbd6 100644 (file)
@@ -24,6 +24,7 @@ namespace Auth
  */
 class QueueNode
 {
+    MEMPROXY_CLASS(Auth::QueueNode);
 
 private:
     // we store CBDATA here, copy is not safe
@@ -50,12 +51,8 @@ public:
     Auth::UserRequest::Pointer auth_user_request;
     AUTHCB *handler;
     void *data;
-
-    MEMPROXY_CLASS(Auth::QueueNode);
 };
 
-MEMPROXY_CLASS_INLINE(Auth::QueueNode);
-
 } // namespace Auth
 
 #endif /* SQUID_SRC_AUTH_QUEUENODE_H */
index ab54933144f84276a865021d975ee5867a303c2a..91b2d04a4b71052b8ee549d6270d9f3f00dc903e 100644 (file)
@@ -36,6 +36,8 @@ class HttpRequest;
  */
 class AuthUserIP
 {
+    MEMPROXY_CLASS(AuthUserIP);
+
 public:
     AuthUserIP(const Ip::Address &ip, time_t t) : ipaddr(ip), ip_expiretime(t) {}
 
@@ -49,12 +51,8 @@ public:
      * (user,IP) pair plus authenticate_ip_ttl seconds
      */
     time_t ip_expiretime;
-
-    MEMPROXY_CLASS(AuthUserIP);
 };
 
-MEMPROXY_CLASS_INLINE(AuthUserIP);
-
 // TODO: make auth schedule AsyncCalls?
 typedef void AUTHCB(void*);
 
index 5aaaccadd7547c240e69821ce5985dbecab6803b..f128937cb2dcf1d2e2ca635875c866f1fadfd117 100644 (file)
@@ -24,9 +24,9 @@ namespace Basic
 /** User credentials for the Basic authentication protocol */
 class User : public Auth::User
 {
-public:
     MEMPROXY_CLASS(Auth::Basic::User);
 
+public:
     User(Auth::Config *, const char *requestRealm);
     ~User();
     bool authenticated() const;
@@ -44,8 +44,6 @@ private:
     Auth::UserRequest::Pointer currentRequest;
 };
 
-MEMPROXY_CLASS_INLINE(Auth::Basic::User);
-
 } // namespace Basic
 } // namespace Auth
 
index acddc3bff1045e9f6cdcd9a797a050f6a32294ae..7ef90696aabcf15164542e7c12540398b1cbbd88 100644 (file)
@@ -25,9 +25,9 @@ namespace Basic
 
 class UserRequest : public Auth::UserRequest
 {
-public:
     MEMPROXY_CLASS(Auth::Basic::UserRequest);
 
+public:
     UserRequest() {}
     virtual ~UserRequest() { assert(LockCount()==0); }
 
@@ -44,6 +44,4 @@ private:
 } // namespace Basic
 } // namespace Auth
 
-MEMPROXY_CLASS_INLINE(Auth::Basic::UserRequest);
-
 #endif /* _SQUID_SRC_AUTH_BASIC_USERREQUEST_H */
index 1c5f5d7984267970a91cff19127e0b0a9b0392a6..8f8d4748f01d9496ffe660d8e8218353c6058aa6 100644 (file)
@@ -19,9 +19,9 @@ namespace Digest
 /** User credentials for the Digest authentication protocol */
 class User : public Auth::User
 {
-public:
     MEMPROXY_CLASS(Auth::Digest::User);
 
+public:
     User(Auth::Config *, const char *requestRealm);
     ~User();
     int authenticated() const;
@@ -37,8 +37,6 @@ public:
     digest_nonce_h * currentNonce();
 };
 
-MEMPROXY_CLASS_INLINE(Auth::Digest::User);
-
 } // namespace Digest
 } // namespace Auth
 
index e0ba9c78cfab118f900539445d2e2d22c099cfd9..b1e0e317aa79642cb5963fec6a057bce87538742 100644 (file)
@@ -26,10 +26,9 @@ namespace Digest
  */
 class UserRequest : public Auth::UserRequest
 {
-
-public:
     MEMPROXY_CLASS(Auth::Digest::UserRequest);
 
+public:
     UserRequest();
     virtual ~UserRequest();
 
@@ -69,6 +68,4 @@ private:
 } // namespace Digest
 } // namespace Auth
 
-MEMPROXY_CLASS_INLINE(Auth::Digest::UserRequest);
-
 #endif /* _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H */
index 59c95d201ea6823dd8d5d96009f255092e9473d7..ed2f45f39f280ab6dd5782d70cc4e78cbe8624d9 100644 (file)
@@ -22,8 +22,9 @@ namespace Negotiate
 /** User credentials for the Negotiate authentication protocol */
 class User : public Auth::User
 {
-public:
     MEMPROXY_CLASS(Auth::Negotiate::User);
+
+public:
     User(Auth::Config *, const char *requestRealm);
     ~User();
     virtual int32_t ttl() const;
@@ -31,8 +32,6 @@ public:
     dlink_list proxy_auth_list;
 };
 
-MEMPROXY_CLASS_INLINE(Auth::Negotiate::User);
-
 } // namespace Negotiate
 } // namespace Auth
 
index 59d5c7b700f002ba4a95c38672b980a7d03214dc..c1f8db6f7a86bfa916fdf6824fb9d6af9a1d6db3 100644 (file)
@@ -25,10 +25,9 @@ namespace Negotiate
 /// \ingroup AuthNegotiateAPI
 class UserRequest : public Auth::UserRequest
 {
-
-public:
     MEMPROXY_CLASS(Auth::Negotiate::UserRequest);
 
+public:
     UserRequest();
     virtual ~UserRequest();
     virtual int authenticated() const;
@@ -66,6 +65,4 @@ private:
 } // namespace Negotiate
 } // namespace Auth
 
-MEMPROXY_CLASS_INLINE(Auth::Negotiate::UserRequest);
-
 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */
index 3814759b11a9b1d4fd7ad8e090e72454cdc2c37e..e4302c200dae60437cd0899bc5b7f449206046b9 100644 (file)
@@ -22,8 +22,9 @@ namespace Ntlm
 /** User credentials for the NTLM authentication protocol */
 class User : public Auth::User
 {
-public:
     MEMPROXY_CLASS(Auth::Ntlm::User);
+
+public:
     User(Auth::Config *, const char *requestRealm);
     ~User();
 
@@ -32,8 +33,6 @@ public:
     dlink_list proxy_auth_list;
 };
 
-MEMPROXY_CLASS_INLINE(Auth::Ntlm::User);
-
 } // namespace Ntlm
 } // namespace Auth
 
index 126d85db28febf97d113b52a8eee1c47e70c51c6..74d349246f65973545486aa01f9c8f073cfd54da 100644 (file)
@@ -24,10 +24,9 @@ namespace Ntlm
 
 class UserRequest : public Auth::UserRequest
 {
-
-public:
     MEMPROXY_CLASS(Auth::Ntlm::UserRequest);
 
+public:
     UserRequest();
     virtual ~UserRequest();
     virtual int authenticated() const;
@@ -61,6 +60,4 @@ private:
 } // namespace Ntlm
 } // namespace Auth
 
-MEMPROXY_CLASS_INLINE(Auth::Ntlm::UserRequest);
-
 #endif /* _SQUID_SRC_AUTH_NTLM_USERREQUEST_H */
index e7148d233a854693180acf5e2897e8607b55e596..e9bd582284488f8dadad3dc82370db4012a19808 100644 (file)
@@ -63,6 +63,14 @@ public:
 /// \ingroup CBDATAInternal
 class cbdata
 {
+#if !HASHED_CBDATA
+public:
+    void *operator new(size_t size, void *where);
+    void operator delete(void *where, void *where2);
+#else
+    MEMPROXY_CLASS(cndata);
+#endif
+
     /** \todo examine making cbdata templated on this - so we get type
      * safe access to data - RBC 20030902 */
 public:
@@ -75,13 +83,6 @@ public:
     void dump(StoreEntry *)const;
 #endif
 
-#if !HASHED_CBDATA
-    void *operator new(size_t size, void *where);
-    void operator delete(void *where, void *where2);
-#else
-    MEMPROXY_CLASS(cndata);
-#endif
-
     ~cbdata();
     int valid;
     int32_t locks;
@@ -145,8 +146,6 @@ cbdata::MakeOffset()
     void **dataOffset = &zero->data;
     return (long)dataOffset;
 }
-#else
-MEMPROXY_CLASS_INLINE(cbdata);
 #endif
 
 static OBJH cbdataDump;
index 7d131ad194d9aeab206d0f1b5a388a65c4c3f4f3..30dcb193d8ea05bb33d35ea21d45632b299397b0 100644 (file)
@@ -59,9 +59,9 @@ namespace Comm
  */
 class Connection : public RefCountable
 {
-public:
     MEMPROXY_CLASS(Comm::Connection);
 
+public:
     Connection();
 
     /** Clear the connection properties and close any open socket. */
@@ -144,8 +144,6 @@ private:
 
 }; // namespace Comm
 
-MEMPROXY_CLASS_INLINE(Comm::Connection);
-
 // NP: Order and namespace here is very important.
 //     * The second define inlines the first.
 //     * Stream inheritance overloading is searched in the global scope first.
index b9edcb654e860efe8f52a776bcb03022ebf7e25c..4d55013a53a463099d75d215d04326891bf350ad 100644 (file)
 #include "esi/VarState.h"
 #include "SquidString.h"
 
-/* ESIVariableExpression */
-/* This is a variable that is itself and expression */
-
+/** This is a variable that is itself an expression */
 class ESIVariableExpression : public ESIVarState::Variable
 {
-
 public:
     ~ESIVariableExpression();
     ESIVariableExpression (String const &value);
@@ -30,15 +27,13 @@ private:
     String expression;
 };
 
-/* ESIAssign */
-
 class ESIContext;
 
 class ESIAssign : public ESIElement
 {
+    MEMPROXY_CLASS(ESIAssign);
 
 public:
-    MEMPROXY_CLASS(ESIAssign);
     ESIAssign (esiTreeParentPtr, int, const char **, ESIContext *);
     ESIAssign (ESIAssign const &);
     ESIAssign &operator=(ESIAssign const &);
@@ -61,6 +56,4 @@ private:
     String unevaluatedVariable;
 };
 
-MEMPROXY_CLASS_INLINE(ESIAssign);
-
 #endif /* SQUID_ESIASSIGN_H */
index 7b6fff0949ee36bbd157f0e4ae945737c8e63bf0..13f96a0279a7d6c203a41683a19d17a68161b042 100644 (file)
@@ -81,10 +81,11 @@ typedef ESIContext::esiKick_t esiKick_t;
 
 /* some core operators */
 
-/* esiComment */
-
-struct esiComment : public ESIElement {
+class esiComment : public ESIElement
+{
     MEMPROXY_CLASS(esiComment);
+
+public:
     ~esiComment();
     esiComment();
     Pointer makeCacheable() const;
@@ -94,8 +95,6 @@ struct esiComment : public ESIElement {
     void finish();
 };
 
-MEMPROXY_CLASS_INLINE(esiComment);
-
 #include "esi/Literal.h"
 
 #include "esi/Sequence.h"
@@ -123,11 +122,11 @@ CBDATA_TYPE (esiRemove);
 static FREE esiRemoveFree;
 static ESIElement * esiRemoveNew(void);
 
-/* esiTry */
-
-struct esiTry : public ESIElement {
+class esiTry : public ESIElement
+{
     MEMPROXY_CLASS(esiTry);
 
+public:
     esiTry(esiTreeParentPtr aParent);
     ~esiTry();
 
@@ -158,15 +157,13 @@ private:
     esiProcessResult_t bestAttemptRV() const;
 };
 
-MEMPROXY_CLASS_INLINE(esiTry);
-
 #include "esi/Var.h"
 
-/* esiChoose */
-
-struct esiChoose : public ESIElement {
+class esiChoose : public ESIElement
+{
     MEMPROXY_CLASS(esiChoose);
 
+public:
     esiChoose(esiTreeParentPtr);
     ~esiChoose();
 
@@ -194,12 +191,11 @@ private:
     void selectElement();
 };
 
-MEMPROXY_CLASS_INLINE(esiChoose);
-
-/* esiWhen */
-
-struct esiWhen : public esiSequence {
+class esiWhen : public esiSequence
+{
     MEMPROXY_CLASS(esiWhen);
+
+public:
     esiWhen(esiTreeParentPtr aParent, int attributes, const char **attr, ESIVarState *);
     ~esiWhen();
     Pointer makeCacheable() const;
@@ -217,10 +213,6 @@ private:
     void evaluate();
 };
 
-MEMPROXY_CLASS_INLINE(esiWhen);
-
-/* esiOtherwise */
-
 struct esiOtherwise : public esiSequence {
     //    void *operator new (size_t byteCount);
     //    void operator delete (void *address);
index 51fe8eb6b596d3f987953f6cda624ad37de4575e..22b0175cb9b8ddeadf4a62d17ef678b86d24ea09 100644 (file)
@@ -35,14 +35,11 @@ private:
     CBDATA_CLASS2(ESIStreamContext);
 };
 
-/* ESIInclude */
-
 class ESIInclude : public ESIElement
 {
-
-public:
     MEMPROXY_CLASS(ESIInclude);
 
+public:
     ESIInclude(esiTreeParentPtr, int attributes, const char **attr, ESIContext *);
     ~ESIInclude();
     void render(ESISegment::Pointer);
@@ -76,6 +73,4 @@ private:
     void prepareRequestHeaders(HttpHeader &tempheaders, ESIVarState *vars);
 };
 
-MEMPROXY_CLASS_INLINE(ESIInclude);
-
 #endif /* SQUID_ESIINCLUDE_H */
index 70a45587015aa928aba76f96cd5afbb9eb1664fe..8b54ff500233ffebedb22e6890a6943fb4db027f 100644 (file)
 #include "esi/Element.h"
 
 class ESIContext;
-/* esiLiteral */
 
-struct esiLiteral : public ESIElement {
+class esiLiteral : public ESIElement
+{
     MEMPROXY_CLASS(esiLiteral);
 
+public:
     esiLiteral(ESISegment::Pointer);
     esiLiteral(ESIContext *, const char *s, int len);
     ~esiLiteral();
@@ -41,6 +42,4 @@ private:
     esiLiteral(esiLiteral const &);
 };
 
-MEMPROXY_CLASS_INLINE(esiLiteral);
-
 #endif /* SQUID_ESILITERAL_H */
index 4128fe3f325e34fd9bcb6854d20f3ab947acd6cd..c3e2ed33d5cb24e51a4894f690545dc762f712ee 100644 (file)
 
 class esiSequence : public ESIElement
 {
-
-public:
     MEMPROXY_CLASS(esiSequence);
 
+public:
     esiSequence(esiTreeParentPtr, bool = false);
     ~esiSequence();
 
@@ -65,6 +64,4 @@ private:
     void processStep(int dovars);
 };
 
-MEMPROXY_CLASS_INLINE(esiSequence);
-
 #endif /* SQUID_ESISEQUENCE_H */
index 3636398a9fb84153a978746bf896c9d8c2e3f158..5967b7af0002336b67f8fe526c77dfdb9fcac296 100644 (file)
@@ -27,11 +27,11 @@ int eventFind(EVH *, void *);
 
 class ev_entry
 {
+    MEMPROXY_CLASS(ev_entry);
 
 public:
     ev_entry(char const * name, EVH * func, void *arg, double when, int weight, bool cbdata=true);
     ~ev_entry();
-    MEMPROXY_CLASS(ev_entry);
     const char *name;
     EVH *func;
     void *arg;
@@ -43,8 +43,6 @@ public:
     ev_entry *next;
 };
 
-MEMPROXY_CLASS_INLINE(ev_entry);
-
 // manages time-based events
 class EventScheduler : public AsyncEngine
 {
index 35bc9ab92a5f9a9bfa85cfd23dc775af3039af35..d1114fd4bbcb151077fa756ee4a1e88d2a53c8bc 100644 (file)
@@ -68,9 +68,10 @@ static ExternalACLEntryPointer external_acl_cache_add(external_acl * def, const
 
 class external_acl_format : public RefCountable
 {
+    MEMPROXY_CLASS(external_acl_format);
+
 public:
     typedef RefCount<external_acl_format> Pointer;
-    MEMPROXY_CLASS(external_acl_format);
 
     external_acl_format() : type(Format::LFT_NONE), header(NULL), member(NULL), separator(' '), header_id(HDR_BAD_HDR) {}
     ~external_acl_format() {
@@ -86,8 +87,6 @@ public:
     http_hdr_type header_id;
 };
 
-MEMPROXY_CLASS_INLINE(external_acl_format);
-
 class external_acl
 {
 
index 479bd9c04f601d6458bd602dbbe5089ac45a41d9..be52e7ba1fe7727481fa10f3d236ad7628072464 100644 (file)
@@ -23,6 +23,8 @@ class SwapDir;
 /// \ingroup Rock
 class IoState: public ::StoreIOState
 {
+    MEMPROXY_CLASS(IoState);
+
 public:
     typedef RefCount<IoState> Pointer;
 
@@ -45,8 +47,6 @@ public:
     /// called by SwapDir::writeCompleted() after the last write and on error
     void finishedWriting(const int errFlag);
 
-    MEMPROXY_CLASS(IoState);
-
     /* one and only one of these will be set and locked; access via *Anchor() */
     const Ipc::StoreMapAnchor *readableAnchor_; ///< starting point for reading
     Ipc::StoreMapAnchor *writeableAnchor_; ///< starting point for writing
@@ -74,8 +74,6 @@ private:
     MemBlob theBuf; // use for write content accumulation only
 };
 
-MEMPROXY_CLASS_INLINE(IoState);
-
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_IO_STATE_H */
index 3c16d84428e6ae40ec64250ee36634822f25d041..7095d325f11429e1e70be35e6a5a6cd43f04cbdf 100644 (file)
@@ -44,8 +44,8 @@ protected:
 
     class _queued_read
     {
-    public:
         MEMPROXY_CLASS(UFSStoreState::_queued_read);
+    public:
         char *buf;
         size_t size;
         off_t offset;
@@ -56,8 +56,8 @@ protected:
 
     class _queued_write
     {
-    public:
         MEMPROXY_CLASS(UFSStoreState::_queued_write);
+    public:
         char const *buf;
         size_t size;
         off_t offset;
@@ -99,9 +99,6 @@ private:
     CBDATA_CLASS2(UFSStoreState);
 };
 
-MEMPROXY_CLASS_INLINE(UFSStoreState::_queued_read);
-MEMPROXY_CLASS_INLINE(UFSStoreState::_queued_write);
-
 } //namespace Ufs
 } //namespace Fs
 
index 9c4fbc076a1376db260c56e78bfb9387ea4f9329..0b00d65bc2f0e72302dd09a4b059ffd1ae6f717c 100644 (file)
@@ -16,6 +16,8 @@ namespace Helper
 
 class Request
 {
+    MEMPROXY_CLASS(Helper::Request);
+
 public:
     Request(HLPCB *c, void *d, const char *b) :
             buf(b ? xstrdup(b) : NULL),
@@ -31,7 +33,6 @@ public:
         xfree(buf);
     }
 
-    MEMPROXY_CLASS(Helper::Request);
     char *buf;
     HLPCB *callback;
     void *data;
@@ -42,6 +43,4 @@ public:
 
 } // namespace Helper
 
-MEMPROXY_CLASS_INLINE(Helper::Request);
-
 #endif /* _SQUID_SRC_HELPER_REQUEST_H */
index 00a10b3c1e258525b1ac35c6d3f3aa6d27ffa5cc..129a3aaa453325e03b78d77d4df2bd930e24c962 100644 (file)
@@ -135,10 +135,9 @@ struct _htcpAuthHeader {
 
 class htcpSpecifier : public StoreClient
 {
-
-public:
     MEMPROXY_CLASS(htcpSpecifier);
 
+public:
     void created (StoreEntry *newEntry);
     void checkHit();
     void checkedHit(StoreEntry *e);
@@ -158,8 +157,6 @@ private:
     htcpDataHeader *dhdr;
 };
 
-MEMPROXY_CLASS_INLINE(htcpSpecifier);
-
 struct _htcpDetail {
     char *resp_hdrs;
     char *entity_hdrs;
index 0313083bc2ce36e4b140d904f056fbd910a4fdcc..e0d2280eb6033953ed0aa3b25c595b9152f2761b 100644 (file)
@@ -32,10 +32,9 @@ private:
 /// \ingroup ACLAPI
 class ACLIdent : public ACL
 {
-
-public:
     MEMPROXY_CLASS(ACLIdent);
 
+public:
     ACLIdent(ACLData<char const *> *newData, char const *);
     ACLIdent (ACLIdent const &old);
     ACLIdent & operator= (ACLIdent const &rhs);
@@ -59,7 +58,5 @@ private:
     char const *type_;
 };
 
-MEMPROXY_CLASS_INLINE(ACLIdent);
-
 #endif /* USE_IDENT */
 #endif /* SQUID_IDENT_ACLIDENT_H */
index c904e9b9f06510d19eef2f7e010f216eebfb40e1..9e3235aedd0a6dfbc550e5be4da1103b9ed3e36c 100644 (file)
 
 class mem_node
 {
+    MEMPROXY_CLASS(mem_node);
 
 public:
     static size_t InUseCount();
     static size_t StoreMemSize();
 
-    MEMPROXY_CLASS(mem_node);
     mem_node(int64_t);
     ~mem_node();
     size_t space() const;
@@ -38,8 +38,6 @@ public:
     bool write_pending;
 };
 
-MEMPROXY_CLASS_INLINE(mem_node);
-
 inline std::ostream &
 operator << (std::ostream &os, mem_node &aNode)
 {
index 07936205e463602b155b4fca3c8420d28ef4db6d..e39e3dbb1317b73af102ef7b05f5c156e43f7fba 100644 (file)
@@ -37,6 +37,8 @@ static char const *mimeGetIcon(const char *fn);
 
 class MimeIcon : public StoreClient
 {
+    MEMPROXY_CLASS(MimeIcon);
+
 public:
     explicit MimeIcon(const char *aName);
     ~MimeIcon();
@@ -44,16 +46,16 @@ public:
     char const * getName() const;
     void load();
     void created(StoreEntry *newEntry);
-    MEMPROXY_CLASS(MimeIcon);
 
 private:
     const char *icon_;
     char *url_;
 };
-MEMPROXY_CLASS_INLINE(MimeIcon);
 
 class MimeEntry
 {
+    MEMPROXY_CLASS(MimeEntry);
+
 public:
     explicit MimeEntry(const char *aPattern, const regex_t &compiledPattern,
                        const char *aContentType,
@@ -61,7 +63,6 @@ public:
                        bool optionViewEnable, bool optionDownloadEnable,
                        const char *anIconName);
     ~MimeEntry();
-    MEMPROXY_CLASS(MimeEntry);
 
     const char *pattern;
     regex_t compiled_pattern;
@@ -73,7 +74,6 @@ public:
     MimeIcon theIcon;
     MimeEntry *next;
 };
-MEMPROXY_CLASS_INLINE(MimeEntry);
 
 static MimeEntry *MimeTable = NULL;
 static MimeEntry **MimeTableTail = &MimeTable;
index d62207c83b54750c5baa4c407694f5cf465b1873..6b5cb783628af58d69eaf10b95538fbac5916bac 100644 (file)
 
 class CapturingStoreEntry : public StoreEntry
 {
-
-public:
     MEMPROXY_CLASS(CapturingStoreEntry);
 
+public:
     CapturingStoreEntry() : _buffer_calls(0), _flush_calls(0) {}
 
     String _appended_text;
@@ -39,6 +38,4 @@ public:
     }
 };
 
-MEMPROXY_CLASS_INLINE(CapturingStoreEntry);
-
 #endif
index 0311ed2f1800cb949157aad3d57a8c57ae0e8239..ffee9ef82eec1333a904ab05af62e5730f1fc711 100644 (file)
@@ -21,11 +21,8 @@ int eventFind(EVH *, void *) STUB_RETVAL(-1)
 
 // ev_entry::ev_entry(char const * name, EVH * func, void *arg, double when, int weight, bool cbdata) STUB
 // ev_entry::~ev_entry() STUB
-//    MEMPROXY_CLASS(ev_entry);
 //    EVH *func;
 
-//MEMPROXY_CLASS_INLINE(ev_entry);
-
 EventScheduler::EventScheduler() STUB
 EventScheduler::~EventScheduler() STUB
 void EventScheduler::cancel(EVH * func, void * arg) STUB
index 61bc7232315ed1824869e4b5eb3ad062c0e13118..916fca52a6059dcfcfc53d65e0f005813f42b3cf 100644 (file)
  */
 class wordlist
 {
-public:
     MEMPROXY_CLASS(wordlist);
+
+public:
     char *key;
     wordlist *next;
 };
 
-MEMPROXY_CLASS_INLINE(wordlist);
-
 class MemBuf;
 
 /** Add a null-terminated c-string to a wordlist