/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#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);
Ip::Address mask; /**< \todo This should perhapse be stored as a CIDR range now instead of a full IP mask. */
- acl_ip_data *next; /**< used for parsing, not for storing */
+ acl_ip_data *next; /**< used for parsing, not for storing */
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 *);
~ACLIP();
- typedef SplayNode<acl_ip_data *> IPSplay;
+ typedef Splay<acl_ip_data *> IPSplay;
virtual char const *typeString() const = 0;
virtual void parse();
int match(Ip::Address &);
IPSplay *data;
-private:
- static void DumpIpListWalkee(acl_ip_data * const & ip, void *state);
};
#endif /* SQUID_ACLIP_H */
+