/*
- * $Id: DelayTagged.h,v 1.2 2003/05/22 10:14:09 robertc Exp $
+ * $Id: DelayTagged.h,v 1.3 2003/08/03 09:03:48 robertc Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: Robert Collins <robertc@squid-cache.org>
void *operator new(size_t);
void operator delete (void *);
virtual void deleteSelf() const;
- Id (DelayTagged::Pointer, String &);
+ Id (RefCount<DelayTagged>, String &);
~Id();
virtual int bytesWanted (int min, int max) const;
virtual void bytesIn(int qty);
virtual void delayRead(DeferredRead const &);
private:
- DelayTagged::Pointer theTagged;
+ RefCount<DelayTagged> theTagged;
DelayTaggedBucket::Pointer theBucket;
};
/*
- * $Id: DelayUser.h,v 1.5 2003/05/20 12:17:38 robertc Exp $
+ * $Id: DelayUser.h,v 1.6 2003/08/03 09:03:48 robertc Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: Robert Collins <robertc@squid-cache.org>
void *operator new(size_t);
void operator delete (void *);
virtual void deleteSelf() const;
- Id (DelayUser::Pointer, AuthUser *);
+ Id (RefCount<DelayUser>, AuthUser *);
~Id();
virtual int bytesWanted (int min, int max) const;
virtual void bytesIn(int qty);
private:
- DelayUser::Pointer theUser;
+ RefCount<DelayUser> theUser;
DelayUserBucket::Pointer theBucket;
};
/*
- * $Id: DelayVector.h,v 1.7 2003/05/20 12:17:38 robertc Exp $
+ * $Id: DelayVector.h,v 1.8 2003/08/03 09:03:48 robertc Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
void operator delete (void *);
virtual void deleteSelf() const;
- Id (DelayVector::Pointer,CompositeSelectionDetails &);
+ Id (RefCount<DelayVector>,CompositeSelectionDetails &);
~Id();
virtual int bytesWanted (int min, int max) const;
virtual void bytesIn(int qty);
virtual void delayRead(DeferredRead const &);
private:
- DelayVector::Pointer theVector;
+ RefCount<DelayVector> theVector;
Vector<DelayIdComposite::Pointer> ids;
typedef Vector<DelayIdComposite::Pointer>::iterator iterator;
typedef Vector<DelayIdComposite::Pointer>::const_iterator const_iterator;
/*
- * $Id: delay_pools.cc,v 1.40 2003/06/19 13:12:05 robertc Exp $
+ * $Id: delay_pools.cc,v 1.41 2003/08/03 09:03:49 robertc Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: Robert Collins <robertc@squid-cache.org>
void *operator new(size_t);
void operator delete (void *);
virtual void deleteSelf() const;
- AggregateId (Aggregate::Pointer);
+ AggregateId (RefCount<Aggregate>);
virtual int bytesWanted (int min, int max) const;
virtual void bytesIn(int qty);
virtual void delayRead(DeferredRead const &);
private:
- Aggregate::Pointer theAggregate;
+ RefCount<Aggregate> theAggregate;
};
friend class AggregateId;
void *operator new(size_t);
void operator delete (void *);
virtual void deleteSelf() const;
- Id (VectorPool::Pointer, int);
+ Id (RefCount<VectorPool>, int);
virtual int bytesWanted (int min, int max) const;
virtual void bytesIn(int qty);
private:
- VectorPool::Pointer theVector;
+ RefCount<VectorPool> theVector;
int theIndex;
};
};
void *operator new(size_t);
void operator delete (void *);
virtual void deleteSelf() const;
- Id (ClassCHostPool::Pointer, unsigned char, unsigned char);
+ Id (RefCount<ClassCHostPool>, unsigned char, unsigned char);
virtual int bytesWanted (int min, int max) const;
virtual void bytesIn(int qty);
private:
- ClassCHostPool::Pointer theClassCHost;
+ RefCount<ClassCHostPool> theClassCHost;
unsigned char theNet;
unsigned char theHost;
};
delete this;
}
-Aggregate::AggregateId::AggregateId(Aggregate::Pointer anAggregate) : theAggregate(anAggregate)
+Aggregate::AggregateId::AggregateId(RefCount<Aggregate> anAggregate) : theAggregate(anAggregate)
{}
int