*/
class StoreEntry : public hash_link
{
-public:
- MEMPROXY_CLASS(StoreEntry);
public:
static DeferredRead::DeferrableRead DeferReader;
return false;
};
+ void *operator new(size_t byteCount);
+ void operator delete(void *address);
void setReleaseFlag();
#if USE_SQUID_ESI
bool hasOneOfEtags(const String &reqETags, const bool allowWeakMatch) const;
};
-MEMPROXY_CLASS_INLINE(StoreEntry);
-
std::ostream &operator <<(std::ostream &os, const StoreEntry &e);
/// \ingroup StoreAPI
fatal("Store::unlink on invalid Store\n");
}
+void *
+StoreEntry::operator new (size_t bytecount)
+{
+ assert (bytecount == sizeof (StoreEntry));
+
+ if (!pool) {
+ pool = memPoolCreate ("StoreEntry", bytecount);
+ }
+
+ return pool->alloc();
+}
+
+void
+StoreEntry::operator delete (void *address)
+{
+ pool->freeOne(address);
+}
+
void
StoreEntry::makePublic()
{
void StoreEntry::getPublicByRequestMethod(StoreClient * aClient, HttpRequest * request, const HttpRequestMethod& method) STUB
void StoreEntry::getPublicByRequest(StoreClient * aClient, HttpRequest * request) STUB
void StoreEntry::getPublic(StoreClient * aClient, const char *uri, const HttpRequestMethod& method) STUB
+void *StoreEntry::operator new(size_t byteCount)
+{
+ STUB
+ return new StoreEntry();
+}
+void StoreEntry::operator delete(void *address) STUB
void StoreEntry::setReleaseFlag() STUB
//#if USE_SQUID_ESI
//ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(NULL)