stub_CacheDigest.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #include "squid.h"
10 #include "store_key_md5.h"
11 
12 #define STUB_API "CacheDigest.cc"
13 #include "tests/STUB.h"
14 
15 class CacheDigest;
16 class CacheDigestGuessStats;
17 class StoreEntry;
18 
19 #include "CacheDigest.h"
20 CacheDigest::CacheDigest(uint64_t, uint8_t) {STUB}
22 CacheDigest *CacheDigest::clone() const STUB_RETVAL(nullptr)
23 void CacheDigest::clear() STUB
24 void CacheDigest::updateCapacity(uint64_t) STUB
25 bool CacheDigest::contains(const cache_key *) const STUB_RETVAL(false)
26 void CacheDigest::add(const cache_key *) STUB
27 void CacheDigest::remove(const cache_key *) STUB
28 double CacheDigest::usedMaskPercent() const STUB_RETVAL(0.0)
29 void cacheDigestGuessStatsUpdate(CacheDigestGuessStats *, int, int) STUB
30 void cacheDigestGuessStatsReport(const CacheDigestGuessStats *, StoreEntry *, const SBuf &) STUB
31 void cacheDigestReport(CacheDigest *, const SBuf &, StoreEntry *) STUB
32 uint32_t CacheDigest::CalcMaskSize(uint64_t, uint8_t) STUB_RETVAL(1)
33 
unsigned char cache_key
Store key.
Definition: forward.h:29
static uint32_t CalcMaskSize(uint64_t cap, uint8_t bpe)
Definition: CacheDigest.cc:284
#define STUB_RETVAL(x)
Definition: STUB.h:41
CacheDigest(uint64_t capacity, uint8_t bpe)
Definition: CacheDigest.cc:50
void add(const cache_key *key)
Definition: CacheDigest.cc:107
#define STUB
macro to stub a void function.
Definition: STUB.h:33
void remove(const cache_key *key)
Definition: CacheDigest.cc:151
bool contains(const cache_key *key) const
Definition: CacheDigest.cc:93
void cacheDigestGuessStatsUpdate(CacheDigestGuessStats *stats, int real_hit, int guess_hit)
Definition: CacheDigest.cc:202
void updateCapacity(uint64_t newCapacity)
changes mask size to fit newCapacity, resets bits to 0
Definition: CacheDigest.cc:86
double usedMaskPercent() const
percentage of mask bits which are used
Definition: CacheDigest.cc:194
CacheDigest * clone() const
produce a new identical copy of the digest object
Definition: CacheDigest.cc:68
void clear()
reset the digest mask and counters
Definition: CacheDigest.cc:79
void cacheDigestGuessStatsReport(const CacheDigestGuessStats *stats, StoreEntry *sentry, const SBuf &label)
Definition: CacheDigest.cc:220
void cacheDigestReport(CacheDigest *cd, const SBuf &label, StoreEntry *e)
Definition: CacheDigest.cc:256
#define false
Definition: GnuRegex.c:233

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors