+++ /dev/null
-/*
- * DEBUG: section 20 Storage Manager
- * AUTHOR: Harvest Derived
- *
- * SQUID Web Proxy Cache http://www.squid-cache.org/
- * ----------------------------------------------------------
- *
- * Squid is the result of efforts by numerous individuals from
- * the Internet community; see the CONTRIBUTORS file for full
- * details. Many organizations have provided support for Squid's
- * development; see the SPONSORS file for full details. Squid is
- * Copyrighted (C) 2001 by the Regents of the University of
- * California; see the COPYRIGHT file for full details. Squid
- * incorporates software developed and/or copyrighted by other
- * sources; see the CREDITS file for full details.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
- *
- */
-
-#include "HttpReply.h"
-#include "MemObject.h"
-
-/**
- \retval true Store contains 0 bytes of data.
- \retval false Store contains 1 or more bytes of data.
- \retval false Store contains negative content !!!!!!
- */
-bool
-StoreEntry::isEmpty () const
-{
- assert (mem_obj);
- return mem_obj->endOffset() == 0;
-}
-
-/// \retval * - Always NULL for 'null' filesystem.
-HttpReply const *
-NullStoreEntry::getReply() const
-{
- return NULL;
-}
-
-/// \retval N/A Kills squid with fatal error if called before Store Root is set.
-Store &
-Store::Root()
-{
- if (CurrentRoot == NULL)
- fatal("No Store Root has been set");
-
- return *CurrentRoot;
-}
#include "hash.h"
#include "HttpReply.h"
#include "HttpRequestMethod.h"
+#include "MemObject.h"
#include "Range.h"
#include "RemovalPolicy.h"
#include "StoreIOBuffer.h"
class AsyncCall;
class HttpRequest;
-class MemObject;
class Packer;
class RequestFlags;
class StoreClient;
virtual HttpReply const *getReply() const;
virtual void write (StoreIOBuffer);
- virtual _SQUID_INLINE_ bool isEmpty() const;
+
+ /** Check if the Store entry is emtpty
+ * \retval true Store contains 0 bytes of data.
+ * \retval false Store contains 1 or more bytes of data.
+ * \retval false Store contains negative content !!!!!!
+ */
+ virtual bool isEmpty() const {
+ assert (mem_obj);
+ return mem_obj->endOffset() == 0;
+ }
virtual bool isAccepting() const;
virtual size_t bytesWanted(Range<size_t> const aRange, bool ignoreDelayPool = false) const;
virtual void complete();
}
const char *getMD5Text() const;
- _SQUID_INLINE_ HttpReply const *getReply() const;
+ HttpReply const *getReply() const { return NULL; }
void write (StoreIOBuffer) {}
bool isEmpty () const {return true;}
public:
/** The root store */
- static _SQUID_INLINE_ Store &Root();
+ static Store &Root() {
+ if (CurrentRoot == NULL)
+ fatal("No Store Root has been set");
+ return *CurrentRoot;
+ }
static void Root(Store *);
static void Root(RefCount<Store>);
static void Stats(StoreEntry * output);
/// \ingroup StoreAPI
void storeGetMemSpace(int size);
-#if _USE_INLINE_
-#include "Store.cci"
-#endif
-
#endif /* SQUID_STORE_H */
void destroyStoreEntry(void *) STUB
// in Packer.cc !? void packerToStoreInit(Packer * p, StoreEntry * e) STUB
void storeGetMemSpace(int size) STUB
-
-#if !_USE_INLINE_ /* stubs for Store.cci */
-bool StoreEntry::isEmpty () const STUB_RETVAL(true)
-HttpReply const *NullStoreEntry::getReply() const STUB_RETVAL(NULL)
-
-Store &Store::Root()
-{
- CPPUNIT_ASSERT(CurrentRoot != NULL);
- return *CurrentRoot;
-}
-#endif /* !_USE_INLINE_ */