/*
- * Copyright (C) 1996-2016 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.
/// \ingroup DelayPoolsAPI
class DelayUserBucket : public RefCountable
{
+ MEMPROXY_CLASS(DelayUserBucket);
public:
typedef RefCount<DelayUserBucket> Pointer;
- void *operator new(size_t);
- void operator delete (void *);
void stats(StoreEntry *)const;
DelayUserBucket(Auth::User::Pointer);
- ~DelayUserBucket();
+ ~DelayUserBucket() override;
DelayBucket theBucket;
Auth::User::Pointer authUser;
};
/// \ingroup DelayPoolsAPI
class DelayUser : public CompositePoolNode
{
+ MEMPROXY_CLASS(DelayUser);
public:
typedef RefCount<DelayUser> Pointer;
- void *operator new(size_t);
- void operator delete (void *);
DelayUser();
- virtual ~DelayUser();
- virtual void stats(StoreEntry * sentry);
- virtual void dump(StoreEntry *entry) const;
- virtual void update(int incr);
- virtual void parse();
+ ~DelayUser() override;
+ void stats(StoreEntry * sentry) override;
+ void dump(StoreEntry *entry) const override;
+ void update(int incr) override;
+ void parse() override;
- virtual DelayIdComposite::Pointer id(CompositeSelectionDetails &);
+ DelayIdComposite::Pointer id(CompositeSelectionDetails &) override;
private:
/// \ingroup DelayPoolsInternal
class Id:public DelayIdComposite
{
+ MEMPROXY_CLASS(DelayUser::Id);
public:
- void *operator new(size_t);
- void operator delete (void *);
Id(RefCount<DelayUser>, Auth::User::Pointer);
- ~Id();
- virtual int bytesWanted (int min, int max) const;
- virtual void bytesIn(int qty);
+ ~Id() override;
+ int bytesWanted (int min, int max) const override;
+ void bytesIn(int qty) override;
private:
RefCount<DelayUser> theUser;