#include <StoreMeta.h>


Public Member Functions | |
virtual char | getType () const =0 |
virtual bool | validLength (int) const |
virtual bool | checkConsistency (StoreEntry *) const |
virtual | ~StoreMeta () |
Static Public Member Functions | |
static bool | validType (char) |
static StoreMeta * | Factory (char type, size_t len, void const *value) |
static StoreMeta ** | Add (StoreMeta **tail, StoreMeta *aNode) |
static void | FreeList (StoreMeta **head) |
Public Attributes | |
int | length |
void * | value |
tlv * | next |
Static Public Attributes | |
static int const | MaximumTLVLength = 1 << 16 |
static int const | MinimumTLVLength = 0 |
Protected Member Functions | |
StoreMeta () | |
StoreMeta (const StoreMeta &) | |
StoreMeta & | operator= (const StoreMeta &) |
Detailed Description
Definition at line 113 of file StoreMeta.h.
Constructor & Destructor Documentation
◆ StoreMeta() [1/2]
|
inlineprotected |
Definition at line 116 of file StoreMeta.h.
◆ StoreMeta() [2/2]
|
protected |
Definition at line 167 of file StoreMeta.cc.
◆ ~StoreMeta()
|
inlinevirtual |
Definition at line 131 of file StoreMeta.h.
Member Function Documentation
◆ Add()
Definition at line 130 of file StoreMeta.cc.
References assert, next, and NULL.
Referenced by StoreMetaUnpacker::doOneEntry(), and storeSwapMetaBuild().
◆ checkConsistency()
|
virtual |
Reimplemented in StoreMetaVary, StoreMetaURL, and StoreMetaMD5.
Definition at line 138 of file StoreMeta.cc.
References assert, DBG_IMPORTANT, debugs, getType(), STORE_META_KEY, STORE_META_OBJSIZE, STORE_META_STD, STORE_META_STD_LFS, STORE_META_URL, and STORE_META_VARY_HEADERS.
◆ Factory()
Definition at line 68 of file StoreMeta.cc.
References DBG_CRITICAL, debugs, length, NULL, STORE_META_KEY, STORE_META_OBJSIZE, STORE_META_STD, STORE_META_STD_LFS, STORE_META_URL, STORE_META_VARY_HEADERS, type, validLength(), validType(), value, and xmalloc.
Referenced by StoreMetaUnpacker::doOneEntry(), and storeSwapMetaBuild().
◆ FreeList()
|
static |
Definition at line 118 of file StoreMeta.cc.
References head, node::next, NULL, and xfree.
◆ getType()
|
pure virtual |
Implemented in StoreMetaVary, StoreMetaURL, StoreMetaSTDLFS, StoreMetaSTD, StoreMetaObjSize, and StoreMetaMD5.
Referenced by checkConsistency(), and InitStoreEntry::operator()().
◆ operator=()
Definition at line 173 of file StoreMeta.cc.
◆ validLength()
|
virtual |
Reimplemented in StoreMetaSTDLFS, StoreMetaSTD, and StoreMetaMD5.
Definition at line 56 of file StoreMeta.cc.
References Range< C, S >::contains(), DBG_CRITICAL, debugs, MaximumTLVLength, MinimumTLVLength, and MYNAME.
Referenced by Factory().
◆ validType()
|
static |
Definition at line 24 of file StoreMeta.cc.
References DBG_CRITICAL, debugs, STORE_META_END, STORE_META_HITMETERING, STORE_META_KEY_SHA, STORE_META_KEY_URL, STORE_META_STOREURL, STORE_META_VALID, STORE_META_VARY_ID, and type.
Referenced by Factory().
Member Data Documentation
◆ length
int StoreMeta::length |
Definition at line 133 of file StoreMeta.h.
Referenced by StoreMetaMD5::checkConsistency(), StoreMetaVary::checkConsistency(), Factory(), InitStoreEntry::operator()(), and operator=().
◆ MaximumTLVLength
|
static |
Definition at line 122 of file StoreMeta.h.
Referenced by validLength().
◆ MinimumTLVLength
|
static |
Definition at line 123 of file StoreMeta.h.
Referenced by validLength().
◆ next
tlv* StoreMeta::next |
Definition at line 135 of file StoreMeta.h.
Referenced by Add(), and operator=().
◆ value
void* StoreMeta::value |
Definition at line 134 of file StoreMeta.h.
Referenced by StoreMetaMD5::checkConsistency(), StoreMetaURL::checkConsistency(), StoreMetaVary::checkConsistency(), Factory(), InitStoreEntry::operator()(), and operator=().
The documentation for this class was generated from the following files:
- src/StoreMeta.h
- src/StoreMeta.cc