store_repl_heap.cc File Reference
#include "squid.h"
#include "heap.h"
#include "MemObject.h"
#include "Store.h"
#include "store_heap_replacement.h"
#include "wordlist.h"
#include <queue>
Include dependency graph for store_repl_heap.cc:

Go to the source code of this file.

Classes

struct  HeapPolicyData
 
struct  _HeapWalkData
 
class  HeapPurgeData
 

Typedefs

typedef struct _HeapWalkData HeapWalkData
 

Functions

static enum HeapPolicyData::heap_entry_type heap_guessType (StoreEntry *entry, RemovalPolicyNode *node)
 
static void heap_add (RemovalPolicy *policy, StoreEntry *entry, RemovalPolicyNode *node)
 
static void heap_remove (RemovalPolicy *policy, StoreEntry *, RemovalPolicyNode *node)
 
static void heap_referenced (RemovalPolicy *policy, const StoreEntry *entry, RemovalPolicyNode *node)
 
static const StoreEntryheap_walkNext (RemovalPolicyWalker *walker)
 
static void heap_walkDone (RemovalPolicyWalker *walker)
 
static RemovalPolicyWalkerheap_walkInit (RemovalPolicy *policy)
 
static StoreEntryheap_purgeNext (RemovalPurgeWalker *walker)
 
static void heap_purgeDone (RemovalPurgeWalker *walker)
 
static RemovalPurgeWalkerheap_purgeInit (RemovalPolicy *policy, int max_scan)
 
static void heap_free (RemovalPolicy *policy)
 
RemovalPolicycreateRemovalPolicy_heap (wordlist *args)
 

Variables

REMOVALPOLICYCREATE createRemovalPolicy_heap
 
static int nr_heap_policies = 0
 

Typedef Documentation

◆ HeapWalkData

typedef struct _HeapWalkData HeapWalkData

RemovalPolicyWalker

Definition at line 132 of file store_repl_heap.cc.

Function Documentation

◆ createRemovalPolicy_heap()

◆ heap_add()

◆ heap_free()

static void heap_free ( RemovalPolicy policy)
static

◆ heap_guessType()

◆ heap_purgeDone()

◆ heap_purgeInit()

static RemovalPurgeWalker * heap_purgeInit ( RemovalPolicy policy,
int  max_scan 
)
static

◆ heap_purgeNext()

◆ heap_referenced()

static void heap_referenced ( RemovalPolicy policy,
const StoreEntry entry,
RemovalPolicyNode node 
)
static

◆ heap_remove()

static void heap_remove ( RemovalPolicy policy,
StoreEntry ,
RemovalPolicyNode node 
)
static

◆ heap_walkDone()

◆ heap_walkInit()

static RemovalPolicyWalker * heap_walkInit ( RemovalPolicy policy)
static

◆ heap_walkNext()

static const StoreEntry * heap_walkNext ( RemovalPolicyWalker walker)
static

Variable Documentation

◆ createRemovalPolicy_heap

REMOVALPOLICYCREATE createRemovalPolicy_heap

Definition at line 29 of file store_repl_heap.cc.

◆ nr_heap_policies

int nr_heap_policies = 0
static

Definition at line 31 of file store_repl_heap.cc.

Referenced by createRemovalPolicy_heap().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors